|
||||||||||
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.StoreResponse
public class StoreResponse
Implements the extension for Attribute Exchange store responses.
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 |
StoreResponse()
Constructs a Store Response with an empty parameter list. |
protected |
StoreResponse(ParameterList params)
Constructs a StoreResponse from a parameter list. |
Method Summary | |
---|---|
static StoreResponse |
createStoreResponse()
Constructs a Store Response with an empty parameter list. |
static StoreResponse |
createStoreResponse(ParameterList params)
Constructs a StoreResponse from a parameter list. |
java.lang.String |
getErrorDescription()
Gets the status of the Store Response if the 'status' parameter is part of the response, or null otherwise. |
boolean |
hasFailed()
Returns true if the Store Response is a failure message, true if it is a success response. |
private boolean |
isValid()
Checks the validity of the extension. |
void |
setFailure(java.lang.String description)
Marks the Store Response as a failure, by setting the appropirate parameters. |
Methods inherited from class org.openid4java.message.ax.AxMessage |
---|
getExtension, getParameters, getParameterValue, getTypeUri, providesIdentifier, setParameters, signRequired |
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 StoreResponse()
protected StoreResponse(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 StoreResponse createStoreResponse()
public static StoreResponse createStoreResponse(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 setFailure(java.lang.String description)
description
- Describes the error condition leading to
the failure responsepublic boolean hasFailed()
public java.lang.String getErrorDescription()
private boolean isValid()
Used when constructing a extension from a parameter list.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |