org.apache.rampart.handler
Class WSDoAllHandler

java.lang.Object
  extended byorg.apache.ws.security.handler.WSHandler
      extended byorg.apache.rampart.handler.WSDoAllHandler
All Implemented Interfaces:
org.apache.axis2.engine.Handler
Direct Known Subclasses:
WSDoAllReceiver, WSDoAllSender

public abstract class WSDoAllHandler
extends org.apache.ws.security.handler.WSHandler
implements org.apache.axis2.engine.Handler

Class WSDoAllHandler


Nested Class Summary
 
Nested classes inherited from class org.apache.axis2.engine.Handler
org.apache.axis2.engine.Handler.InvocationResponse
 
Field Summary
protected  org.apache.axis2.description.HandlerDescription handlerDesc
          Field handlerDesc
protected  boolean inHandler
          In Axis2, the user cannot set inflow and outflow parameters.
 
Fields inherited from class org.apache.ws.security.handler.WSHandler
cryptos, DONE, secEngine
 
Constructor Summary
WSDoAllHandler()
          Constructor AbstractHandler.
 
Method Summary
 void cleanup()
          Method cleanup.
 ClassLoader getClassLoader(Object msgCtx)
          Overrides the class loader used to load the PW callback class.
protected  int getCurrentRepetition(Object msgContext)
          Returns the repetition number from the message context
 org.apache.axis2.description.HandlerDescription getHandlerDesc()
          Gets the handler description.
 String getName()
          Method getName.
 Object getOption(String axisKey)
          Gets optoin.
 org.apache.axis2.description.Parameter getParameter(String name)
          Method getParameter.
 String getPassword(Object msgContext)
           
 Object getProperty(Object msgContext, String axisKey)
           
 String getUsername(Object msgContext)
           
 void init(org.apache.axis2.description.HandlerDescription handlerdesc)
          Method init.
 org.apache.axis2.engine.Handler.InvocationResponse invoke(org.apache.axis2.context.MessageContext msgContext)
           
abstract  void processMessage(org.apache.axis2.context.MessageContext msgContext)
           
 void setPassword(Object msgContext, String password)
           
 void setProperty(Object msgContext, String key, Object value)
           
 void setUsername(Object msgContext, String username)
           
 String toString()
           
 
Methods inherited from class org.apache.ws.security.handler.WSHandler
checkReceiverResults, checkSignatureConfirmation, decodeDecryptionParameter, decodeEnableSignatureConfirmation, decodeEncryptionParameter, decodeMustUnderstand, decodeSignatureParameter, decodeSignatureParameter2, decodeTimestampPrecision, decodeTimestampStrict, decodeTimeToLive, decodeUTParameter, doReceiverAction, doSenderAction, getPassword, getPasswordCB, getString, getStringOption, loadDecryptionCrypto, loadEncryptionCrypto, loadSignatureCrypto, verifyTimestamp, verifyTrust
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

handlerDesc

protected org.apache.axis2.description.HandlerDescription handlerDesc
Field handlerDesc


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

processMessage

public abstract void processMessage(org.apache.axis2.context.MessageContext msgContext)
                             throws org.apache.axis2.AxisFault
Throws:
org.apache.axis2.AxisFault

invoke

public org.apache.axis2.engine.Handler.InvocationResponse invoke(org.apache.axis2.context.MessageContext msgContext)
                                                          throws org.apache.axis2.AxisFault
Specified by:
invoke in interface org.apache.axis2.engine.Handler
Throws:
org.apache.axis2.AxisFault

getName

public String getName()
Method getName.

Specified by:
getName in interface org.apache.axis2.engine.Handler
Returns:
Returns name.

cleanup

public void cleanup()
Method cleanup.

Specified by:
cleanup in interface org.apache.axis2.engine.Handler

getParameter

public org.apache.axis2.description.Parameter getParameter(String name)
Method getParameter.

Specified by:
getParameter in interface org.apache.axis2.engine.Handler
Parameters:
name -
Returns:
Returns parameter.

init

public void init(org.apache.axis2.description.HandlerDescription handlerdesc)
Method init.

Specified by:
init in interface org.apache.axis2.engine.Handler
Parameters:
handlerdesc -

getHandlerDesc

public org.apache.axis2.description.HandlerDescription getHandlerDesc()
Gets the handler description.

Specified by:
getHandlerDesc in interface org.apache.axis2.engine.Handler
Returns:
Returns handler description.

toString

public String toString()

getProperty

public Object getProperty(Object msgContext,
                          String axisKey)

getCurrentRepetition

protected int getCurrentRepetition(Object msgContext)
Returns the repetition number from the message context

Parameters:
msgContext -
Returns:
Returns int.

getPassword

public String getPassword(Object msgContext)

setPassword

public void setPassword(Object msgContext,
                        String password)

getUsername

public String getUsername(Object msgContext)

setUsername

public void setUsername(Object msgContext,
                        String username)

getOption

public Object getOption(String axisKey)
Gets optoin. Extracts 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(Object msgContext,
                        String key,
                        Object value)

getClassLoader

public ClassLoader getClassLoader(Object msgCtx)
Overrides the class loader used to load the PW callback class.

Parameters:
msgCtx - MessageContext
Returns:
Returns class loader.