org.apache.axis2.security.rahas
Class Receiver

java.lang.Object
  extended byorg.apache.axis2.security.rahas.Receiver
All Implemented Interfaces:
Handler, Serializable

public class Receiver
extends Object
implements Handler

See Also:
Serialized Form

Constructor Summary
Receiver()
           
 
Method Summary
 void cleanup()
          Method cleanup.
 HandlerDescription getHandlerDesc()
          Gets the HandlerDescription of a handler.
 QName getName()
          Method getName.
 Parameter getParameter(String name)
          Method getParameter.
 void init(HandlerDescription handlerdesc)
          Method init.
 void invoke(MessageContext msgContext)
          Invoke is called to do the actual work of the Handler object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Receiver

public Receiver()
Method Detail

invoke

public void invoke(MessageContext msgContext)
            throws AxisFault
Description copied from interface: Handler
Invoke is called to do the actual work of the Handler object. If there is a fault during the processing of this method it is invoke's job to catch the exception and undo any partial work that has been completed. Once we leave 'invoke' if a fault is thrown, this class's 'onFault' method will be called. Invoke should rethrow any exceptions it catches, wrapped in an AxisFault.

Specified by:
invoke in interface Handler
Parameters:
msgContext - the MessageContext to process with this Handler.
Throws:
AxisFault - if the handler encounters an error

cleanup

public void cleanup()
             throws AxisFault
Description copied from interface: Handler
Method cleanup.

Specified by:
cleanup in interface Handler
Throws:
AxisFault

init

public void init(HandlerDescription handlerdesc)
Description copied from interface: Handler
Method init.

Specified by:
init in interface Handler
Parameters:
handlerdesc -

getHandlerDesc

public HandlerDescription getHandlerDesc()
Description copied from interface: Handler
Gets the HandlerDescription of a handler. This is used as an input to get phaseRule of a handler.

Specified by:
getHandlerDesc in interface Handler
Returns:
Returns HandlerDescription.

getName

public QName getName()
Description copied from interface: Handler
Method getName.

Specified by:
getName in interface Handler
Returns:
Returns QName

getParameter

public Parameter getParameter(String name)
Description copied from interface: Handler
Method getParameter.

Specified by:
getParameter in interface Handler
Parameters:
name -
Returns:
Returns Parameter.