|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openid4java.message.ax.AxMessage
org.openid4java.message.ax.StoreRequest
public class StoreRequest
Implements the extension for Attribute Exchange store requests.
| Field Summary | |
|---|---|
private static org.apache.commons.logging.Log |
_log
|
private static boolean |
DEBUG
|
| Fields inherited from class org.openid4java.message.ax.AxMessage |
|---|
_parameters, OPENID_NS_AX |
| Constructor Summary | |
|---|---|
protected |
StoreRequest()
Constructs a Store Request with an empty parameter list. |
protected |
StoreRequest(ParameterList params)
Constructs a StoreRequest from a parameter list. |
| Method Summary | |
|---|---|
void |
addAttribute(java.lang.String alias,
java.lang.String typeUri,
java.lang.String value)
Adds an attribute to the store request. |
private boolean |
checkAttributes()
|
static StoreRequest |
createStoreRequest()
Constructs a Store Request with an empty parameter list. |
static StoreRequest |
createStoreRequest(ParameterList params)
Constructs a StoreRequest from a parameter list. |
java.util.List |
getAttributeAliases()
Gets a list of attribute aliases. |
java.util.Map |
getAttributes()
Gets a map with attribute aliases -> list of values. |
java.lang.String |
getAttributeValue(java.lang.String alias)
Gets the (first) for the specified attribute alias. |
java.util.List |
getAttributeValues(java.lang.String alias)
Returns a list with the attribute value(s) associated with the specified alias. |
int |
getCount(java.lang.String alias)
Gets the number of values provided in the fetch response for the specified attribute alias. |
boolean |
isValid()
Checks the validity of the extension. |
private void |
setCount(java.lang.String alias,
int count)
Sets the number of values provided in the fetch response for the specified attribute alias. |
| Methods inherited from class org.openid4java.message.ax.AxMessage |
|---|
getExtension, getParameters, getParameterValue, getTypeUri, providesIdentifier, setParameters |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static org.apache.commons.logging.Log _log
private static final boolean DEBUG
| Constructor Detail |
|---|
protected StoreRequest()
protected StoreRequest(ParameterList params)
The parameter list can be extracted from a received message with the
getExtensionParams method of the Message class, and MUST NOT contain
the "openid.
| Method Detail |
|---|
public static StoreRequest createStoreRequest()
public static StoreRequest createStoreRequest(ParameterList params)
throws MessageException
The parameter list can be extracted from a received message with the
getExtensionParams method of the Message class, and MUST NOT contain
the "openid.
MessageException
public void addAttribute(java.lang.String alias,
java.lang.String typeUri,
java.lang.String value)
throws MessageException
alias - The identifier that will be associated with the
attribute name URItypeUri - The attribute name URIvalue - The value of the attribute
MessageExceptionpublic java.util.List getAttributeValues(java.lang.String alias)
alias - Attribute alias.
public java.lang.String getAttributeValue(java.lang.String alias)
public java.util.List getAttributeAliases()
public java.util.Map getAttributes()
public int getCount(java.lang.String alias)
alias - The attribute alias.
private void setCount(java.lang.String alias,
int count)
alias - The attribute alias.count - The number of values.public boolean isValid()
Used when constructing a extension from a parameter list.
private boolean checkAttributes()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||