SOAPMessageContext (Java EE 5 SDK)

Java

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


javax.xml.rpc.handler.soap Interface SOAPMessageContext

所有父接口:
MessageContext

public interface SOAPMessageContext
extends MessageContext

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.

版本:
1.0
作者:
Rahul Sharma
另请参见:
SOAPMessage

方法摘要
 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
 

方法详细信息

getMessage

SOAPMessage getMessage()
Gets the SOAPMessage from this message context

返回:
Returns the SOAPMessage; returns null if no SOAPMessage is present in this message context

setMessage

void setMessage(SOAPMessage message)
Sets the SOAPMessage in this message context

参数:
message - SOAP message
抛出异常:
JAXRPCException - If any error during the setting of the SOAPMessage in this message context
UnsupportedOperationException - If this operation is not supported

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 and HandlerChain.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.

返回:
Array of URIs for SOAP actor roles
另请参见:
HandlerChain.setRoles(java.lang.String[]), HandlerChain.getRoles()

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


提交错误或意见

版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。深圳电信培训中心.徐海蛟老师教学参考.