| javax.servlet.http.HttpServlet com.jcorporate.expresso.core.servlet.StdServlet
All known Subclasses: com.jcorporate.expresso.core.servlet.DBServlet,
Method Summary | |
public void | destroy() | public void | doGet(HttpServletRequest request, HttpServletResponse response) Ancestor calls this function (with super.doGet) to handle
making database connection, getting user login info
and other common tasks. | public void | doPost(HttpServletRequest req, HttpServletResponse res) Ancestor calls this method via super.doPost to handle standard
operations. | protected String | getSchema() | protected String | getServerName(HttpServletRequest request) | public int | getServerPort(HttpServletRequest request) | public String | getServletPrefix(HttpServletRequest request) Return a string to be used as part of the URL to call this servlet. | public String | getServletPrefix(HttpServletRequest request, String servlet) | public String | getString(HttpServletRequest req, String stringCode, Object[] args) | public String | getString(HttpServletRequest req, String stringCode) | public String | getTitle() | protected void | handleParam(HttpServletRequest request, HttpServletResponse response) | public void | init(ServletConfig sc) Servlet initialization. | protected void | setSchema(String schemaClass) Tell this StdServlet object what Schema it belongs to. | protected void | showError(String errorMessage, HttpServletRequest request, HttpServletResponse response) | protected void | showError(Throwable t, HttpServletRequest request, HttpServletResponse response) Display a throwable (like an exception) to the user in a nicely
formatted manner. |
destroy | public void destroy()(Code) | | Called when the web context is destroyed or reloaded
|
doGet | public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException(Code) | | Ancestor calls this function (with super.doGet) to handle
making database connection, getting user login info
and other common tasks.
Parameters: request - Standard request object Parameters: response - Standard response object throws: ServletException - If an uncaught exception occurs throws: IOException - If an I/O error occurs while communicating withthe client |
getSchema | protected String getSchema()(Code) | | Return the name of the schema class that this servlet is registered
within
|
getServerName | protected String getServerName(HttpServletRequest request)(Code) | | Return the name of the current web server system
Parameters: request - String The name of the current web server |
getServerPort | public int getServerPort(HttpServletRequest request)(Code) | | Return the port number the servlet runtime engine is running on
Parameters: request - int The port number for servlets |
getServletPrefix | public String getServletPrefix(HttpServletRequest request) throws ServletException(Code) | | Return a string to be used as part of the URL to call this servlet.
Often used by doGet methods to build the action for a form to call
the doPost method of the same servlet.
Parameters: request - String The string for building a URL throws: ServletException - If the string cannot be built due tosetup information not being available |
getTitle | public String getTitle()(Code) | | Ancestors of this class override this method to return a specific title that is
used by the security administration Controllers to describe the servlet
|
init | public void init(ServletConfig sc) throws ServletException(Code) | | Servlet initialization. Checks to make sure ConfigManager has been
initialized and starts the configuration process if it hasn't.
Parameters: sc - The ServletConfig. Should contain 'configDir' as a contextparameter, and possibly 'logDir'. |
setSchema | protected void setSchema(String schemaClass)(Code) | | Tell this StdServlet object what Schema it belongs to. This is used
when the Controller tries to use it's "getString(String, Object[])"
method to prepare internationalized messages - it passes the call
along to the appropriate schema which knows how to locate the
proper message file
Parameters: schemaClass - |
showError | protected void showError(Throwable t, HttpServletRequest request, HttpServletResponse response) throws ServletException(Code) | | Display a throwable (like an exception) to the user in a nicely
formatted manner. Also show the stack trace in an HTML comment
Parameters: t - The throwable error Parameters: request - Parameters: response - |
Methods inherited from javax.servlet.http.HttpServlet | protected void doDelete(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doHead(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doOptions(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doPut(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doTrace(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected long getLastModified(HttpServletRequest req)(Code)(Java Doc) protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) public void service(ServletRequest req, ServletResponse res) throws ServletException, IOException(Code)(Java Doc)
|
|
|