org.codehaus.xfire.handler
Interface Handler

All Known Implementing Classes:
AbstractHandler, HandlerPipeline

public interface Handler

A handler is just something that processes an XML message.

If an exception occurrs in the invoke method, the entity which started the invocation, is responsible for turning the exception into a fault.

Since:
Feb 18, 2004
Author:
Dan Diephouse

Field Summary
static java.lang.String ROLE
           
 
Method Summary
 java.util.List getAfter()
           
 java.util.List getBefore()
           
 java.lang.String getPhase()
          The phase which this handler would like to be in.
 java.lang.String[] getRoles()
          The roles which this service applies to.
 javax.xml.namespace.QName[] getUnderstoodHeaders()
           
 void handleFault(XFireFault fault, MessageContext context)
          Handles faults that occur in this handler.
 void invoke(MessageContext context)
          Invoke a handler.
 

Field Detail

ROLE

public static final java.lang.String ROLE
Method Detail

getUnderstoodHeaders

public javax.xml.namespace.QName[] getUnderstoodHeaders()
Returns:
null or an empty array if there are no headers.

getRoles

public java.lang.String[] getRoles()
The roles which this service applies to.

Returns:
null or an empty if this endpoint handles no roles.

getPhase

public java.lang.String getPhase()
The phase which this handler would like to be in.

Returns:
See Also:
Phase

invoke

public void invoke(MessageContext context)
            throws java.lang.Exception
Invoke a handler. If a fault occurs it will be handled via the handleFault method.

Throws:
java.lang.Exception

handleFault

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

Parameters:
context -

getAfter

public java.util.List getAfter()

getBefore

public java.util.List getBefore()


Copyright © 2004-2006 null. All Rights Reserved.