org.codehaus.xfire.attachments
Class SimpleAttachment

java.lang.Object
  extended by org.codehaus.xfire.attachments.SimpleAttachment
All Implemented Interfaces:
Attachment

public class SimpleAttachment
extends java.lang.Object
implements Attachment

Author:
Dan Diephouse

Constructor Summary
SimpleAttachment(java.lang.String id, javax.activation.DataHandler handler)
           
 
Method Summary
 javax.activation.DataHandler getDataHandler()
           
 java.lang.String getHeader(java.lang.String name)
           
 java.lang.String getId()
           
 boolean isXOP()
          Whether or not this is an XOP package.
 void setHeader(java.lang.String name, java.lang.String value)
           
 void setXOP(boolean xop)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleAttachment

public SimpleAttachment(java.lang.String id,
                        javax.activation.DataHandler handler)
Method Detail

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

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

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:

setXOP

public void setXOP(boolean xop)


Copyright © 2004-2009. All Rights Reserved.