Package com.sun.identity.liberty.ws.paos
Class PAOSRequest
- java.lang.Object
-
- com.sun.identity.liberty.ws.paos.PAOSRequest
-
public class PAOSRequest extends Object
ThePAOSRequestclass is used by a web application on HTTP server side to construct aPAOSrequest message and send it via an HTTP response to the user agent side.
-
-
Constructor Summary
Constructors Constructor Description PAOSRequest(String xmlString)Constructs thePAOSRequestObject.PAOSRequest(String responseConsumerURL, String service, String messageID, Boolean mustUnderstand, String actor)Constructs thePAOSRequestObject.PAOSRequest(Element element)Constructs thePAOSRequestObject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetActor()Returns value ofactorattribute.StringgetMessageID()Returns the value of the messageID attribute.StringgetResponseConsumerURL()Returns the value of the responseConsumerURL attribute.StringgetService()Returns the value of the service attribute.BooleanisMustUnderstand()Returns value ofmustUnderstandattribute.voidsetActor(String actor)Sets the value ofactorattribute.voidsetMessageID(String messageID)Sets the value of the messageID attribute.voidsetMustUnderstand(Boolean mustUnderstand)Sets the value of themustUnderstandattribute.voidsetResponseConsumerURL(String responseConsumerURL)Sets the value of the responseConsumerURL attribute.voidsetService(String service)Sets the value of the service attribute.StringtoXMLString()Returns a String representation of this Object.StringtoXMLString(boolean includeNSPrefix, boolean declareNS)Returns a String representation
-
-
-
Constructor Detail
-
PAOSRequest
public PAOSRequest(String responseConsumerURL, String service, String messageID, Boolean mustUnderstand, String actor) throws PAOSException
Constructs thePAOSRequestObject.- Parameters:
responseConsumerURL- the value of the responseConsumerURL attributeservice- the value of the service attributemessageID- the value of the messageID attributemustUnderstand- the value of the mustUnderstand attributeactor- the value of the actor attribute- Throws:
PAOSException- ifPAOSRequestcannot be created.
-
PAOSRequest
public PAOSRequest(Element element) throws PAOSException
Constructs thePAOSRequestObject.- Parameters:
element- the Document Element of PAOSRequestobject.- Throws:
PAOSException- ifPAOSRequestcannot be created.
-
PAOSRequest
public PAOSRequest(String xmlString) throws PAOSException
Constructs thePAOSRequestObject.- Parameters:
xmlString- the XML String representation of this object.- Throws:
PAOSException- ifPAOSRequestcannot be created.
-
-
Method Detail
-
getResponseConsumerURL
public String getResponseConsumerURL()
Returns the value of the responseConsumerURL attribute.- Returns:
- the value of the responseConsumerURL attribute.
- See Also:
setResponseConsumerURL(String)
-
setResponseConsumerURL
public void setResponseConsumerURL(String responseConsumerURL)
Sets the value of the responseConsumerURL attribute.- Parameters:
responseConsumerURL- the value of the responseConsumerURL attribute- See Also:
getResponseConsumerURL()
-
getService
public String getService()
Returns the value of the service attribute.- Returns:
- the value of the service attribute.
- See Also:
setService(String)
-
setService
public void setService(String service)
Sets the value of the service attribute.- Parameters:
service- the value of the service attribute- See Also:
getService()
-
getMessageID
public String getMessageID()
Returns the value of the messageID attribute.- Returns:
- the value of the messageID attribute.
- See Also:
setMessageID(String)
-
setMessageID
public void setMessageID(String messageID)
Sets the value of the messageID attribute.- Parameters:
messageID- the value of the messageID attribute- See Also:
getMessageID()
-
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.
-
-