Jwma

dtw.webmail
Class JwmaSendMail

java.lang.Object
  |
  +--javax.servlet.GenericServlet
        |
        +--javax.servlet.http.HttpServlet
              |
              +--dtw.webmail.JwmaSendMail
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class JwmaSendMail
extends javax.servlet.http.HttpServlet

Class extending the HttpServlet to implement the SendMail controller of jwma.

Please see the related documentation for more detailed information on process flow and functionality.

Version:
0.9.7 07/02/2003
Author:
Dieter Wimberger
See Also:
Serialized Form

Constructor Summary
JwmaSendMail()
           
 
Method Summary
 java.lang.String getServletInfo()
          Returns servlet info as String.
 void init(javax.servlet.ServletConfig config)
          Initializes the servlet when it is loaded by the servlet engine.
 void service(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Handles the incoming requests.
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doOptions, doPost, doPut, doTrace, getLastModified, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JwmaSendMail

public JwmaSendMail()
Method Detail

init

public void init(javax.servlet.ServletConfig config)
          throws javax.servlet.ServletException
Initializes the servlet when it is loaded by the servlet engine.

This implementation just calls its superclass implementation.

Specified by:
init in interface javax.servlet.Servlet
Overrides:
init in class javax.servlet.GenericServlet
Throws:
javax.servlet.ServletException - if initialization fails.

service

public void service(javax.servlet.http.HttpServletRequest req,
                    javax.servlet.http.HttpServletResponse res)
             throws javax.servlet.ServletException,
                    java.io.IOException
Handles the incoming requests.

This implementation ensures authenticated session existence and just calls the only supported action (sendmessage).

Note:incoming data should be multipart/form-data encoded.

Application related errors/exceptions are handled internally by forwarding the request to an error page (or maybe inlining error information somewhen).

Overrides:
service in class javax.servlet.http.HttpServlet
Parameters:
req - a reference to the actual HttpServletRequest instance.
res - a reference to the actual HttpServletResponse instance.
Throws:
javax.servlet.ServletException - if servlet related operations fail.
java.io.IOException - if i/o operations fail.

getServletInfo

public java.lang.String getServletInfo()
Returns servlet info as String.

Specified by:
getServletInfo in interface javax.servlet.Servlet
Overrides:
getServletInfo in class javax.servlet.GenericServlet
Returns:
Info about this servlet as String.

Jwma

Copyright © 2000-2003 jwma team (All Rights Reserved.)