public class PAOSResponse extends Object
PAOSResponse
class is used by a web application on
HTTP server side to receive and parse a PAOS
response via an
HTTP request from the user agent side.
From this class, the original PAOSRequest
object could obtained
to correlate with this response.Constructor and Description |
---|
PAOSResponse(Element element)
Constructs the
PAOSResponse Object. |
PAOSResponse(String xmlString)
Constructs the
PAOSResponse Object. |
PAOSResponse(String refToMessageID,
Boolean mustUnderstand,
String actor)
Constructs the
PAOSResponse Object. |
Modifier and Type | Method and Description |
---|---|
String |
getActor()
Returns value of
actor attribute. |
String |
getRefToMessageID()
Returns the value of the refToMessageID attribute.
|
Boolean |
isMustUnderstand()
Returns value of
mustUnderstand attribute. |
void |
setActor(String actor)
Sets the value of
actor attribute. |
void |
setMustUnderstand(Boolean mustUnderstand)
Sets the value of the
mustUnderstand attribute. |
void |
setRefToMessageID(String refToMessageID)
Sets the value of the refToMessageID attribute.
|
String |
toXMLString()
Returns a String representation of this Object.
|
String |
toXMLString(boolean includeNSPrefix,
boolean declareNS)
Returns a String representation
|
public PAOSResponse(String refToMessageID, Boolean mustUnderstand, String actor) throws PAOSException
PAOSResponse
Object.refToMessageID
- the value of the refToMessageID attributemustUnderstand
- the value of the mustUnderstand attributeactor
- the value of the actor attributePAOSException
- if PAOSResponse
cannot be created.public PAOSResponse(Element element) throws PAOSException
PAOSResponse
Object.element
- the Document Element of PAOS Response
object.PAOSException
- if PAOSResponse
cannot be created.public PAOSResponse(String xmlString) throws PAOSException
PAOSResponse
Object.xmlString
- the XML String representation of this object.PAOSException
- if PAOSResponse
cannot be created.public String getRefToMessageID()
PAOSResponse.setRefToMessageID(String)
public void setRefToMessageID(String refToMessageID)
refToMessageID
- the value of the refToMessageID attributePAOSResponse.getRefToMessageID()
public Boolean isMustUnderstand()
mustUnderstand
attribute.mustUnderstand
attribute.public void setMustUnderstand(Boolean mustUnderstand)
mustUnderstand
attribute.mustUnderstand
- the value of mustUnderstand
attribute.public String getActor()
actor
attribute.actor
attributepublic void setActor(String actor)
actor
attribute.actor
- the value of actor
attributepublic String toXMLString() throws PAOSException
PAOSException
- if it could not create String objectpublic String toXMLString(boolean includeNSPrefix, boolean declareNS) throws PAOSException
includeNSPrefix
- determines whether or not the namespace
qualifier is prepended to the Element when converteddeclareNS
- determines whether or not the namespace is declared
within the Element.PAOSException
- ,if it could not create String object.Copyright © 2010-2018, ForgeRock All Rights Reserved.