com.sun.xml.ws.client
Class HandlerConfiguration

java.lang.Object
  extended by com.sun.xml.ws.client.HandlerConfiguration

public class HandlerConfiguration
extends java.lang.Object

This class holds the handler information and roles on the Binding (mutable info in the binding). HandlerConfiguration is immutable, and a new object is created when the BindingImpl is created or User calls Binding.setHandlerChain() or SOAPBinding.setRoles(). During invocation in Stub.process(), snapshot of the handler configuration is set in Packet.handlerConfig. The information in the HandlerConfiguration is used by MUPipe and HandlerTube implementations.


Constructor Summary
HandlerConfiguration(java.util.Set<java.lang.String> roles, HandlerConfiguration oldConfig)
          This is called when roles as reset on binding using SOAPBinding#setRoles(), to save reparsing the handlers again.
HandlerConfiguration(java.util.Set<java.lang.String> roles, java.util.List<Handler> handlerChain)
           
 
Method Summary
 java.util.List<Handler> getHandlerChain()
           
 java.util.Set<javax.xml.namespace.QName> getHandlerKnownHeaders()
           
 java.util.List<LogicalHandler> getLogicalHandlers()
           
 java.util.List<MessageHandler> getMessageHandlers()
           
 java.util.Set<java.lang.String> getRoles()
           
 java.util.List<SOAPHandler> getSoapHandlers()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HandlerConfiguration

public HandlerConfiguration(java.util.Set<java.lang.String> roles,
                            java.util.List<Handler> handlerChain)
Parameters:
roles - This contains the roles assumed by the Binding implementation.
handlerChain - This contains the handler chain set on the Binding

HandlerConfiguration

public HandlerConfiguration(java.util.Set<java.lang.String> roles,
                            HandlerConfiguration oldConfig)
This is called when roles as reset on binding using SOAPBinding#setRoles(), to save reparsing the handlers again.

Parameters:
roles -
oldConfig -
Method Detail

getRoles

public java.util.Set<java.lang.String> getRoles()

getHandlerChain

public java.util.List<Handler> getHandlerChain()
Returns:
return a copy of handler chain

getLogicalHandlers

public java.util.List<LogicalHandler> getLogicalHandlers()

getSoapHandlers

public java.util.List<SOAPHandler> getSoapHandlers()

getMessageHandlers

public java.util.List<MessageHandler> getMessageHandlers()

getHandlerKnownHeaders

public java.util.Set<javax.xml.namespace.QName> getHandlerKnownHeaders()


Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.