|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
javax.xml.rpc.handler.soap Interface SOAPMessageContext
- All Superinterfaces:
- MessageContext
public interface SOAPMessageContext
- extends MessageContext
Implements:
MessageContext
接口
javax.xml.rpc.soap.SOAPMessageContext
提供对 RPC 请求或响应的 SOAP 消息的访问。javax.xml.soap.SOAPMessage
为带有附件的 SOAP 1.1 消息表示形式指定标准的 Java API。
version | 1.0 |
See also | javax.xml.soap.SOAPMessage |
The interface javax.xml.rpc.soap.SOAPMessageContext
provides access to the SOAP message for either RPC request or
response. The javax.xml.soap.SOAPMessage
specifies
the standard Java API for the representation of a SOAP 1.1 message
with attachments.
- Version:
- 1.0
- Author:
- Rahul Sharma
- See Also:
SOAPMessage
Method Summary | |
---|---|
SOAPMessage |
getMessage()
Gets the SOAPMessage from this message context |
String[] |
getRoles()
Gets the SOAP actor roles associated with an execution of the HandlerChain and its contained Handler instances. |
void |
setMessage(SOAPMessage message)
Sets the SOAPMessage in this message context |
Methods inherited from interface javax.xml.rpc.handler.MessageContext |
---|
containsProperty, getProperty, getPropertyNames, removeProperty, setProperty |
Method Detail |
---|
public SOAPMessage
getMessage()
从此消息上下文中获取 SOAPMessage。
return | 返回 SOAPMessage;如果此消息上下文中没有 SOAPMessage,则返回 null。 |
getMessage
SOAPMessage getMessage()
- Gets the SOAPMessage from this message context
- Returns:
- Returns the SOAPMessage; returns null if no SOAPMessage is present in this message context
public void
setMessage(SOAPMessage message)
在此消息上下文中设置 SOAPMessage。
message | SOAP 消息 |
Throws | JAXRPCException: 如果在此消息上下文中设置 SOAPMessage 时发生任何错误 |
Throws | UnsupportedOperationException: 如果此操作不受支持 |
setMessage
void setMessage(SOAPMessage message)
- Sets the SOAPMessage in this message context
- Parameters:
message
- SOAP message- Throws:
JAXRPCException
- If any error during the setting of the SOAPMessage in this message contextUnsupportedOperationException
- If this operation is not supported
public String[]
getRoles()
获取与执行 HandlerChain 及其包含的 Handler 实例关联的 SOAP 参与者角色。注意,SOAP 参与者角色适用于 SOAP 节点,并使用 HandlerChain.setRoles
和 HandlerChain.getRoles
进行管理。HandlerChain 中的 Handler 实例使用有关 SOAP 参与者角色的信息来处理 SOAP 头块。注意,在通过 HandlerChain 处理 SOAP 消息的过程中,SOAP 参与者角色不变。
return | SOAP 参与者角色的 URI 所组成的数组 |
See also | setRoles, getRoles |
getRoles
String[] getRoles()
- Gets the SOAP actor roles associated with an execution
of the HandlerChain and its contained Handler instances.
Note that SOAP actor roles apply to the SOAP node and
are managed using
HandlerChain.setRoles
andHandlerChain.getRoles
. Handler instances in the HandlerChain use this information about the SOAP actor roles to process the SOAP header blocks. Note that the SOAP actor roles are invariant during the processing of SOAP message through the HandlerChain. - Returns:
- Array of URIs for SOAP actor roles
- See Also:
HandlerChain.setRoles(java.lang.String[])
,HandlerChain.getRoles()
|
|||||||||
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 : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!