| |
|
| org.apache.axis2.jaxws.message.Message
All known Subclasses: org.apache.axis2.jaxws.message.impl.MessageImpl,
Message | public interface Message extends XMLPart(Code) | | Message
A Message represents the XML + Attachments
Most of the methods available on a message are only applicable to the XML part of the Message.
See the XMLPart interface for an explantation of these methods.
See Also: XMLPart See Also: Attachment |
addDataHandler | public void addDataHandler(DataHandler dh, String id)(Code) | | Add Attachment
Parameters: dh - DataHandler (type of Attachment is inferred from dh.getContentType) Parameters: id - String which is the Attachment content id See Also: addAttachment(Attachment) |
getAttachmentID | public String getAttachmentID(int index)(Code) | | Get the indicated (non-soap part) attachment id
Parameters: index - CID or null if not present |
getAttachmentIDs | public List<String> getAttachmentIDs()(Code) | | Get the list of attachment content ids for the message
List |
getDataHandler | public DataHandler getDataHandler(String cid)(Code) | | Get the attachment identified by the contentID
Parameters: cid - |
getMimeHeaders | public Map getMimeHeaders()(Code) | | get the transport headers map. |
getProtocol | public Protocol getProtocol()(Code) | | Get the protocol for this Message (soap11, soap12, etc.)
Protocl |
isDoingSWA | public boolean isDoingSWA()(Code) | | true if SWA DataHandler is present |
isMTOMEnabled | public boolean isMTOMEnabled()(Code) | | A message is MTOM enabled if the
associated dispatch/client/impl/provider has a binding type
that enables MTOM.
if this is an MTOM message |
isPostPivot | public boolean isPostPivot()(Code) | | true if post pivot |
removeDataHandler | public DataHandler removeDataHandler(String cid)(Code) | | Get the attachment and remove it from the Message
Parameters: cid - |
setDoingSWA | public void setDoingSWA(boolean value)(Code) | | Indicate that an SWA DataHandler was added to the message.
This information will be used to trigger SWA serialization.
Parameters: value - |
setMTOMEnabled | public void setMTOMEnabled(boolean b)(Code) | | A message is MTOM enabled if the
associated dispatch/client/impl/provider has a binding type
that enables MTOM.
Indicate whether this is an MTOM message
Parameters: b - |
setMessageContext | public void setMessageContext(MessageContext messageContext)(Code) | | JAX-WS Message Context that owns the Message
Parameters: messageContext - |
setMimeHeaders | public void setMimeHeaders(Map map)(Code) | | Set the transport headers
Parameters: map - Map |
setPostPivot | public void setPostPivot()(Code) | | Indicate that this message is passed the pivot point. For example, this is set in the JAX-WS
Dispatcher to indicate
|
|
|
|