Save This Page
Home » apache-cxf-2.1.1-src » org.apache » cxf » phase » [javadoc | source]
org.apache.cxf.phase
public class: PhaseInterceptorChain [javadoc | source]
java.lang.Object
   org.apache.cxf.phase.PhaseInterceptorChain

All Implemented Interfaces:
    InterceptorChain

A PhaseInterceptorChain orders Interceptors according to the phase they participate in and also according to the before & after properties on an Interceptor.

A List of phases is supplied to the PhaseInterceptorChain in the constructor. This class is typically instantiated from the PhaseChainCache class in this package. Interceptors that are added to the chain are ordered by phase. Within a phase, interceptors can order themselves. Each PhaseInterceptor has an ID. PhaseInterceptors can supply a Collection of IDs which they should run before or after, supplying fine grained ordering.

Nested Class Summary:
static final class  PhaseInterceptorChain.PhaseInterceptorIterator   
static final class  PhaseInterceptorChain.InterceptorHolder   
Constructor:
 public PhaseInterceptorChain(SortedSet ps) 
Method from org.apache.cxf.phase.PhaseInterceptorChain Summary:
abort,   add,   add,   add,   add,   cloneChain,   doIntercept,   doInterceptStartingAfter,   doInterceptStartingAt,   getFaultObserver,   getIterator,   iterator,   pause,   remove,   reset,   resume,   setFaultObserver,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.cxf.phase.PhaseInterceptorChain Detail:
 public synchronized  void abort() 
 public  void add(Collection newhandlers) 
 public  void add(Interceptor i) 
 public  void add(Collection newhandlers,
    boolean force) 
 public  void add(Interceptor i,
    boolean force) 
 public PhaseInterceptorChain cloneChain() 
 public synchronized boolean doIntercept(Message message) 
    Intercept a message, invoking each phase's handlers in turn.
 public synchronized boolean doInterceptStartingAfter(Message message,
    String startingAfterInterceptorID) 
    Intercept a message, invoking each phase's handlers in turn, starting after the specified interceptor.
 public synchronized boolean doInterceptStartingAt(Message message,
    String startingAtInterceptorID) 
    Intercept a message, invoking each phase's handlers in turn, starting at the specified interceptor.
 public MessageObserver getFaultObserver() 
 public ListIterator getIterator() 
 public Iterator iterator() 
 public synchronized  void pause() 
 public  void remove(Interceptor i) 
 public synchronized  void reset() 
 public synchronized  void resume() 
 public  void setFaultObserver(MessageObserver faultObserver) 
 public String toString()