/********************************************************************
* API for Servlets and SignatureGenerators in RAP
*  enabling extensible behaviors for RAP Digital Objects
* RAP - Repository Access Protocol
********************************************************************/
package ServletAPI;

/**
 * An optional, encoded definition of a RAP Servlet's attachment 
 *  specification, possibly with more detail.  This could be
 *  an XML DTD, for instance, that describes the "role" tags for
 *  attachments.
 *
 * @author Christophe Blanchi
 * @author Sandy Payette
 * @author Naomi Dushay
 **/
public class AttachmentDef
{
    /**
     * How the attachment definition is encoded (e.g. XML DTD)
     **/
    public String encoding;

    /**
     * The encoded attachment definition as an array of bytes
     **/
    public byte[] definition;
    
    public AttachmentDef(String encoding, byte[] definition)
    {
        this.encoding = encoding;
        this.definition = definition;
    }
}
