Package com.sun.identity.liberty.ws.paos
Class PAOSResponse
- java.lang.Object
-
- com.sun.identity.liberty.ws.paos.PAOSResponse
-
public class PAOSResponse extends Object
ThePAOSResponseclass is used by a web application on HTTP server side to receive and parse aPAOSresponse via an HTTP request from the user agent side. From this class, the originalPAOSRequestobject could obtained to correlate with this response.
-
-
Constructor Summary
Constructors Constructor Description PAOSResponse(String xmlString)Constructs thePAOSResponseObject.PAOSResponse(String refToMessageID, Boolean mustUnderstand, String actor)Constructs thePAOSResponseObject.PAOSResponse(Element element)Constructs thePAOSResponseObject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetActor()Returns value ofactorattribute.StringgetRefToMessageID()Returns the value of the refToMessageID attribute.BooleanisMustUnderstand()Returns value ofmustUnderstandattribute.voidsetActor(String actor)Sets the value ofactorattribute.voidsetMustUnderstand(Boolean mustUnderstand)Sets the value of themustUnderstandattribute.voidsetRefToMessageID(String refToMessageID)Sets the value of the refToMessageID attribute.StringtoXMLString()Returns a String representation of this Object.StringtoXMLString(boolean includeNSPrefix, boolean declareNS)Returns a String representation
-
-
-
Constructor Detail
-
PAOSResponse
public PAOSResponse(String refToMessageID, Boolean mustUnderstand, String actor) throws PAOSException
Constructs thePAOSResponseObject.- Parameters:
refToMessageID- the value of the refToMessageID attributemustUnderstand- the value of the mustUnderstand attributeactor- the value of the actor attribute- Throws:
PAOSException- ifPAOSResponsecannot be created.
-
PAOSResponse
public PAOSResponse(Element element) throws PAOSException
Constructs thePAOSResponseObject.- Parameters:
element- the Document Element of PAOSResponseobject.- Throws:
PAOSException- ifPAOSResponsecannot be created.
-
PAOSResponse
public PAOSResponse(String xmlString) throws PAOSException
Constructs thePAOSResponseObject.- Parameters:
xmlString- the XML String representation of this object.- Throws:
PAOSException- ifPAOSResponsecannot be created.
-
-
Method Detail
-
getRefToMessageID
public String getRefToMessageID()
Returns the value of the refToMessageID attribute.- Returns:
- the value of the refToMessageID attribute.
- See Also:
setRefToMessageID(String)
-
setRefToMessageID
public void setRefToMessageID(String refToMessageID)
Sets the value of the refToMessageID attribute.- Parameters:
refToMessageID- the value of the refToMessageID attribute- See Also:
getRefToMessageID()
-
isMustUnderstand
public Boolean isMustUnderstand()
Returns value ofmustUnderstandattribute.- Returns:
- value of
mustUnderstandattribute.
-
setMustUnderstand
public void setMustUnderstand(Boolean mustUnderstand)
Sets the value of themustUnderstandattribute.- Parameters:
mustUnderstand- the value ofmustUnderstandattribute.
-
getActor
public String getActor()
Returns value ofactorattribute.- Returns:
- value of
actorattribute
-
setActor
public void setActor(String actor)
Sets the value ofactorattribute.- Parameters:
actor- the value ofactorattribute
-
toXMLString
public String toXMLString() throws PAOSException
Returns a String representation of this Object.- Returns:
- a String representation of this Object.
- Throws:
PAOSException- if it could not create String object
-
toXMLString
public String toXMLString(boolean includeNSPrefix, boolean declareNS) throws PAOSException
Returns a String representation- Parameters:
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.- Returns:
- a String representation of this Object.
- Throws:
PAOSException- ,if it could not create String object.
-
-