Compoze Software, Inc.

com.compoze.exchange
Class AttachmentServlet


java.lang.Object

  |

  +--javax.servlet.GenericServlet

        |

        +--javax.servlet.http.HttpServlet

              |

              +--com.compoze.exchange.AttachmentServlet

All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class AttachmentServlet
extends javax.servlet.http.HttpServlet

This class is a servlet that writes an attachment. The servlet expects that an Http session variable called AttachmentServlet.SESSION containing the com.compoze.exchange.Session object.

The servlet also expects that two request parameters be set. The AttachmentServlet.MESSAGE_ID parameter must contain the ID of the message which has the attachment to serve. The AttachmentServlet.ATTACHMENT_INDEX parameter must contain the name of the index of the attachment to serve.

See Also:
Serialized Form

Field Summary
static java.lang.String ATTACHMENT_INDEX
          This represents the request parameter for the attachment index (required).
static java.lang.String EMBEDDED_MESSAGE_INDEX
          This represents the request parameter for the embedded message index (optional).
static java.lang.String FOLDER_ID
          This represents the request parameter for the folder id (required).
static java.lang.String MESSAGE_ID
          This represents the request parameter for the message id (required).
static java.lang.String SESSION
          This represents the Http session attribute name to store the Session (required).
static java.lang.String SESSION_NAME
          This represents the request parameter that overrides the setting for Session.
 
Constructor Summary
AttachmentServlet()
           
 
Method Summary
 void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SESSION


public static final java.lang.String SESSION
This represents the Http session attribute name to store the Session (required).
See Also:
Session

SESSION_NAME


public static final java.lang.String SESSION_NAME
This represents the request parameter that overrides the setting for Session.

ATTACHMENT_INDEX


public static final java.lang.String ATTACHMENT_INDEX
This represents the request parameter for the attachment index (required).

EMBEDDED_MESSAGE_INDEX


public static final java.lang.String EMBEDDED_MESSAGE_INDEX
This represents the request parameter for the embedded message index (optional).

MESSAGE_ID


public static final java.lang.String MESSAGE_ID
This represents the request parameter for the message id (required).

FOLDER_ID


public static final java.lang.String FOLDER_ID
This represents the request parameter for the folder id (required).
Constructor Detail

AttachmentServlet


public AttachmentServlet()
Method Detail

doGet


public void doGet(javax.servlet.http.HttpServletRequest request,
                  javax.servlet.http.HttpServletResponse response)
           throws javax.servlet.ServletException,
                  java.io.IOException
Overrides:
doGet in class javax.servlet.http.HttpServlet

Compoze Software, Inc.

Copyright ©1999-2003 Compoze Software, Inc. All rights reserved.