All Packages This Package Class Hierarchy Class Search Index
java.lang.Object | +----javax.servlet.GenericServlet | +----javax.servlet.http.HttpServlet | +----kh.servlet.BaseServlet
Summary |
public class BaseServlet extends javax.servlet.http.HttpServlet { // Constructors 1 public BaseServlet(); // Methods 7 public static void dumpParameters(ServletRequest); public static void inheritParameters(StreamReplacement, ServletRequest); protected static void setMessage(StreamReplacement, Object); public String getServletInfo(); protected void reportTooLarge(HttpServletResponse) throws IOException; protected void sendPage(InputStream, StreamReplacement, HttpServletResponse) throws ServletException, IOException; protected void sendPage(URL, StreamReplacement, HttpServletResponse) throws ServletException, IOException; }
Cross Reference |
Constructors |
· BaseServlet | Summary | Top |
public BaseServlet()
Default constructor
Methods |
· dumpParameters | Summary | Top |
public static void dumpParameters(ServletRequest in)
Print parameters - a useful diagnostic routine
· getServletInfo | Summary | Top |
public String getServletInfo()
Tell the world about ourselves. Subclasses should override this function to include copyright etc...
- Returns:
- "Author: kevinh@geeksville.com"
- Overrides:
- getServletInfo in class GenericServlet
- Implements:
- getServletInfo in interface Servlet
· inheritParameters | Summary | Top |
public static void inheritParameters(StreamReplacement out, ServletRequest in)
Converts parameters into replacement tokens
· reportTooLarge | Summary | Top |
protected void reportTooLarge(HttpServletResponse res) throws IOException
We validate the size of POSTs to prevent denial of service attacks. This routine prints the error message to the response stream.
Parameter Description res the place to send our prepackaged response
· sendPage | Summary | Top |
protected void sendPage(InputStream instream, StreamReplacement repSet, HttpServletResponse res) throws ServletException, IOException
Using the specified replacement set, send the template file as a response.
This method also adds a replacement: "date" will be replaced with the current date.
Parameter Description instream the source file repSet the set of replacements to apply, or null for no replacements res the response this method generates
· sendPage | Summary | Top |
protected void sendPage(URL path, StreamReplacement repSet, HttpServletResponse res) throws ServletException, IOException
Using the specified replacement set, send the template file as a response.
This method also adds a replacement: "date" will be replaced with the current date.
Parameter Description path the location of the source file repSet the set of replacements to apply res the response this method generates
· setMessage | Summary | Top |
protected static void setMessage(StreamReplacement replace, Object value)
Changes the message line. By convention the message line on each form is named "warning".
Parameter Description replace the replacement set to change value the new value for the "warning" replacement
All Packages This Package Class Hierarchy Class Search IndexFreshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7