Top Description Methods
javax.xml.rpc.handler

public Interface HandlerRegistry

extends Serializable
Imports
java.util.List, javax.xml.rpc.JAXRPCException, javax.xml.namespace.QName

The javax.xml.rpc.handler.HandlerRegistry provides support for the programmatic configuration of handlers in a HandlerRegistry.

A handler chain is registered per service endpoint, as indicated by the qualified name of a port. The getHandlerChain returns the handler chain (as a java.util.List) for the specified service endpoint. The returned handler chain is configured using the java.util.List interface. Each element in this list is required to be of the Java type javax.xml.rpc.handler.HandlerInfo.

Author
Rahul Sharma
Version
1.0
See Also
javax.xml.rpc.Service

Method Summary

Modifier and TypeMethod and Description
public List<E>

Returns:

java.util.List Handler chain
getHandlerChain
(QName
Qualified name of the target service endpoint
portName
)

Gets the handler chain for the specified service endpoint.

public void
setHandlerChain(QName
Qualified name of the target service endpoint
portName
,
List<E>
A List representing configuration for the handler chain
chain
)

Sets the handler chain for the specified service endpoint as a java.util.List.

Method Detail

getHandlerChainback to summary
public List<E> getHandlerChain(QName portName)

Gets the handler chain for the specified service endpoint. The returned List is used to configure this specific handler chain in this HandlerRegistry. Each element in this list is required to be of the Java type javax.xml.rpc.handler.HandlerInfo.

Parameters
portName:QName

Qualified name of the target service endpoint

Returns:List<E>

java.util.List Handler chain

Exceptions
IllegalArgumentException:
If an invalid portName is specified
setHandlerChainback to summary
public void setHandlerChain(QName portName, List<E> chain)

Sets the handler chain for the specified service endpoint as a java.util.List. Each element in this list is required to be of the Java type javax.xml.rpc.handler.HandlerInfo.

Parameters
portName:QName

Qualified name of the target service endpoint

chain:List<E>

A List representing configuration for the handler chain

Exceptions
JAXRPCException:
If any error in the configuration of the handler chain
UnsupportedOperationException:
If this set operation is not supported. This is done to avoid any overriding of a pre-configured handler chain.
IllegalArgumentException:
If an invalid portName is specified