Package org.apache.axis2.datasource.jaxb
Class MessageContextAttachmentContext
- java.lang.Object
-
- org.apache.axis2.datasource.jaxb.MessageContextAttachmentContext
-
- All Implemented Interfaces:
AttachmentContext
public final class MessageContextAttachmentContext extends Object implements AttachmentContext
An implementation of the JAXB AttachmentMarshaller that is used to handle binary data from JAXB and create populate the appropriate constructs on the MessageContext
-
-
Constructor Summary
Constructors Constructor Description MessageContextAttachmentContext(MessageContext msgContext)
-
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
-
MessageContextAttachmentContext
public MessageContextAttachmentContext(MessageContext msgContext)
-
-
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
-
-