Top Description Fields Constructors Methods
javax.xml.rpc.handler

public Class HandlerInfo

extends Object
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Imports
java.io.Serializable, java.util.Map, .Vector, .HashMap, javax.xml.namespace.QName

The javax.xml.rpc.handler.HandlerInfo represents information about a handler in the HandlerChain. A HandlerInfo instance is passed in the Handler.init method to initialize a Handler instance.
Author
Rahul Sharma
Version
1.0
See Also
javax.xml.rpc.handler.HandlerChain

Field Summary

Modifier and TypeField and Description
private Map<K, V>
private Class<T>
private Vector<E>

Constructor Summary

AccessConstructor and Description
public
HandlerInfo()

Default constructor

public
HandlerInfo(Class<T>
Java Class for the Handler
handlerClass
,
Map<K, V>
Handler Configuration as a java.util.Map
config
,
QName[]
QNames for the header blocks processed by this Handler. QName is the qualified name of the outermost element of a header block
headers
)

Constructor for HandlerInfo

Method Summary

Modifier and TypeMethod and Description
public Class<T>

Returns:

Returns null if no Handler class has been set; otherwise the set handler class
getHandlerClass
()

Gets the Handler class

public Map<K, V>

Returns:

Returns empty Map if no configuration map has been set; otherwise returns the set configuration map
getHandlerConfig
()

Gets the Handler configuration

public QName[]

Returns:

Array of QNames for the header blocks. Returns null if no header blocks have been set using the setHeaders method.
getHeaders
()

Gets the header blocks processed by this Handler.

public void
setHandlerClass(Class<T>
Class for the Handler
handlerClass
)

Sets the Handler class

public void
setHandlerConfig(Map<K, V>
Configuration map
config
)

Sets the Handler configuration as java.util.Map

public void
setHeaders(QName[]
QNames of the header blocks. QName is the qualified name of the outermost element of the SOAP header block
headers
)

Sets the header blocks processed by this Handler.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

configback to summary
private Map<K, V> config
handlerClassback to summary
private Class<T> handlerClass
headersback to summary
private Vector<E> headers

Constructor Detail

HandlerInfoback to summary
public HandlerInfo()

Default constructor

HandlerInfoback to summary
public HandlerInfo(Class<T> handlerClass, Map<K, V> config, QName[] headers)

Constructor for HandlerInfo

Parameters
handlerClass:Class<T>

Java Class for the Handler

config:Map<K, V>

Handler Configuration as a java.util.Map

headers:QName[]

QNames for the header blocks processed by this Handler. QName is the qualified name of the outermost element of a header block

Method Detail

getHandlerClassback to summary
public Class<T> getHandlerClass()

Gets the Handler class

Returns:Class<T>

Returns null if no Handler class has been set; otherwise the set handler class

getHandlerConfigback to summary
public Map<K, V> getHandlerConfig()

Gets the Handler configuration

Returns:Map<K, V>

Returns empty Map if no configuration map has been set; otherwise returns the set configuration map

getHeadersback to summary
public QName[] getHeaders()

Gets the header blocks processed by this Handler.

Returns:QName[]

Array of QNames for the header blocks. Returns null if no header blocks have been set using the setHeaders method.

setHandlerClassback to summary
public void setHandlerClass(Class<T> handlerClass)

Sets the Handler class

Parameters
handlerClass:Class<T>

Class for the Handler

setHandlerConfigback to summary
public void setHandlerConfig(Map<K, V> config)

Sets the Handler configuration as java.util.Map

Parameters
config:Map<K, V>

Configuration map

setHeadersback to summary
public void setHeaders(QName[] headers)

Sets the header blocks processed by this Handler.

Parameters
headers:QName[]

QNames of the header blocks. QName is the qualified name of the outermost element of the SOAP header block