org.apache.cxf.attachment
Class AttachmentImpl
java.lang.Object
org.apache.cxf.attachment.AttachmentImpl
- All Implemented Interfaces:
- Attachment
public class AttachmentImpl
- extends java.lang.Object
- implements Attachment
|
Constructor Summary |
AttachmentImpl(java.lang.String idParam)
|
AttachmentImpl(java.lang.String idParam,
javax.activation.DataHandler handlerParam)
|
|
Method Summary |
javax.activation.DataHandler |
getDataHandler()
|
java.lang.String |
getHeader(java.lang.String name)
|
java.util.Iterator<java.lang.String> |
getHeaderNames()
|
java.lang.String |
getId()
|
boolean |
isXOP()
Whether or not this is an XOP package. |
void |
setDataHandler(javax.activation.DataHandler dataHandler)
|
void |
setHeader(java.lang.String name,
java.lang.String value)
|
void |
setXOP(boolean xopParam)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AttachmentImpl
public AttachmentImpl(java.lang.String idParam)
AttachmentImpl
public AttachmentImpl(java.lang.String idParam,
javax.activation.DataHandler handlerParam)
getId
public java.lang.String getId()
- Specified by:
getId in interface Attachment
- Returns:
- The attachment id.
getDataHandler
public javax.activation.DataHandler getDataHandler()
- Specified by:
getDataHandler in interface Attachment
setDataHandler
public void setDataHandler(javax.activation.DataHandler dataHandler)
setHeader
public void setHeader(java.lang.String name,
java.lang.String value)
getHeader
public java.lang.String getHeader(java.lang.String name)
- Specified by:
getHeader in interface Attachment
getHeaderNames
public java.util.Iterator<java.lang.String> getHeaderNames()
- Specified by:
getHeaderNames in interface Attachment
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 interface Attachment
- Returns:
- true iff this attachment is an XOP package
setXOP
public void setXOP(boolean xopParam)
Apache CXF is an effort undergoing incubation at the Apache Software Foundation(ASF) and sponsored by the Apache Incubator PMC.