Package org.apache.cxf.attachment
Class AttachmentImpl
- java.lang.Object
-
- org.apache.cxf.attachment.AttachmentImpl
-
- All Implemented Interfaces:
Attachment
public class AttachmentImpl extends Object implements Attachment
-
-
Constructor Summary
Constructors Constructor Description AttachmentImpl(String idParam)AttachmentImpl(String idParam, javax.activation.DataHandler handlerParam)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.activation.DataHandlergetDataHandler()StringgetHeader(String name)Iterator<String>getHeaderNames()StringgetId()booleanisXOP()Whether or not this is an XOP package.voidsetDataHandler(javax.activation.DataHandler dataHandler)voidsetHeader(String name, String value)voidsetXOP(boolean xopParam)
-
-
-
Method Detail
-
getId
public String getId()
- Specified by:
getIdin interfaceAttachment- Returns:
- The attachment id.
-
getDataHandler
public javax.activation.DataHandler getDataHandler()
- Specified by:
getDataHandlerin interfaceAttachment
-
setDataHandler
public void setDataHandler(javax.activation.DataHandler dataHandler)
-
getHeader
public String getHeader(String name)
- Specified by:
getHeaderin interfaceAttachment
-
getHeaderNames
public Iterator<String> 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)
-
-