| org.gomba.TransactorAbstractServlet org.gomba.AbstractServlet
All known Subclasses: org.gomba.SingleQueryServlet, org.gomba.UpdateServlet,
AbstractServlet | abstract class AbstractServlet extends TransactorAbstractServlet (Code) | | Base class for Servlets that render data accessed via JDBC.
Context params:
- org.gomba.dataSource
- The default JNDI data source. If not specified, the data source must be
set in the
data-source servlet init-param. (Optional)
- org.gomba.debug
- The default debug mode. To enable debug logging set the value to 'true'.
(Optional)
This servlet inherits the init-params of
org.gomba.TransactorAbstractServlet
Init params:
- data-source
- The JNDI data source. The default data source may be specified in the
org.gomba.dataSource context-param. (Optional)
- response-headers
- The HTTP response headers in Java Properties format. May contain ${}
parameters in the property values. It is highly recommended to set this
init-param, especially for cache headers like "Last-modified", "Expires" etc.
(Optional)
- http-status
- The HTTP status code to send when the request is successfully processed.
Defaults to 200 (OK). (Optional)
- multipart-size-threshold
- The size threshold beyond which files are written directly to disk.
Defaut: 64K (Optional)
- multipart-max-size
- The maximum allowed upload size. If negative, there is no maximum.
Defaut: 128K (Optional)
- multipart-repository-path
- The location used to temporarily store files that are larger than the
configured size threshold. Defaut: the system default temp directory, as
returned by System.getProperty("java.io.tmpdir") (Optional)
- debug
- Log debug mode. To enable debug logging set the value to 'true'. The
default debug mode may be specified in the
org.gomba.debug
context-param. (Optional)
author: Flavio Tordini version: $Id: AbstractServlet.java,v 1.2 2004/06/28 16:12:05 flaviotordini version: Exp $ |
CONTEXT_PARAM_DEBUG | final protected static String CONTEXT_PARAM_DEBUG(Code) | | |
INIT_PARAM_DEBUGMODE | final protected static String INIT_PARAM_DEBUGMODE(Code) | | |
getDebugMode | protected static boolean getDebugMode(ServletConfig config)(Code) | | true if debug is enabled. |
getHttpStatusCode | final protected int getHttpStatusCode()(Code) | | Returns the httpStatusCode. |
getProfilingMessage | protected static String getProfilingMessage(HttpServletRequest request, long startTime)(Code) | | Utility method that returns profiling/debugging info for the current
request.
Parameters: request - The current HTTP request Parameters: startTime - The time when the processing has begun. |
getResponseHeaders | final protected Map getResponseHeaders()(Code) | | Returns the responseHeaders. |
isDebugMode | final protected boolean isDebugMode()(Code) | | Returns the debugMode. |
maybeMoveCursor | final protected static boolean maybeMoveCursor(ResultSet resultSet) throws SQLException(Code) | | Ensure the resultset cursor is positioned on a row.
true if the ResultSet is positioned on a row. if the ResultSetcontains no rows return false. |
|
|