org.codehaus.xfire.handler
Class HandlerPipeline

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

public class HandlerPipeline
extends AbstractHandler
implements Handler

Author:
Dan Diephouse

Field Summary
 
Fields inherited from class org.codehaus.xfire.handler.AbstractHandler
STAX_WRITER_KEY
 
Fields inherited from interface org.codehaus.xfire.handler.Handler
ROLE
 
Constructor Summary
HandlerPipeline()
           
 
Method Summary
 void addHandler(Handler handler)
           
 Handler getHandler(int i)
           
 void handleFault(XFireFault e, MessageContext context)
          Handles faults that occur in this handler.
 void invoke(MessageContext context)
          Invoke a handler.
 java.util.Iterator iterator()
           
 void remove(Handler handler)
           
 int size()
           
 
Methods inherited from class org.codehaus.xfire.handler.AbstractHandler
getRoles, getUnderstoodHeaders, getXMLStreamWriter
 
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
getRoles, getUnderstoodHeaders
 

Constructor Detail

HandlerPipeline

public HandlerPipeline()
Method Detail

getHandler

public Handler getHandler(int i)

size

public int size()

invoke

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

Specified by:
invoke in interface Handler
Throws:
java.lang.Exception

handleFault

public void handleFault(XFireFault e,
                        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
Overrides:
handleFault in class AbstractHandler
See Also:
org.codehaus.xfire.handler.Handler#handleFault(java.lang.Exception, org.codehaus.xfire.MessageContext)

addHandler

public void addHandler(Handler handler)

remove

public void remove(Handler handler)

iterator

public java.util.Iterator iterator()


Copyright © 2004-2005 Codehaus. All Rights Reserved.