Package javax.xml.rpc.handler
Class HandlerInfo
java.lang.Object
javax.xml.rpc.handler.HandlerInfo
- All Implemented Interfaces:
Serializable
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.- Version:
- 1.0
- Author:
- Rahul Sharma
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorHandlerInfo(Class handlerClass, Map config, QName[] headers) Constructor for HandlerInfo -
Method Summary
Modifier and TypeMethodDescriptionGets the Handler classGets the Handler configurationQName[]Gets the header blocks processed by this Handler.voidsetHandlerClass(Class handlerClass) Sets the Handler classvoidsetHandlerConfig(Map config) Sets the Handler configuration asjava.util.MapvoidsetHeaders(QName[] headers) Sets the header blocks processed by this Handler.
-
Constructor Details
-
HandlerInfo
public HandlerInfo()Default constructor -
HandlerInfo
Constructor for HandlerInfo- Parameters:
handlerClass- Java Class for the Handlerconfig- Handler Configuration as a java.util.Mapheaders- QNames for the header blocks processed by this Handler. QName is the qualified name of the outermost element of a header block
-
-
Method Details
-
setHandlerClass
Sets the Handler class- Parameters:
handlerClass- Class for the Handler
-
getHandlerClass
Gets the Handler class- Returns:
- Returns null if no Handler class has been set; otherwise the set handler class
-
setHandlerConfig
Sets the Handler configuration asjava.util.Map- Parameters:
config- Configuration map
-
getHandlerConfig
Gets the Handler configuration- Returns:
- Returns empty Map if no configuration map has been set; otherwise returns the set configuration map
-
setHeaders
Sets the header blocks processed by this Handler.- Parameters:
headers- QNames of the header blocks. QName is the qualified name of the outermost element of the SOAP header block
-
getHeaders
Gets the header blocks processed by this Handler.- Returns:
- Array of QNames for the header blocks. Returns
nullif no header blocks have been set using thesetHeadersmethod.
-