org.codehaus.xfire.handler
Class HandlerPipeline

java.lang.Object
  extended by org.codehaus.xfire.handler.HandlerPipeline
All Implemented Interfaces:
Handler

public class HandlerPipeline
extends java.lang.Object
implements Handler

Author:
Dan Diephouse

Field Summary
 
Fields inherited from interface org.codehaus.xfire.handler.Handler
ROLE
 
Constructor Summary
HandlerPipeline(java.util.List phases)
           
 
Method Summary
 void addHandler(Handler handler)
           
 void addHandlers(java.util.List newhandlers)
           
 java.util.List getAfter()
           
 java.util.List getBefore()
           
 java.lang.String getPhase()
          The phase which this handler would like to be in.
 HandlerOrderer getPhaseHandlers(java.lang.String phase)
           
 java.lang.String[] getRoles()
          The roles which this service applies to.
 javax.xml.namespace.QName[] getUnderstoodHeaders()
           
 void handleFault(XFireFault fault, MessageContext context)
          Takes a fault, creates a fault message and sends it via the fault channel.
 void invoke(MessageContext context)
          Invokes each phase's handler in turn.
 void pause()
           
 void resume(MessageContext context)
           
 boolean understands(javax.xml.namespace.QName name)
          Determines whether or not this Pipeline "understands" a particular header.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HandlerPipeline

public HandlerPipeline(java.util.List phases)
Method Detail

addHandlers

public void addHandlers(java.util.List newhandlers)

addHandler

public void addHandler(Handler handler)

getPhaseHandlers

public HandlerOrderer getPhaseHandlers(java.lang.String phase)

invoke

public void invoke(MessageContext context)
            throws java.lang.Exception
Invokes each phase's handler in turn.

Specified by:
invoke in interface Handler
Parameters:
context - The context containing current message and this HandlerPipeline.
Throws:
java.lang.Exception

handleFault

public void handleFault(XFireFault fault,
                        MessageContext context)
Takes a fault, creates a fault message and sends it via the fault channel.

Specified by:
handleFault in interface Handler
Parameters:
fault -
context -

understands

public boolean understands(javax.xml.namespace.QName name)
Determines whether or not this Pipeline "understands" a particular header.

Parameters:
name -
Returns:
true if pipeline understands a header

pause

public void pause()

resume

public void resume(MessageContext context)
            throws java.lang.Exception
Throws:
java.lang.Exception

getAfter

public java.util.List getAfter()
Specified by:
getAfter in interface Handler

getBefore

public java.util.List getBefore()
Specified by:
getBefore in interface Handler

getPhase

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

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.

getUnderstoodHeaders

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


Copyright © 2004-2011. All Rights Reserved.