Top Description Methods
javax.xml.rpc.handler

public Interface HandlerChain

extends List
Imports
java.util.List, .Map, .Iterator, javax.xml.rpc.JAXRPCException

The javax.xml.rpc.handler.HandlerChain represents a list of handlers. All elements in the HandlerChain are of the type javax.xml.rpc.handler.Handler.

An implementation class for the HandlerChain interface abstracts the policy and mechanism for the invocation of the registered handlers.

Author
Rahul Sharma
Version
1.0
See Also
javax.xml.rpc.handler.HandlerChain

Method Summary

Modifier and TypeMethod and Description
public void
destroy()

Indicates the end of lifecycle for a HandlerChain.

public String[]

Returns:

String[] SOAP Actor roles as URIs
getRoles
()

Gets SOAP actor roles registered for this HandlerChain at this SOAP node.

public boolean

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.
handleFault
(MessageContext
MessageContext parameter provides access to the SOAP message.
context
)

The handleFault method initiates the SOAP fault processing for this handler chain.

public boolean

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.
handleRequest
(MessageContext
MessageContext parameter provides access to the request SOAP message.
context
)

The handleRequest method initiates the request processing for this handler chain.

public boolean

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.
handleResponse
(MessageContext
MessageContext parameter provides access to the response SOAP message.
context
)

The handleResponse method initiates the response processing for this handler chain.

public void
init(Map<K, V>
Configuration for the initialization of this handler chain
config
)

Initializes the configuration for a HandlerChain.

public void
setRoles(String[]
URIs for SOAP actor name
soapActorNames
)

Sets SOAP Actor roles for this HandlerChain.

Inherited from java.util.List:
addaddaddAlladdAlladdFirstaddLastclearcontainscontainsAllcopyOfequalsgetgetFirstgetLasthashCodeindexOfisEmptyiteratorlastIndexOflistIteratorlistIteratorofofofofofofofofofofofofremoveremoveremoveAllremoveFirstremoveLastreplaceAllretainAllreversedsetsizesortspliteratorsubListtoArraytoArray

Method Detail

destroyback to summary
public void destroy()

Indicates the end of lifecycle for a HandlerChain.

Exceptions
JAXRPCException:
If any error during destroy
getRolesback to summary
public String[] getRoles()

Gets SOAP actor roles registered for this HandlerChain at this SOAP node. The returned array includes the special SOAP actor next.

Returns:String[]

String[] SOAP Actor roles as URIs

See Also
javax.xml.rpc.NamespaceConstants
handleFaultback to summary
public boolean handleFault(MessageContext context)

The handleFault method initiates the SOAP fault processing for this handler chain.

Parameters
context:MessageContext

MessageContext parameter provides access to the SOAP message.

Returns:boolean

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.

Exceptions
JAXRPCException:
if any processing error happens
See Also
javax.xml.rpc.handler.Handler#handleFault
handleRequestback to summary
public boolean handleRequest(MessageContext context)

The handleRequest method initiates the request processing for this handler chain.

Parameters
context:MessageContext

MessageContext parameter provides access to the request SOAP message.

Returns:boolean

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.

Exceptions
JAXRPCException:
if any processing error happens
See Also
javax.xml.rpc.handler.Handler#handleRequest
handleResponseback to summary
public boolean handleResponse(MessageContext context)

The handleResponse method initiates the response processing for this handler chain.

Parameters
context:MessageContext

MessageContext parameter provides access to the response SOAP message.

Returns:boolean

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.

Exceptions
JAXRPCException:
if any processing error happens
See Also
javax.xml.rpc.handler.Handler#handleResponse
initback to summary
public void init(Map<K, V> config)

Initializes the configuration for a HandlerChain.

Parameters
config:Map<K, V>

Configuration for the initialization of this handler chain

Exceptions
JAXRPCException:
If any error during initialization
setRolesback to summary
public void setRoles(String[] soapActorNames)

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.

Parameters
soapActorNames:String[]

URIs for SOAP actor name

See Also
javax.xml.rpc.NamespaceConstants