Package org.apache.axis2.datasource.jaxb
Class MessageContextAttachmentContext
java.lang.Object
org.apache.axis2.datasource.jaxb.MessageContextAttachmentContext
- All Implemented Interfaces:
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
ConstructorsConstructorDescriptionMessageContextAttachmentContext(org.apache.axis2.context.MessageContext msgContext) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDataHandler(jakarta.activation.DataHandler dh, String cid) Inform the context that an Attachment (DataHandler, CID) is written.jakarta.activation.DataHandlergetDataHandlerForSwA(String blobcid) org.apache.axis2.context.MessageContextbooleanvoidIndicate on the context that SWA attachments are encountered
-
Constructor Details
-
MessageContextAttachmentContext
public MessageContextAttachmentContext(org.apache.axis2.context.MessageContext msgContext)
-
-
Method Details
-
getMessageContext
public org.apache.axis2.context.MessageContext getMessageContext()- Specified by:
getMessageContextin interfaceAttachmentContext
-
isMTOMEnabled
public boolean isMTOMEnabled()- Specified by:
isMTOMEnabledin interfaceAttachmentContext- Returns:
- if MTOM enabled calculated from the context information
-
setDoingSWA
public void setDoingSWA()Description copied from interface:AttachmentContextIndicate on the context that SWA attachments are encountered- Specified by:
setDoingSWAin interfaceAttachmentContext
-
addDataHandler
Description copied from interface:AttachmentContextInform the context that an Attachment (DataHandler, CID) is written.- Specified by:
addDataHandlerin interfaceAttachmentContext
-
getDataHandlerForSwA
- Specified by:
getDataHandlerForSwAin interfaceAttachmentContext
-