com.informationkinematics.imsforward
Class Showdown
java.lang.Object
|
+--javax.servlet.GenericServlet
|
+--javax.servlet.http.HttpServlet
|
+--com.informationkinematics.imsforward.Littles
|
+--com.informationkinematics.imsforward.Showdown
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
- public class Showdown
- extends Littles
Title: Showdown
Description: Controls the writing of the mail server's control file and shows the final
status screen of the IMSForward application.
Copyright: Copyright (c) 2001 by Information Kinematics under GNU General Public License
(see package description for more information)
Company: Information Kinematics
- Version:
- 0.9.2
- Author:
- Florian Steinsiepe, Adrian Zaugg
- See Also:
- Serialized Form
Fields inherited from class javax.servlet.http.HttpServlet |
HEADER_IFMODSINCE, HEADER_LASTMOD, LSTRING_FILE, lStrings, METHOD_DELETE, METHOD_GET, METHOD_HEAD, METHOD_OPTIONS, METHOD_POST, METHOD_PUT, METHOD_TRACE |
Fields inherited from class javax.servlet.GenericServlet |
config |
Method Summary |
void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
doGet is inactive to avoid the possibility to bypass the IMSForward's security
checks which are performed in earlier steps. |
void |
doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
doPost reads the client's input, formats the parameters for the mail server's control file,
writes the file and shows the final screen. |
private boolean |
isTrueOrFalse(java.lang.String s)
Returns true if s equals "checked" (case-insensitive), else false. |
private int |
toInt(java.lang.String s)
Parses s into an int and returns it. |
Methods inherited from class javax.servlet.http.HttpServlet |
, doDelete, doHead, doOptions, doPut, doTrace, getAllDeclaredMethods, getLastModified, maybeSetLastModified, 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, registerNatives, toString, wait, wait, wait |
Showdown
public Showdown()
doGet
public void doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
java.io.IOException
- doGet is inactive to avoid the possibility to bypass the IMSForward's security
checks which are performed in earlier steps.
- Overrides:
doGet
in class javax.servlet.http.HttpServlet
- Parameters:
req
- javax.servlet.http.HttpServletRequestres
- javax.servlet.http.HttpServletResponse
doPost
public void doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
java.io.IOException
- doPost reads the client's input, formats the parameters for the mail server's control file,
writes the file and shows the final screen.
- Overrides:
doPost
in class javax.servlet.http.HttpServlet
- Parameters:
req
- javax.servlet.http.HttpServletRequestres
- javax.servlet.http.HttpServletResponse
isTrueOrFalse
private boolean isTrueOrFalse(java.lang.String s)
- Returns true if s equals "checked" (case-insensitive), else false.
- Parameters:
s
- java.lang.String- Returns:
- boolean
toInt
private int toInt(java.lang.String s)
- Parses s into an int and returns it. If this fails, an exception is thrown.
- Parameters:
s
- java.lang.String- Returns:
- int