org.apache.cxf.transport
Class MultipleEndpointObserver

java.lang.Object
  extended by org.apache.cxf.transport.MultipleEndpointObserver
All Implemented Interfaces:
org.apache.cxf.transport.MessageObserver

public class MultipleEndpointObserver
extends Object
implements org.apache.cxf.transport.MessageObserver

This MessageObserver creates an Interceptor chain which adds in the interceptors set on this class and the global Bus interceptors. At somepoint, it is expected that these interceptors will resolve the appropriate Endpoint/Binding combination and continue setting up the chain.


Field Summary
protected  List<org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>> bindingInterceptors
           
protected  org.apache.cxf.Bus bus
           
static String ENDPOINTS
           
protected  List<org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>> routingInterceptors
           
 
Constructor Summary
MultipleEndpointObserver(org.apache.cxf.Bus bus)
           
 
Method Summary
protected  org.apache.cxf.phase.PhaseInterceptorChain createChain()
           
protected  org.apache.cxf.message.Message createMessage(org.apache.cxf.message.Message message)
          Give a chance for a Binding to customize their message
 List<org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>> getBindingInterceptors()
           
 Set<org.apache.cxf.endpoint.Endpoint> getEndpoints()
           
 List<org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>> getRoutingInterceptors()
           
 void onMessage(org.apache.cxf.message.Message message)
           
protected  void setExchangeProperties(org.apache.cxf.message.Exchange exchange, org.apache.cxf.message.Message m)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ENDPOINTS

public static final String ENDPOINTS
See Also:
Constant Field Values

bus

protected org.apache.cxf.Bus bus

bindingInterceptors

protected List<org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>> bindingInterceptors

routingInterceptors

protected List<org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>> routingInterceptors
Constructor Detail

MultipleEndpointObserver

public MultipleEndpointObserver(org.apache.cxf.Bus bus)
Method Detail

onMessage

public void onMessage(org.apache.cxf.message.Message message)
Specified by:
onMessage in interface org.apache.cxf.transport.MessageObserver

createMessage

protected org.apache.cxf.message.Message createMessage(org.apache.cxf.message.Message message)
Give a chance for a Binding to customize their message


createChain

protected org.apache.cxf.phase.PhaseInterceptorChain createChain()

setExchangeProperties

protected void setExchangeProperties(org.apache.cxf.message.Exchange exchange,
                                     org.apache.cxf.message.Message m)

getBindingInterceptors

public List<org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>> getBindingInterceptors()

getRoutingInterceptors

public List<org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>> getRoutingInterceptors()

getEndpoints

public Set<org.apache.cxf.endpoint.Endpoint> getEndpoints()


Apache CXF