|
PAJES 2.3.9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.pajes.servlet.PajeServlet
org.pajes.servlet.DataAccessPajeServlet
Base class for all servlets that utilise the PAJES servlet framework that require data access services.
This class does NOT authenticate access to resources. If
authentication is required, sub-class AuthenticatedPajeServlet
instead, or use the authentication services of the servlet container.
As with "standard" servlets, sub-classes should implement the doGet or doPost method.
| Constructor Summary | |
DataAccessPajeServlet()
|
|
| Method Summary | |
java.sql.Connection |
getDBConnection()
Convenience method to return a free database connection from the default connection pool. |
java.sql.Connection |
getDBConnection(java.lang.String poolName)
Convenience method to return a free database connection from the named connection pool. |
ConnectionManager |
getDBConnectionPoolManager()
Convenience method to return the ConnectionManager that manages the defined connection pools available in this ServletContext. |
protected void |
service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Over-rides the HttpServlet service method to provide
automatic handling of database connections that were not correctly
released. |
| Methods inherited from class org.pajes.servlet.PajeServlet |
createPaje, createPaje, createPaje, doGet, doPost, getAbsoluteHREF, getBaseHREF, getMaxFileUploadSize, getPajeFactory, getResource, getUploadedFile, getUploadedFileNames, handleException, init, log, log, setInputFieldsFromRequestAttributes, setInputFieldsFromRequestParameters, setMaxFileUploadSize, setPajeFactory |
| Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service |
| Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DataAccessPajeServlet()
| Method Detail |
public java.sql.Connection getDBConnection()
throws java.sql.SQLException
java.sql.SQLException - if an error occurs whilst accessing the database.
public java.sql.Connection getDBConnection(java.lang.String poolName)
throws java.sql.SQLException
poolName - the name of the connection pool to use.
java.sql.SQLException - if an error occurs whilst accessing the database.public ConnectionManager getDBConnectionPoolManager()
protected void service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException,
javax.servlet.ServletException
HttpServlet service method to provide
automatic handling of database connections that were not correctly
released.
service in class PajeServletrequest - the object that contains the request the client made of
the servlet.response - the object that contains the response the servlet
returns to the client.
java.io.IOException - if an input or output error is detected when the
servlet handles the request.
javax.servlet.ServletException - if the request could not be handled.
|
PAJES 2.3.9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||