org.codehaus.xfire.handler
Class AbstractHandler

java.lang.Object
  extended by org.codehaus.xfire.handler.AbstractHandler
All Implemented Interfaces:
Handler
Direct Known Subclasses:
AddressingInHandler, AddressingOutHandler, ClientFaultConverter, CorrelatorHandler, CustomFaultHandler, DefaultFaultHandler, DispatchServiceHandler, DOMInHandler, DOMOutHandler, FaultSender, FaultSoapSerializerHandler, LocateBindingHandler, LoggingHandler, OutMessageSender, PostInvocationHandler, ReadHeadersHandler, ServiceInvocationHandler, SoapActionInHandler, SoapActionOutHandler, SoapBodyHandler, SoapSerializerHandler, ValidateHeadersHandler, XFireServletController.FaultResponseCodeHandler

public abstract class AbstractHandler
extends Object
implements Handler

Since:
Feb 18, 2004
Author:
Dan Diephouse

Field Summary
 
Fields inherited from interface org.codehaus.xfire.handler.Handler
ROLE
 
Constructor Summary
AbstractHandler()
           
 
Method Summary
 void after(String handler)
           
 void before(String handler)
           
 List getAfter()
           
 List getBefore()
           
 String getPhase()
          The phase which this handler would like to be in.
 String[] getRoles()
          The roles which this service applies to.
 QName[] getUnderstoodHeaders()
          Returns null by default, indicating that no headers were understood.
 void handleFault(XFireFault fault, MessageContext context)
          Handles faults that occur in this handler.
 void setAfter(List after)
           
 void setBefore(List before)
           
 void setPhase(String phase)
          Allow user to set the phase of a handler i.e.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.codehaus.xfire.handler.Handler
invoke
 

Constructor Detail

AbstractHandler

public AbstractHandler()
Method Detail

getUnderstoodHeaders

public QName[] getUnderstoodHeaders()
Returns null by default, indicating that no headers were understood.

Specified by:
getUnderstoodHeaders in interface Handler
Returns:
null or an empty array if there are no headers.
See Also:
Handler.getUnderstoodHeaders()

getRoles

public String[] getRoles()
Description copied from interface: Handler
The roles which this service applies to.

Specified by:
getRoles in interface Handler
Returns:
null or an empty if this endpoint handles no roles.

getPhase

public final String getPhase()
Description copied from interface: Handler
The phase which this handler would like to be in.

Specified by:
getPhase in interface Handler
Returns:
See Also:
Phase

setPhase

public void setPhase(String phase)
Allow user to set the phase of a handler i.e. via Spring setter injection (XFIRE-226)

Parameters:
phase -

handleFault

public void handleFault(XFireFault fault,
                        MessageContext context)
Description copied from interface: Handler
Handles faults that occur in this handler. This is not responsible for actually writing the fault response message.

Specified by:
handleFault in interface Handler
Parameters:
e -
context -
See Also:
org.codehaus.xfire.handler.Handler#handleFault(java.lang.Exception, org.codehaus.xfire.MessageContext)

after

public void after(String handler)

before

public void before(String handler)

getAfter

public List getAfter()
Specified by:
getAfter in interface Handler

getBefore

public List getBefore()
Specified by:
getBefore in interface Handler

setAfter

public void setAfter(List after)
Parameters:
after - The after to set.

setBefore

public void setBefore(List before)
Parameters:
before - The before to set.


Copyright © 2004-2013. All Rights Reserved.