org.apache.servicemix.soap.core
Class PhaseInterceptorChain

java.lang.Object
  extended by org.apache.servicemix.soap.core.PhaseInterceptorChain
All Implemented Interfaces:
InterceptorChain

public class PhaseInterceptorChain
extends java.lang.Object
implements InterceptorChain

A PhaseInterceptorChain orders Interceptors according to the before & after properties on an Interceptor.

Author:
Guillaume Nodet

Constructor Summary
PhaseInterceptorChain()
           
 
Method Summary
 void add(Interceptor i)
           
 void add(java.lang.Iterable<? extends Interceptor> newhandlers)
           
 void doIntercept(Message message)
          Invokes each phase's handler in turn.
 java.lang.Iterable<Interceptor> getInterceptors()
           
protected  java.util.ListIterator<Interceptor> getState(Message message)
           
protected  void insertInterceptor(Interceptor interc)
           
protected  void setState(Message message, java.util.ListIterator<Interceptor> state)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PhaseInterceptorChain

public PhaseInterceptorChain()
Method Detail

add

public void add(java.lang.Iterable<? extends Interceptor> newhandlers)
Specified by:
add in interface InterceptorChain

getInterceptors

public java.lang.Iterable<Interceptor> getInterceptors()
Specified by:
getInterceptors in interface InterceptorChain

add

public void add(Interceptor i)

doIntercept

public void doIntercept(Message message)
Invokes each phase's handler in turn.

Specified by:
doIntercept in interface InterceptorChain
Parameters:
context -
Throws:
java.lang.Exception

getState

protected java.util.ListIterator<Interceptor> getState(Message message)

setState

protected void setState(Message message,
                        java.util.ListIterator<Interceptor> state)

insertInterceptor

protected void insertInterceptor(Interceptor interc)


Copyright © 2005-2015 FuseSource. All Rights Reserved.