Package javax.xml.rpc.handler.soap
Interface SOAPMessageContext
-
- All Superinterfaces:
MessageContext
public interface SOAPMessageContext extends MessageContext
The interfacejavax.xml.rpc.soap.SOAPMessageContext
provides access to the SOAP message for either RPC request or response. Thejavax.xml.soap.SOAPMessage
specifies the standard Java API for the representation of a SOAP 1.1 message with attachments.- Version:
- $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
- See Also:
SOAPMessage
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description javax.xml.soap.SOAPMessage
getMessage()
Gets the SOAPMessage from this message context.java.lang.String[]
getRoles()
Gets the SOAP actor roles associated with an execution of the HandlerChain and its contained Handler instances.void
setMessage(javax.xml.soap.SOAPMessage message)
Sets theSOAPMessage
for this message context.-
Methods inherited from interface javax.xml.rpc.handler.MessageContext
containsProperty, getProperty, getPropertyNames, removeProperty, setProperty
-
-
-
-
Method Detail
-
getMessage
javax.xml.soap.SOAPMessage getMessage()
Gets the SOAPMessage from this message context.- Returns:
- the
SOAPMessage
;null
if no requestSOAPMessage
is present in thisSOAPMessageContext
-
setMessage
void setMessage(javax.xml.soap.SOAPMessage message)
Sets theSOAPMessage
for this message context.- Parameters:
message
- SOAP message- Throws:
JAXRPCException
- if any error during the setting of the SOAPMessage in this message contextjava.lang.UnsupportedOperationException
- if this operation is not supported
-
getRoles
java.lang.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 usingHandlerChain.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()
-
-