|
PAJES 3.0.21 | ||||||||
| 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
org.pajes.servlet.Initialisation
PajesContext.
@Deprecated public class Initialisation
Initialises the PAJES servlet framework.
| Field Summary | |
|---|---|
static java.lang.String |
ACCESS_PERMISSION_INIT_PARAM_NAME
Deprecated. The name of the <init-param> for the Initialisation servlet in the deployment descriptor
that identifies the AccessPermission sub-class that will be used to
control access to the web application, |
static java.lang.String |
DEBUG_INIT_PARAM_NAME
Deprecated. The name of the <init-param> for the Initialisation servlet in the deployment descriptor
that identifies whether debugging is to be turned on by default. |
| Constructor Summary | |
|---|---|
Initialisation()
Deprecated. |
|
| Method Summary | |
|---|---|
void |
destroy()
Deprecated. Called by the servlet container when servlets are unloaded. |
protected void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Deprecated. Displays information about PAJES and the environment. |
javax.servlet.ServletContext |
getServletContext()
Deprecated. Returns a reference to the in which this class is running. |
java.lang.String |
getServletInfo()
Deprecated. Returns the PAJES copyright information. |
void |
init()
Deprecated. PAJES servlet framework initialisation. |
void |
init(javax.servlet.ServletContext context)
Deprecated. Main PAJES servlet framework initialisation. |
protected boolean |
isAccessPermissionRegistered()
Deprecated. Determines if an AccessPermission sub-class has been registered or not. |
protected AccessPermission |
registerAccessPermission(java.lang.String permission)
Deprecated. Instantiates and registers the specified AccessPermission sub-class. |
protected ConnectionManager |
registerConnectionManager()
Deprecated. Creates and registers the Connection Pool Manager. |
| Methods inherited from class org.pajes.servlet.DataAccessPajeServlet |
|---|
getDBConnection, getDBConnection, getDBConnectionPoolManager, service |
| Methods inherited from class org.pajes.servlet.PajeServlet |
|---|
createPaje, createPaje, createPaje, 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 |
|---|
getInitParameter, getInitParameterNames, getServletConfig, getServletName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String ACCESS_PERMISSION_INIT_PARAM_NAME
<init-param> for the Initialisation servlet in the deployment descriptor
that identifies the AccessPermission sub-class that will be used to
control access to the web application,
public static final java.lang.String DEBUG_INIT_PARAM_NAME
<init-param> for the Initialisation servlet in the deployment descriptor
that identifies whether debugging is to be turned on by default.
| Constructor Detail |
|---|
public Initialisation()
| Method Detail |
|---|
public void destroy()
Destruction performs the following checks and actions:
ConnectionManager was created,
and if so shuts down it and any defined ConnectionPools. AccessPermission
sub-class has been defined for this application, and if so, calls its
AccessPermission.destroy() method.
Sub-classes MUST call super.destroy() if this
method is over-ridden.
destroy in interface javax.servlet.Servletdestroy in class javax.servlet.GenericServletpublic javax.servlet.ServletContext getServletContext()
getServletContext in interface javax.servlet.ServletConfiggetServletContext in class javax.servlet.GenericServletServletContext object.public java.lang.String getServletInfo()
getServletInfo in interface javax.servlet.ServletgetServletInfo in class javax.servlet.GenericServlet
public void init()
throws javax.servlet.ServletException
Sub-classes that over-ride this init() method MUST
call super.init() to complete PAJES initialisation before
performing any application-specific processing.
init in class javax.servlet.GenericServletjavax.servlet.ServletException - if an exception occurs that interrupts the servlet's normal
operationinit(ServletContext)
public void init(javax.servlet.ServletContext context)
throws javax.servlet.ServletException
Initialisation performs the following checks and actions:
AccessPermission
sub-class has been defined for this application, and if, so instantiates
it. ConnectionManager
and any defined ConnectionPools.
Sub-classes that over-ride this init(ServletContext)
method MUST call super.init(context) to complete
PAJES initialisation before performing any application-specific
processing.
context - the Servlet Context.
javax.servlet.ServletException - if an exception occurs that interrupts the servlet's normal
operation.
PajeServletException - if the AccessPermission sub-class cannot be instantiated.
protected void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
doGet in class PajeServletrequest - the request object.response - the response object.
javax.servlet.ServletException - if an unrecoverable exception occurs.
java.io.IOException - if an I/O error occurs.protected boolean isAccessPermissionRegistered()
protected AccessPermission registerAccessPermission(java.lang.String permission)
throws java.lang.ClassNotFoundException,
java.lang.IllegalAccessException,
java.lang.InstantiationException
init() method.
permission - the name of the AccessPermission sub-class to instantiate and
register.
java.lang.ClassNotFoundException - if the AccessPermission sub-class specified cannot be
located.
java.lang.IllegalAccessException - if the AccessPermission sub-class specified is an interface
or an abstract class.
java.lang.InstantiationException - if an error occurs instantiating the AccessPermission
sub-class.protected ConnectionManager registerConnectionManager()
init() method.
|
PAJES 3.0.21 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||