Compoze Software, Inc.

com.compoze.exchange.webdav
Class AttachmentDwnldServlet


java.lang.Object

  |

  +--javax.servlet.GenericServlet

        |

        +--javax.servlet.http.HttpServlet

              |

              +--com.compoze.util.ByteDataServlet

                    |

                    +--com.compoze.exchange.webdav.AttachmentDwnldServlet

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

public class AttachmentDwnldServlet
extends ByteDataServlet
implements java.io.Serializable

This servlet is used to dowload an attachment for a message.

See Also:
Serialized Form

Field Summary
static java.lang.String ATTACHMENT_ID
          This represents the request parameter for the attachment id.
static java.lang.String ATTACHMENT_INDEX
          This represents the request parameter for the attachment index.
static java.lang.String FOLDER_ID
          This represents the request parameter for the folder id.
static java.lang.String MESSAGE_ID
          This represents the request parameter for the message id.
static java.lang.String SESSION
          This represents the Http session attribute name to store the Session.
 
Constructor Summary
AttachmentDwnldServlet()
           
 
Method Summary
 void destroy()
          Gracefully shut down this servlet.
 void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Process an HTTP "GET" request.
 void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Process an HTTP "POST" request.
 void init()
          Initialize this servlet.
protected  void process(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Process an HTTP request.
 void reload()
          Reload the servlet.
 
Methods inherited from class com.compoze.util.ByteDataServlet
processData
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, 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.
See Also:
Session

ATTACHMENT_INDEX


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

MESSAGE_ID


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

FOLDER_ID


public static final java.lang.String FOLDER_ID
This represents the request parameter for the folder id.

ATTACHMENT_ID


public static final java.lang.String ATTACHMENT_ID
This represents the request parameter for the attachment id.
Constructor Detail

AttachmentDwnldServlet


public AttachmentDwnldServlet()
Method Detail

doGet


public void doGet(javax.servlet.http.HttpServletRequest request,
                  javax.servlet.http.HttpServletResponse response)
           throws java.io.IOException,
                  javax.servlet.ServletException
Process an HTTP "GET" request.
Overrides:
doGet in class javax.servlet.http.HttpServlet
Parameters:
request - The servlet request we are processing
response - The servlet response we are creating
Throws:
java.io.IOException - if an input/output error occurs
javax.servlet.ServletException - if a servlet exception occurs

doPost


public void doPost(javax.servlet.http.HttpServletRequest request,
                   javax.servlet.http.HttpServletResponse response)
            throws java.io.IOException,
                   javax.servlet.ServletException
Process an HTTP "POST" request.
Overrides:
doPost in class javax.servlet.http.HttpServlet
Parameters:
request - The servlet request we are processing
response - The servlet response we are creating
Throws:
java.io.IOException - if an input/output error occurs
javax.servlet.ServletException - if a servlet exception occurs

process


protected void process(javax.servlet.http.HttpServletRequest request,
                       javax.servlet.http.HttpServletResponse response)
                throws java.io.IOException,
                       javax.servlet.ServletException
Process an HTTP request.
Parameters:
request - The servlet request we are processing
response - The servlet response we are creating
Throws:
java.io.IOException - if an input/output error occurs
javax.servlet.ServletException - if a servlet exception occurs

init


public void init()
Initialize this servlet.
Overrides:
init in class javax.servlet.GenericServlet

reload


public void reload()
            throws java.io.IOException
Reload the servlet.
Throws:
java.io.IOException - if an input/output error occurs

destroy


public void destroy()
Gracefully shut down this servlet.
Overrides:
destroy in class javax.servlet.GenericServlet

Compoze Software, Inc.

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