public interface Message extends XMLPart
XMLPart,
Attachment| Modifier and Type | Method and Description |
|---|---|
void |
addDataHandler(javax.activation.DataHandler dh,
String id)
Add Attachment
|
javax.xml.soap.SOAPMessage |
getAsSOAPMessage()
getAsSOAPMessage Get the xml part as a read/write SOAPEnvelope
|
String |
getAttachmentID(int index)
Get the indicated (non-soap part) attachment id
|
String |
getAttachmentID(String partName)
Get the indicated (non-soap part) attachment id
|
List<String> |
getAttachmentIDs()
Get the list of attachment content ids for the message
|
javax.activation.DataHandler |
getDataHandler(String cid)
Get the attachment identified by the contentID
|
MessageContext |
getMessageContext() |
Map |
getMimeHeaders() |
Protocol |
getProtocol()
Get the protocol for this Message (soap11, soap12, etc.)
|
Object |
getValue(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(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(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,
String id)
dh - DataHandler (type of Attachment is inferred from dh.getContentType)id - String which is the Attachment content idaddAttachment(Attachment)List<String> getAttachmentIDs()
String getAttachmentID(int index)
index - String getAttachmentID(String partName)
partName - (WS-I indicates that SWA attachments have a partName prefix)javax.activation.DataHandler getDataHandler(String cid)
cid - void setDoingSWA(boolean value)
value - boolean isDoingSWA()
javax.activation.DataHandler removeDataHandler(String cid)
cid - boolean isMTOMEnabled()
void setMTOMEnabled(boolean b)
b - Map getMimeHeaders()
void setMimeHeaders(Map map)
map - Mapvoid setPostPivot()
boolean isPostPivot()
void setMessageContext(MessageContext messageContext)
messageContext - MessageContext getMessageContext()
Object getValue(Object context, BlockFactory blockFactory) throws javax.xml.ws.WebServiceException
javax.xml.ws.WebServiceExceptionCopyright © 2004–2017 The Apache Software Foundation. All rights reserved.