public interface Message extends XMLPart
XMLPart
,
Attachment
Modifier and Type | Method and Description |
---|---|
void |
addDataHandler(DataHandler dh,
String id)
Add Attachment
|
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
|
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() |
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, traceString
Protocol getProtocol()
getProtocol
in interface XMLPart
SOAPMessage getAsSOAPMessage() throws WebServiceException
WebServiceException
void addDataHandler(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)DataHandler getDataHandler(String cid)
cid
- void setDoingSWA(boolean value)
value
- boolean isDoingSWA()
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 WebServiceException
WebServiceException
Copyright © 2004-2015 The Apache Software Foundation. All Rights Reserved.