| java.lang.Object org.apache.axis2.jaxws.message.impl.MessageImpl
MessageImpl | public class MessageImpl implements Message(Code) | | MessageImpl
A Message is an XML part + Attachments.
Most of the implementation delegates to the XMLPart implementation.
NOTE: For XML/HTTP (REST), a SOAP 1.1. Envelope is built and the rest payload is placed
in the body. This purposely mimics the Axis2 implementation.
|
Method Summary | |
public void | addDataHandler(DataHandler dh, String id) | public OMElement | getAsOMElement() | public javax.xml.soap.SOAPEnvelope | getAsSOAPEnvelope() | public SOAPMessage | getAsSOAPMessage() | public String | getAttachmentID(int index) | public List<String> | getAttachmentIDs() | public Block | getBodyBlock(int index, Object context, BlockFactory blockFactory) | public Block | getBodyBlock(Object context, BlockFactory blockFactory) | public DataHandler | getDataHandler(String cid) | public Block | getHeaderBlock(String namespace, String localPart, Object context, BlockFactory blockFactory) | public int | getIndirection() | public MessageContext | getMessageContext() | public Map | getMimeHeaders() | public int | getNumBodyBlocks() | public int | getNumHeaderBlocks() | public QName | getOperationElement() | public Message | getParent() | public Protocol | getProtocol() | public Style | getStyle() | public Object | getValue(Object context, BlockFactory blockFactory) | public XMLFault | getXMLFault() | public String | getXMLPartContentType() | public XMLStreamReader | getXMLStreamReader(boolean consume) | public boolean | isConsumed() | public boolean | isDoingSWA() | public boolean | isFault() | public boolean | isMTOMEnabled() | public boolean | isPostPivot() | public void | outputTo(XMLStreamWriter writer, boolean consume) | public void | removeBodyBlock(int index) | public DataHandler | removeDataHandler(String cid) | public void | removeHeaderBlock(String namespace, String localPart) | public void | setBodyBlock(int index, Block block) | public void | setBodyBlock(Block block) | public void | setDoingSWA(boolean value) | public void | setHeaderBlock(String namespace, String localPart, Block block) | public void | setIndirection(int indirection) | public void | setMTOMEnabled(boolean b) | public void | setMessageContext(MessageContext messageContext) | public void | setMimeHeaders(Map map) | public void | setOperationElement(QName operationQName) | public void | setParent(Message msg) | public void | setPostPivot() | public void | setStyle(Style style) | public void | setXMLFault(XMLFault xmlFault) | public String | traceString(String indent) |
attachments | Attachments attachments(Code) | | |
mtomEnabled | boolean mtomEnabled(Code) | | |
MessageImpl | MessageImpl(OMElement root, Protocol protocol) throws WebServiceException, XMLStreamException(Code) | | Message is constructed by the MessageFactory.
This constructor creates a message from the specified root.
Parameters: root - Parameters: protocol - or null |
getAttachmentID | public String getAttachmentID(int index)(Code) | | Get the indicated (non-soap part) attachment id
Parameters: index - CID or null if not present |
getIndirection | public int getIndirection()(Code) | | |
getMimeHeaders | public Map getMimeHeaders()(Code) | | |
getStyle | public Style getStyle()(Code) | | |
getXMLPartContentType | public String getXMLPartContentType()(Code) | | |
isConsumed | public boolean isConsumed()(Code) | | |
isDoingSWA | public boolean isDoingSWA()(Code) | | |
isMTOMEnabled | public boolean isMTOMEnabled()(Code) | | true if the binding for this message indicates mtom |
isPostPivot | public boolean isPostPivot()(Code) | | |
setDoingSWA | public void setDoingSWA(boolean value)(Code) | | |
setIndirection | public void setIndirection(int indirection)(Code) | | |
setMTOMEnabled | public void setMTOMEnabled(boolean b)(Code) | | true if the binding for this message indicates mtom |
setMimeHeaders | public void setMimeHeaders(Map map)(Code) | | |
setPostPivot | public void setPostPivot()(Code) | | |
|
|