gpl.fredy.webmail
Class LoginServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by gpl.fredy.webmail.LoginServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class LoginServlet
extends javax.servlet.http.HttpServlet

See Also:
Serialized Form

Constructor Summary
LoginServlet()
           
 
Method Summary
 void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 java.lang.String getDefaultFolder()
          Get the value of defaultFolder.
 java.lang.String getErrMessage()
          Get the value of errMessage.
 java.lang.String getLoginPage()
          Get the value of loginPage.
 javax.mail.Session getMailSession()
           
 java.lang.String getMailStore()
          Get the mailstore for this session
 int getMsgCount()
          Get the value of msgCount.
 java.lang.String getPassword()
          Get the value of password.
 java.util.Properties getProps()
          Get the value of props.
 java.lang.String getProtocol()
          Get the Protocol used to access the mailbox.
 java.lang.String getSmtpHost()
          Get the smtphost used for this session
 javax.mail.Store getStore()
           
 java.lang.String getUser()
          Get the value of user.
 void init(javax.servlet.ServletConfig config)
           
 void setDefaultFolder(java.lang.String v)
          Set the value of defaultFolder.
 void setErrMessage(java.lang.String v)
          Set the value of errMessage.
 void setLoginPage(java.lang.String v)
          Set the value of loginPage.
 void setMailStore(java.lang.String v)
          Set the value of host.
 void setMsgCount(int v)
          Set the value of msgCount.
 void setPassword(java.lang.String v)
          Set the value of password.
 void setProps(java.util.Properties v)
          Set the value of props.
 void setProtocol(java.lang.String v)
          Set the Protocol used to access the mailbox.
 void setSmtpHost(java.lang.String v)
          Set the value of smtphost.
 void setUser(java.lang.String v)
          Set the value of user.
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, 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
 

Constructor Detail

LoginServlet

public LoginServlet()
Method Detail

getSmtpHost

public java.lang.String getSmtpHost()
Get the smtphost used for this session

Returns:
the smtphost used for this session

setSmtpHost

public void setSmtpHost(java.lang.String v)
Set the value of smtphost.

Parameters:
v - Value to assign to smtphost.

getMailStore

public java.lang.String getMailStore()
Get the mailstore for this session

Returns:
the name of the mailstore

setMailStore

public void setMailStore(java.lang.String v)
Set the value of host.

Parameters:
v - Value to assign to host.

getProtocol

public java.lang.String getProtocol()
Get the Protocol used to access the mailbox.

Returns:
Value of the protocol.

setProtocol

public void setProtocol(java.lang.String v)
Set the Protocol used to access the mailbox.

Parameters:
v - the Protocol used to access the mailbox..

getUser

public java.lang.String getUser()
Get the value of user.

Returns:
Value of user.

setUser

public void setUser(java.lang.String v)
Set the value of user.

Parameters:
v - Value to assign to user.

getPassword

public java.lang.String getPassword()
Get the value of password.

Returns:
Value of password.

setPassword

public void setPassword(java.lang.String v)
Set the value of password.

Parameters:
v - Value to assign to password.

getDefaultFolder

public java.lang.String getDefaultFolder()
Get the value of defaultFolder.

Returns:
value of defaultFolder.

setDefaultFolder

public void setDefaultFolder(java.lang.String v)
Set the value of defaultFolder.

Parameters:
v - Value to assign to defaultFolder.

getProps

public java.util.Properties getProps()
Get the value of props.

Returns:
value of props.

setProps

public void setProps(java.util.Properties v)
Set the value of props.

Parameters:
v - Value to assign to props.

getErrMessage

public java.lang.String getErrMessage()
Get the value of errMessage.

Returns:
value of errMessage.

setErrMessage

public void setErrMessage(java.lang.String v)
Set the value of errMessage.

Parameters:
v - Value to assign to errMessage.

getMsgCount

public int getMsgCount()
Get the value of msgCount.

Returns:
value of msgCount.

setMsgCount

public void setMsgCount(int v)
Set the value of msgCount.

Parameters:
v - Value to assign to msgCount.

getLoginPage

public java.lang.String getLoginPage()
Get the value of loginPage.

Returns:
value of loginPage.

setLoginPage

public void setLoginPage(java.lang.String v)
Set the value of loginPage.

Parameters:
v - Value to assign to loginPage.

getMailSession

public javax.mail.Session getMailSession()

getStore

public javax.mail.Store getStore()

init

public void init(javax.servlet.ServletConfig config)
          throws javax.servlet.ServletException
Specified by:
init in interface javax.servlet.Servlet
Overrides:
init in class javax.servlet.GenericServlet
Throws:
javax.servlet.ServletException

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
Throws:
javax.servlet.ServletException
java.io.IOException

doPost

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