|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Message
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.
XMLPart,
Attachment| Method Summary | |
|---|---|
void |
addDataHandler(javax.activation.DataHandler dh,
java.lang.String id)
Add Attachment |
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. |
| Methods inherited from interface org.apache.axis2.jaxws.message.XMLPart |
|---|
appendHeaderBlock, close, getAsOMElement, getAsSOAPEnvelope, getBodyBlock, getBodyBlock, 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 |
| Method Detail |
|---|
Protocol getProtocol()
getProtocol in interface XMLPart
SOAPMessage getAsSOAPMessage()
throws WebServiceException
WebServiceException
void 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 WebServiceException
WebServiceException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||