org.codehaus.xfire.handler
Class AbstractHandler

java.lang.Object
  extended by org.codehaus.xfire.AbstractXFireComponent
      extended by org.codehaus.xfire.handler.AbstractHandler
All Implemented Interfaces:
Handler
Direct Known Subclasses:
HandlerPipeline, ObjectServiceHandler, SoapHandler

public abstract class AbstractHandler
extends AbstractXFireComponent
implements Handler

Since:
Feb 18, 2004
Author:
Dan Diephouse

Field Summary
static java.lang.String STAX_WRITER_KEY
           
 
Fields inherited from interface org.codehaus.xfire.handler.Handler
ROLE
 
Constructor Summary
AbstractHandler()
           
 
Method Summary
 java.lang.String[] getRoles()
          The roles which this service applies to.
 javax.xml.namespace.QName[] getUnderstoodHeaders()
          Returns null by default, indicating that no headers were understood.
 javax.xml.stream.XMLStreamWriter getXMLStreamWriter(MessageContext context)
           
 void handleFault(XFireFault fault, MessageContext context)
          Handles faults that occur in this handler.
 
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
 

Field Detail

STAX_WRITER_KEY

public static final java.lang.String STAX_WRITER_KEY
See Also:
Constant Field Values
Constructor Detail

AbstractHandler

public AbstractHandler()
Method Detail

getUnderstoodHeaders

public javax.xml.namespace.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 java.lang.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.

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)

getXMLStreamWriter

public javax.xml.stream.XMLStreamWriter getXMLStreamWriter(MessageContext context)