Package org.apache.cxf.attachment
Class AttachmentImpl
java.lang.Object
org.apache.cxf.attachment.AttachmentImpl
- All Implemented Interfaces:
Attachment
-
Constructor Summary
ConstructorDescriptionAttachmentImpl
(String idParam) AttachmentImpl
(String idParam, javax.activation.DataHandler handlerParam) -
Method Summary
Modifier and TypeMethodDescriptionjavax.activation.DataHandler
getId()
boolean
isXOP()
Whether or not this is an XOP package.void
setDataHandler
(javax.activation.DataHandler dataHandler) void
void
setXOP
(boolean xopParam)
-
Constructor Details
-
AttachmentImpl
-
AttachmentImpl
-
-
Method Details
-
getId
- Specified by:
getId
in interfaceAttachment
- Returns:
- The attachment id.
-
getDataHandler
public javax.activation.DataHandler getDataHandler()- Specified by:
getDataHandler
in interfaceAttachment
-
setDataHandler
public void setDataHandler(javax.activation.DataHandler dataHandler) -
setHeader
-
getHeader
- Specified by:
getHeader
in interfaceAttachment
-
getHeaderNames
- Specified by:
getHeaderNames
in interfaceAttachment
-
isXOP
public boolean isXOP()Description copied from interface:Attachment
Whether 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:
isXOP
in interfaceAttachment
- Returns:
- true if this attachment is an XOP package
-
setXOP
public void setXOP(boolean xopParam)
-