org.apache.ws.sandbox.security.trust.message.token
Class Status

java.lang.Object
  extended byorg.apache.ws.sandbox.security.trust.message.token.AbstractToken
      extended byorg.apache.ws.sandbox.security.trust.message.token.CompositeElement
          extended byorg.apache.ws.sandbox.security.trust.message.token.Status

public class Status
extends CompositeElement

Author:
Malinda Kaushalye, Ruchith Fernando

Field Summary
static javax.xml.namespace.QName TOKEN
           
 
Fields inherited from class org.apache.ws.sandbox.security.trust.message.token.AbstractToken
document, element
 
Constructor Summary
Status(org.w3c.dom.Document doc)
          Constructor for Status
Status(org.w3c.dom.Element elem)
          Constructor for Status
 
Method Summary
protected  void deserializeChildElement(org.w3c.dom.Element elem)
          This is called for each of the immediate child elements of type Node.ELEMENT_NODE of this token
 java.lang.String getCode()
          Gets the code of the status
 java.lang.String getReason()
          Gets the reason of the status
protected  javax.xml.namespace.QName getToken()
          Returns the QName of this type
 void setCode(java.lang.String codeValue)
          Sets the code of the status
 void setReason(java.lang.String reason)
          Sets the reason of the status
 
Methods inherited from class org.apache.ws.sandbox.security.trust.message.token.CompositeElement
setElementTextValue
 
Methods inherited from class org.apache.ws.sandbox.security.trust.message.token.AbstractToken
addChild, getElement, parse, removeChild, setElement, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TOKEN

public static final javax.xml.namespace.QName TOKEN
Constructor Detail

Status

public Status(org.w3c.dom.Element elem)
       throws WSTrustException
Constructor for Status

Parameters:
elem -
Throws:
WSSecurityException
WSTrustException

Status

public Status(org.w3c.dom.Document doc)
Constructor for Status

Parameters:
doc -
Method Detail

setCode

public void setCode(java.lang.String codeValue)
Sets the code of the status


getCode

public java.lang.String getCode()
Gets the code of the status

Returns:
Throws:
WSSecurityException

setReason

public void setReason(java.lang.String reason)
Sets the reason of the status

Parameters:
reason -

getReason

public java.lang.String getReason()
Gets the reason of the status

Returns:
Throws:
WSSecurityException

getToken

protected javax.xml.namespace.QName getToken()
Returns the QName of this type

Specified by:
getToken in class AbstractToken
Returns:
See Also:
AbstractToken.getToken()

deserializeChildElement

protected void deserializeChildElement(org.w3c.dom.Element elem)
                                throws WSTrustException
Description copied from class: AbstractToken
This is called for each of the immediate child elements of type Node.ELEMENT_NODE of this token

Specified by:
deserializeChildElement in class AbstractToken
Parameters:
elem - The child element
Throws:
WSTrustException


Copyright © 2004-2008 Apache Web Services. All Rights Reserved.