public interface Message extends XMLPart
XMLPart,
Attachment| Modifier and Type | Method and Description |
|---|---|
void |
addDataHandler(javax.activation.DataHandler dh,
java.lang.String id)
Add Attachment
|
javax.xml.soap.SOAPMessage |
getAsSOAPMessage()
getAsSOAPMessage Get the xml part as a read/write SOAPEnvelope
|
java.lang.String |
getAttachmentID(int index)
Get the indicated (non-soap part) attachment id
|
java.lang.String |
getAttachmentID(java.lang.String partName)
Get the indicated (non-soap part) attachment id
|
java.util.List<java.lang.String> |
getAttachmentIDs()
Get the list of attachment content ids for the message
|
javax.activation.DataHandler |
getDataHandler(java.lang.String cid)
Get the attachment identified by the contentID
|
MessageContext |
getMessageContext() |
java.util.Map |
getMimeHeaders() |
Protocol |
getProtocol()
Get the protocol for this Message (soap11, soap12, etc.)
|
java.lang.Object |
getValue(java.lang.Object context,
BlockFactory blockFactory) |
boolean |
isDoingSWA() |
boolean |
isMTOMEnabled()
A message is MTOM enabled if the
associated dispatch/client/impl/provider has a binding type
that enables MTOM.
|
boolean |
isPostPivot() |
javax.activation.DataHandler |
removeDataHandler(java.lang.String cid)
Get the attachment and remove it from the Message
|
void |
setDoingSWA(boolean value)
Indicate that an SWA DataHandler was added to the message.
|
void |
setMessageContext(MessageContext messageContext)
JAX-WS Message Context that owns the Message
|
void |
setMimeHeaders(java.util.Map map)
Set the transport headers
|
void |
setMTOMEnabled(boolean b)
A message is MTOM enabled if the
associated dispatch/client/impl/provider has a binding type
that enables MTOM.
|
void |
setPostPivot()
Indicate that this message is passed the pivot point.
|
appendHeaderBlock, close, getAsOMElement, getAsSOAPEnvelope, getBodyBlock, getBodyBlock, getBodyBlockQNames, getHeaderBlock, getHeaderBlocks, getHeaderQNames, getIndirection, getNumBodyBlocks, getNumHeaderBlocks, getOperationElement, getParent, getStyle, getXMLFault, getXMLPartContentType, getXMLStreamReader, isConsumed, isFault, outputTo, removeBodyBlock, removeHeaderBlock, setBodyBlock, setBodyBlock, setHeaderBlock, setIndirection, setOperationElement, setParent, setStyle, setXMLFault, traceStringProtocol getProtocol()
getProtocol in interface XMLPartjavax.xml.soap.SOAPMessage getAsSOAPMessage()
throws javax.xml.ws.WebServiceException
javax.xml.ws.WebServiceExceptionvoid addDataHandler(javax.activation.DataHandler dh,
java.lang.String id)
dh - DataHandler (type of Attachment is inferred from dh.getContentType)id - String which is the Attachment content idaddAttachment(Attachment)java.util.List<java.lang.String> getAttachmentIDs()
java.lang.String getAttachmentID(int index)
index - java.lang.String getAttachmentID(java.lang.String partName)
partName - (WS-I indicates that SWA attachments have a partName prefix)javax.activation.DataHandler getDataHandler(java.lang.String cid)
cid - void setDoingSWA(boolean value)
value - boolean isDoingSWA()
javax.activation.DataHandler removeDataHandler(java.lang.String cid)
cid - boolean isMTOMEnabled()
void setMTOMEnabled(boolean b)
b - java.util.Map getMimeHeaders()
void setMimeHeaders(java.util.Map map)
map - Mapvoid setPostPivot()
boolean isPostPivot()
void setMessageContext(MessageContext messageContext)
messageContext - MessageContext getMessageContext()
java.lang.Object getValue(java.lang.Object context,
BlockFactory blockFactory)
throws javax.xml.ws.WebServiceException
javax.xml.ws.WebServiceExceptionCopyright © 2004-2015 The Apache Software Foundation. All Rights Reserved.