|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cxf.phase.PhaseInterceptorChain
public class PhaseInterceptorChain
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 |
---|
Nested classes/interfaces inherited from interface org.apache.cxf.interceptor.InterceptorChain |
---|
InterceptorChain.State |
Field Summary |
---|
Fields inherited from interface org.apache.cxf.interceptor.InterceptorChain |
---|
STARTING_AFTER_INTERCEPTOR_ID, STARTING_AT_INTERCEPTOR_ID |
Constructor Summary | |
---|---|
PhaseInterceptorChain(java.util.SortedSet<Phase> ps)
|
Method Summary | |
---|---|
void |
abort()
|
void |
add(java.util.Collection<Interceptor> newhandlers)
Adds multiple interceptors to the interceptor chain. |
void |
add(java.util.Collection<Interceptor> newhandlers,
boolean force)
|
void |
add(Interceptor i)
Adds a single interceptor to the interceptor chain. |
void |
add(Interceptor i,
boolean force)
|
PhaseInterceptorChain |
cloneChain()
|
boolean |
doIntercept(Message message)
Intercept a message, invoking each phase's handlers in turn. |
boolean |
doInterceptStartingAfter(Message message,
java.lang.String startingAfterInterceptorID)
Intercept a message, invoking each phase's handlers in turn, starting after the specified interceptor. |
boolean |
doInterceptStartingAt(Message message,
java.lang.String startingAtInterceptorID)
Intercept a message, invoking each phase's handlers in turn, starting at the specified interceptor. |
static Message |
getCurrentMessage()
|
MessageObserver |
getFaultObserver()
|
java.util.ListIterator<Interceptor<? extends Message>> |
getIterator()
|
InterceptorChain.State |
getState()
|
java.util.Iterator<Interceptor<? extends Message>> |
iterator()
|
void |
pause()
|
void |
remove(Interceptor i)
|
void |
reset()
|
void |
resume()
|
void |
setFaultObserver(MessageObserver faultObserver)
|
java.lang.String |
toString()
|
void |
unwind(Message message)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PhaseInterceptorChain(java.util.SortedSet<Phase> ps)
Method Detail |
---|
public static Message getCurrentMessage()
public InterceptorChain.State getState()
public PhaseInterceptorChain cloneChain()
public void add(java.util.Collection<Interceptor> newhandlers)
InterceptorChain
add
in interface InterceptorChain
newhandlers
- the interceptors to add to the chainpublic void add(java.util.Collection<Interceptor> newhandlers, boolean force)
public void add(Interceptor i)
InterceptorChain
add
in interface InterceptorChain
i
- the interceptor to addpublic void add(Interceptor i, boolean force)
public void pause()
pause
in interface InterceptorChain
public void resume()
resume
in interface InterceptorChain
public boolean doIntercept(Message message)
doIntercept
in interface InterceptorChain
message
- the message
java.lang.Exception
public boolean doInterceptStartingAfter(Message message, java.lang.String startingAfterInterceptorID)
doInterceptStartingAfter
in interface InterceptorChain
message
- the messagestartingAfterInterceptorID
- the id of the interceptor
java.lang.Exception
public boolean doInterceptStartingAt(Message message, java.lang.String startingAtInterceptorID)
doInterceptStartingAt
in interface InterceptorChain
message
- the messagestartingAtInterceptorID
- the id of the interceptor
java.lang.Exception
public void reset()
reset
in interface InterceptorChain
public void unwind(Message message)
public void remove(Interceptor i)
remove
in interface InterceptorChain
public void abort()
abort
in interface InterceptorChain
public java.util.Iterator<Interceptor<? extends Message>> iterator()
iterator
in interface java.lang.Iterable<Interceptor<? extends Message>>
public java.util.ListIterator<Interceptor<? extends Message>> getIterator()
getIterator
in interface InterceptorChain
public java.lang.String toString()
toString
in class java.lang.Object
public MessageObserver getFaultObserver()
getFaultObserver
in interface InterceptorChain
public void setFaultObserver(MessageObserver faultObserver)
setFaultObserver
in interface InterceptorChain
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |