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<javax.xml.ws.handler.Handler> buildHandlerChain(PortComponentHandlerType ht, ClassLoader classLoader)
           
 List<javax.xml.ws.handler.Handler> buildHandlerChainFromConfiguration(List<PortComponentHandlerType> hc)
           
 List<javax.xml.ws.handler.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<javax.xml.ws.handler.Handler> sortHandlers(List<javax.xml.ws.handler.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<javax.xml.ws.handler.Handler> buildHandlerChainFromConfiguration(PortComponentHandlerType hc)

buildHandlerChainFromConfiguration

public List<javax.xml.ws.handler.Handler> buildHandlerChainFromConfiguration(List<PortComponentHandlerType> hc)

setHandlerInitEnabled

public void setHandlerInitEnabled(boolean b)

isHandlerInitEnabled

public boolean isHandlerInitEnabled()

sortHandlers

public List<javax.xml.ws.handler.Handler> sortHandlers(List<javax.xml.ws.handler.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<javax.xml.ws.handler.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