Class MessageAttachmentContext
- java.lang.Object
-
- org.apache.axis2.jaxws.message.attachments.MessageAttachmentContext
-
- All Implemented Interfaces:
AttachmentContext
public final class MessageAttachmentContext extends Object implements AttachmentContext
-
-
Constructor Summary
Constructors Constructor Description MessageAttachmentContext(Message message)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addDataHandler(DataHandler dh, String cid)
Inform the context that an Attachment (DataHandler, CID) is written.DataHandler
getDataHandlerForSwA(String blobcid)
MessageContext
getMessageContext()
boolean
isMTOMEnabled()
void
setDoingSWA()
Indicate on the context that SWA attachments are encountered
-
-
-
Constructor Detail
-
MessageAttachmentContext
public MessageAttachmentContext(Message message)
-
-
Method Detail
-
getMessageContext
public MessageContext getMessageContext()
- Specified by:
getMessageContext
in interfaceAttachmentContext
-
isMTOMEnabled
public boolean isMTOMEnabled()
- Specified by:
isMTOMEnabled
in interfaceAttachmentContext
- Returns:
- if MTOM enabled calculated from the context information
-
setDoingSWA
public void setDoingSWA()
Description copied from interface:AttachmentContext
Indicate on the context that SWA attachments are encountered- Specified by:
setDoingSWA
in interfaceAttachmentContext
-
addDataHandler
public void addDataHandler(DataHandler dh, String cid)
Description copied from interface:AttachmentContext
Inform the context that an Attachment (DataHandler, CID) is written.- Specified by:
addDataHandler
in interfaceAttachmentContext
-
getDataHandlerForSwA
public DataHandler getDataHandlerForSwA(String blobcid)
- Specified by:
getDataHandlerForSwA
in interfaceAttachmentContext
-
-