|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
javax.xml.rpc.handler Class HandlerInfo
java.lang.Object javax.xml.rpc.handler.HandlerInfo
- All Implemented Interfaces:
- Serializable
public class HandlerInfo
- extends Object
- implements Serializable
Implements:
java.io.Serializable
javax.xml.rpc.handler.HandlerInfo
表示有关 HandlerChain 中某个处理程序的信息。HandlerInfo 实例传入 Handler.init
方法,用于初始化 Handler
实例。
version | 1.0 |
See also | javax.xml.rpc.handler.HandlerChain |
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:
HandlerChain
, Serialized Form
Constructor Summary | |
---|---|
HandlerInfo()
Default constructor |
|
HandlerInfo(Class handlerClass,
Map config,
QName[] headers)
Constructor for HandlerInfo |
Method Summary | |
---|---|
Class |
getHandlerClass()
Gets the Handler class |
Map |
getHandlerConfig()
Gets the Handler configuration |
QName[] |
getHeaders()
Gets the header blocks processed by this Handler. |
void |
setHandlerClass(Class handlerClass)
Sets the Handler class |
void |
setHandlerConfig(Map config)
Sets the Handler configuration as java.util.Map |
void |
setHeaders(QName[] headers)
Sets the header blocks processed by this Handler. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public
HandlerInfo()
默认构造方法。
英文文档:
HandlerInfo
public HandlerInfo()
- Default constructor
public
HandlerInfo(Class<T> handlerClass, java.util.Map<K, V> config, javax.xml.namespace.QName[] headers)
HandlerInfo 的构造方法。
handlerClass
Handler 的 Java 类
config
java.util.Map 形式的处理程序配置
headers
此 Handler 处理的头块的 QName。QName 是头块最外面的元素的限定名称。
英文文档:
HandlerInfo 的构造方法。
handlerClass | Handler 的 Java 类 |
config | java.util.Map 形式的处理程序配置 |
headers | 此 Handler 处理的头块的 QName。QName 是头块最外面的元素的限定名称。 |
HandlerInfo
public HandlerInfo(Class handlerClass, Map config, QName[] headers)
- 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 Detail |
---|
public void
setHandlerClass(Class<T> handlerClass)
设置 Handler 类。
handlerClass | Handler 的类 |
setHandlerClass
public void setHandlerClass(Class handlerClass)
- Sets the Handler class
- Parameters:
handlerClass
- Class for the Handler
public Class<T>
getHandlerClass()
获取 Handler 类。
return | 如果没有设置任何 Handler 类,则返回 null;否则返回设置的 Handler 类 |
getHandlerClass
public Class getHandlerClass()
- Gets the Handler class
- Returns:
- Returns null if no Handler class has been set; otherwise the set handler class
public void
setHandlerConfig(java.util.Map<K, V> config)
以 java.util.Map
形式设置 Handler 配置。
config
配置映射
英文文档:
以
java.util.Map
形式设置 Handler 配置。
config | 配置映射 |
setHandlerConfig
public void setHandlerConfig(Map config)
- Sets the Handler configuration as
java.util.Map
- Parameters:
config
- Configuration map
public java.util.Map<K, V>
getHandlerConfig()
获取 Handler 配置。
return | 如果没有设置任何配置映射,则返回空 Map;否则返回设置的配置映射 |
getHandlerConfig
public Map getHandlerConfig()
- Gets the Handler configuration
- Returns:
- Returns empty Map if no configuration map has been set; otherwise returns the set configuration map
public void
setHeaders(javax.xml.namespace.QName[] headers)
设置此 Handler 处理的头块。
headers | 头块的 QName。QName 是 SOAP 头块最外面的元素的限定名称。 |
setHeaders
public void setHeaders(QName[] headers)
- 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
public javax.xml.namespace.QName[]
getHeaders()
获取此 Handler 处理的头块。
return |
头块的 QName 所组成的数组。如果没有使用 setHeaders 方法设置任何头块,则返回 null 。 |
getHeaders
public QName[] getHeaders()
- Gets the header blocks processed by this Handler.
- Returns:
- Array of QNames for the header blocks. Returns
null
if no header blocks have been set using thesetHeaders
method.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Submit a bug or feature
Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!