View Javadoc

    1   package org.codehaus.xfire.attachments;
    2
    3   import javax.activation.DataHandler;
    4
    5   /***
    6    * @author <a href="mailto:dan@envoisolutions.com">Dan Diephouse</a>
    7    */
    8   public class SimpleAttachment
    9   	implements Attachment
    10  {
    11      private DataHandler handler;
    12      private	String id;
    13
    14      public SimpleAttachment(String id, DataHandler handler)
    15      {
    16          this.id = id;
    17          this.handler = handler;
    18      }
    19
    20      public String getId()
    21      {
    22          return id;
    23      }
    24
    25      public DataHandler getDataHandler()
    26      {
    27          return handler;
    28      }
    29  }