Apache CXF API

org.apache.cxf.jaxws.handler
Class HandlerChainBuilder

java.lang.Object
  extended by org.apache.cxf.jaxws.handler.HandlerChainBuilder
Direct Known Subclasses:
AnnotationHandlerChainBuilder

public class HandlerChainBuilder
extends Object


Constructor Summary
HandlerChainBuilder()
           
HandlerChainBuilder(Bus aBus)
           
 
Method Summary
protected  List<Handler> buildHandlerChain(PortComponentHandlerType ht, ClassLoader classLoader)
           
 List<Handler> buildHandlerChainFromConfiguration(List<PortComponentHandlerType> hc)
           
 List<Handler> buildHandlerChainFromConfiguration(PortComponentHandlerType hc)
           
protected  ClassLoader getHandlerClassLoader()
           
 boolean isHandlerInitEnabled()
           
protected  URL resolveHandlerChainFile(Class<?> clz, String filename)
          Resolve handler chain configuration file associated with the given class
 void setHandlerInitEnabled(boolean b)
           
 List<Handler> sortHandlers(List<Handler> handlers)
          sorts the handlers into correct order.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HandlerChainBuilder

public HandlerChainBuilder(Bus aBus)

HandlerChainBuilder

public HandlerChainBuilder()
Method Detail

buildHandlerChainFromConfiguration

public List<Handler> buildHandlerChainFromConfiguration(PortComponentHandlerType hc)

buildHandlerChainFromConfiguration

public List<Handler> buildHandlerChainFromConfiguration(List<PortComponentHandlerType> hc)

setHandlerInitEnabled

public void setHandlerInitEnabled(boolean b)

isHandlerInitEnabled

public boolean isHandlerInitEnabled()

sortHandlers

public List<Handler> sortHandlers(List<Handler> handlers)
sorts the handlers into correct order. All of the logical handlers first followed by the protocol handlers

Parameters:
handlers -
Returns:
sorted list of handlers

getHandlerClassLoader

protected ClassLoader getHandlerClassLoader()

buildHandlerChain

protected List<Handler> buildHandlerChain(PortComponentHandlerType ht,
                                          ClassLoader classLoader)

resolveHandlerChainFile

protected URL resolveHandlerChainFile(Class<?> clz,
                                      String filename)
Resolve handler chain configuration file associated with the given class

Parameters:
clz -
filename -
Returns:
A URL object or null if no resource with this name is found

Apache CXF API

Apache CXF