public class StoreResponse extends AxMessage
Modifier and Type | Field and Description |
---|---|
private static org.apache.commons.logging.Log |
_log |
private static boolean |
DEBUG |
_parameters, OPENID_NS_AX
Modifier | Constructor and Description |
---|---|
protected |
StoreResponse()
Constructs a Store Response with an empty parameter list.
|
protected |
StoreResponse(ParameterList params)
Constructs a StoreResponse from a parameter list.
|
Modifier and Type | Method and Description |
---|---|
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.
|
getExtension, getParameters, getParameterValue, getTypeUri, providesIdentifier, setParameters, signRequired
private static org.apache.commons.logging.Log _log
private static final boolean DEBUG
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.
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.
Copyright 2006-2008 Sxip Identity Corporation