public abstract class AxPayload extends AxMessage
_parameters, OPENID_NS_AX
Constructor and Description |
---|
AxPayload() |
Modifier and Type | Method and Description |
---|---|
String |
addAttribute(String typeUri,
String value)
Adds an attribute to the attribute payload, without the caller having to
specify an alias.
|
void |
addAttribute(String alias,
String typeUri,
String value)
Adds an attribute to the attribute payload.
|
void |
addAttributes(Map attributes)
Adds the attributes in the supplied Map to the attribute payload.
|
String |
getAttributeAlias(String typeUri)
Gets the alias for an attribute type URI, if present.
|
List |
getAttributeAliases()
Gets a list of attribute aliases.
|
Map |
getAttributes()
Gets a map with attribute aliases -> list of values.
|
Map |
getAttributeTypes()
Gets a map with attribute aliases -> attribute type URI.
|
String |
getAttributeTypeUri(String alias)
Get typeURI value for the specified attribute alias.
|
String |
getAttributeValue(String alias)
Gets the (first) value for the specified attribute alias.
|
String |
getAttributeValueByTypeUri(String typeUri)
Gets the (first) value for the specified attribute type URI.
|
List |
getAttributeValues(String alias)
Returns a list with the attribute value(s) associated for the specified
attribute alias.
|
List |
getAttributeValuesByTypeUri(String typeUri)
Returns a list with the attribute value(s) associated for the specified
attribute type URI.
|
int |
getCount(String alias)
Gets the number of values provided in the attribute payload for the
specified attribute alias.
|
protected boolean |
isValid() |
getExtension, getParameters, getParameterValue, getTypeUri, providesIdentifier, setParameters, signRequired
public void addAttribute(String alias, String typeUri, String value) throws MessageException
alias
- The alias identifier that will be associated
with the attribute type URI.typeUri
- The attribute type URI.value
- The value of the attribute.MessageException
public String addAttribute(String typeUri, String value)
typeUri
- The attribute type URI.value
- The attribute value.public void addAttributes(Map attributes)
attributes
- Mappublic List getAttributeValues(String alias)
alias
- The attribute alias.public String getAttributeTypeUri(String alias)
public String getAttributeAlias(String typeUri)
typeUri
- the attribyte type URI for which the alias is looked uppublic String getAttributeValueByTypeUri(String typeUri)
typeUri
- public List getAttributeValuesByTypeUri(String typeUri)
typeUri
- The attribute type URI.public String getAttributeValue(String alias)
public List getAttributeAliases()
public Map getAttributes()
public Map getAttributeTypes()
public int getCount(String alias)
alias
- The attribute alias.protected boolean isValid()
Copyright © 2013 Sxip. All rights reserved.