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, DataHandler handlerParam) -
Method Summary
Modifier and TypeMethodDescriptiongetId()booleanisXOP()Whether or not this is an XOP package.voidsetDataHandler(DataHandler dataHandler) voidvoidsetXOP(boolean xopParam)
-
Constructor Details
-
AttachmentImpl
-
AttachmentImpl
-
-
Method Details
-
getId
- Specified by:
getIdin interfaceAttachment- Returns:
- The attachment id.
-
getDataHandler
- Specified by:
getDataHandlerin interfaceAttachment
-
setDataHandler
-
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)
-