Package org.apache.cxf.attachment
Class AttachmentImpl
java.lang.Object
org.apache.cxf.attachment.AttachmentImpl
- All Implemented Interfaces:
Attachment
-
Constructor Summary
ConstructorsConstructorDescriptionAttachmentImpl(String idParam) AttachmentImpl(String idParam, jakarta.activation.DataHandler handlerParam) -
Method Summary
Modifier and TypeMethodDescriptionjakarta.activation.DataHandlergetId()booleanisXOP()Whether or not this is an XOP package.voidsetDataHandler(jakarta.activation.DataHandler dataHandler) voidvoidsetXOP(boolean xopParam)
-
Constructor Details
-
AttachmentImpl
-
AttachmentImpl
-
-
Method Details
-
getId
- Specified by:
getIdin interfaceAttachment- Returns:
- The attachment id.
-
getDataHandler
public jakarta.activation.DataHandler getDataHandler()- Specified by:
getDataHandlerin interfaceAttachment
-
setDataHandler
public void setDataHandler(jakarta.activation.DataHandler dataHandler) -
setHeader
-
getHeader
- Specified by:
getHeaderin interfaceAttachment
-
getHeaderNames
- Specified by:
getHeaderNamesin interfaceAttachment
-
isXOP
public boolean isXOP()Description copied from interface:AttachmentWhether or not this is an XOP package. This will affect the serialization of the attachment. If true, it will be serialized as binary data, and not Base64Binary.- Specified by:
isXOPin interfaceAttachment- Returns:
- true if this attachment is an XOP package
-
setXOP
public void setXOP(boolean xopParam)
-