Class HandlerChainImpl

All Implemented Interfaces:
Serializable, Cloneable, Iterable, Collection, List, RandomAccess, SequencedCollection, HandlerChain

public class HandlerChainImpl extends ArrayList implements HandlerChain
Implementation of HandlerChain
See Also:
  • Field Details

    • log

      protected static org.apache.commons.logging.Log log
    • JAXRPC_METHOD_INFO

      public static final String JAXRPC_METHOD_INFO
      See Also:
    • handlerInfos

      protected List handlerInfos
  • Constructor Details

    • HandlerChainImpl

      public HandlerChainImpl()
    • HandlerChainImpl

      public HandlerChainImpl(List handlerInfos)
  • Method Details

    • getRoles

      public String[] getRoles()
      Description copied from interface: HandlerChain
      Gets SOAP actor roles registered for this HandlerChain at this SOAP node. The returned array includes the special SOAP actor next.
      Specified by:
      getRoles in interface HandlerChain
      Returns:
      String[] SOAP Actor roles as URIs
    • setRoles

      public void setRoles(String[] roles)
      Description copied from interface: HandlerChain
      Sets SOAP Actor roles for this HandlerChain. This specifies the set of roles in which this HandlerChain is to act for the SOAP message processing at this SOAP node. These roles assumed by a HandlerChain must be invariant during the processing of an individual SOAP message through the HandlerChain.

      A HandlerChain always acts in the role of the special SOAP actor next. Refer to the SOAP specification for the URI name for this special SOAP actor. There is no need to set this special role using this method.

      Specified by:
      setRoles in interface HandlerChain
      Parameters:
      roles - URIs for SOAP actor name
    • init

      public void init(Map map)
      Description copied from interface: HandlerChain
      Initializes the configuration for a HandlerChain.
      Specified by:
      init in interface HandlerChain
      Parameters:
      map - Configuration for the initialization of this handler chain
    • addNewHandler

      public void addNewHandler(String className, Map config)
    • handleFault

      public boolean handleFault(MessageContext _context)
      Description copied from interface: HandlerChain
      The handleFault method initiates the SOAP fault processing for this handler chain.
      Specified by:
      handleFault in interface HandlerChain
      Parameters:
      _context - MessageContext parameter provides access to the SOAP message.
      Returns:
      Returns boolean Returns true if all handlers in chain have been processed. Returns false if a handler in the chain returned false from its handleFault method.
    • getMessageInfo

      public ArrayList getMessageInfo(SOAPMessage message)
    • handleRequest

      public boolean handleRequest(MessageContext _context)
      Description copied from interface: HandlerChain
      The handleRequest method initiates the request processing for this handler chain.
      Specified by:
      handleRequest in interface HandlerChain
      Parameters:
      _context - MessageContext parameter provides access to the request SOAP message.
      Returns:
      boolean Returns true if all handlers in chain have been processed. Returns false if a handler in the chain returned false from its handleRequest method.
    • handleResponse

      public boolean handleResponse(MessageContext context)
      Description copied from interface: HandlerChain
      The handleResponse method initiates the response processing for this handler chain.
      Specified by:
      handleResponse in interface HandlerChain
      Parameters:
      context - MessageContext parameter provides access to the response SOAP message.
      Returns:
      boolean Returns true if all handlers in chain have been processed. Returns false if a handler in the chain returned false from its handleResponse method.
    • destroy

      public void destroy()
      Description copied from interface: HandlerChain
      Indicates the end of lifecycle for a HandlerChain.
      Specified by:
      destroy in interface HandlerChain