org.apache.axis2.security.handler
Class WSDoAllHandler

java.lang.Object
  extended byWSHandler
      extended byorg.apache.axis2.security.handler.WSDoAllHandler
All Implemented Interfaces:
Handler, java.io.Serializable
Direct Known Subclasses:
WSDoAllReceiver, WSDoAllSender

public abstract class WSDoAllHandler
extends WSHandler
implements Handler

Class WSDoAllHandler

See Also:
Serialized Form

Field Summary
protected  HandlerDescription handlerDesc
          Field handlerDesc
protected  boolean inHandler
          In Axis2 the user cannot set inflow and outflow parameters Therefore we need to map the Axis2 specific inflow and outflow parameters to WSS4J params Knowledge of inhandler and out handler is used to get the mapped value
protected  RequestData reqData
          This is used to get hold of the message context to extract the configuration information (from axis2.xml and service.xml) out of it
 
Constructor Summary
WSDoAllHandler()
          Constructor AbstractHandler
 
Method Summary
 void cleanup()
          Method cleanup
 HandlerDescription getHandlerDesc()
          To get the phaseRule of a handler it is required to get the HnadlerDescription of the handler so the argumnet pass when it call return as HnadlerDescription
 javax.xml.namespace.QName getName()
          Method getName
 java.lang.Object getOption(java.lang.String axisKey)
          Get optoin should extract the configuration values from the service.xml and/or axis2.xml Values set in the service.xml takes prority over values of the axis2.xml
 Parameter getParameter(java.lang.String name)
          Method getParameter
 java.lang.String getPassword(java.lang.Object msgContext)
           
 java.lang.Object getProperty(java.lang.Object msgContext, java.lang.String axisKey)
           
protected  int getRepetition(java.lang.Object msgContext)
          Returns the repetition number from the message context
 java.lang.String getUsername(java.lang.Object msgContext)
           
 void init(HandlerDescription handlerdesc)
          Method init
 void revoke(MessageContext msgContext)
          Method revoke
 void setPassword(java.lang.Object msgContext, java.lang.String password)
           
 void setProperty(java.lang.Object msgContext, java.lang.String key, java.lang.Object value)
           
 void setUsername(java.lang.Object msgContext, java.lang.String username)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.axis2.engine.Handler
invoke
 

Field Detail

handlerDesc

protected HandlerDescription handlerDesc
Field handlerDesc


reqData

protected RequestData reqData
This is used to get hold of the message context to extract the configuration information (from axis2.xml and service.xml) out of it


inHandler

protected boolean inHandler
In Axis2 the user cannot set inflow and outflow parameters Therefore we need to map the Axis2 specific inflow and outflow parameters to WSS4J params Knowledge of inhandler and out handler is used to get the mapped value

Constructor Detail

WSDoAllHandler

public WSDoAllHandler()
Constructor AbstractHandler

Method Detail

getName

public javax.xml.namespace.QName getName()
Method getName

Specified by:
getName in interface Handler
Returns:
name

revoke

public void revoke(MessageContext msgContext)
Method revoke

Parameters:
msgContext -

cleanup

public void cleanup()
             throws AxisFault
Method cleanup

Specified by:
cleanup in interface Handler
Throws:
AxisFault

getParameter

public Parameter getParameter(java.lang.String name)
Method getParameter

Specified by:
getParameter in interface Handler
Parameters:
name -
Returns:
parameter

init

public void init(HandlerDescription handlerdesc)
Method init

Specified by:
init in interface Handler
Parameters:
handlerdesc -

getHandlerDesc

public HandlerDescription getHandlerDesc()
To get the phaseRule of a handler it is required to get the HnadlerDescription of the handler so the argumnet pass when it call return as HnadlerDescription

Specified by:
getHandlerDesc in interface Handler
Returns:
handler description

toString

public java.lang.String toString()

getProperty

public java.lang.Object getProperty(java.lang.Object msgContext,
                                    java.lang.String axisKey)

getRepetition

protected int getRepetition(java.lang.Object msgContext)
Returns the repetition number from the message context

Parameters:
msgContext -
Returns:

getPassword

public java.lang.String getPassword(java.lang.Object msgContext)

setPassword

public void setPassword(java.lang.Object msgContext,
                        java.lang.String password)

getUsername

public java.lang.String getUsername(java.lang.Object msgContext)

setUsername

public void setUsername(java.lang.Object msgContext,
                        java.lang.String username)

getOption

public java.lang.Object getOption(java.lang.String axisKey)
Get optoin should extract the configuration values from the service.xml and/or axis2.xml Values set in the service.xml takes prority over values of the axis2.xml


setProperty

public void setProperty(java.lang.Object msgContext,
                        java.lang.String key,
                        java.lang.Object value)