Package edu.uiuc.ncsa.sas.loader
Class SASServletInitializer
- java.lang.Object
-
- edu.uiuc.ncsa.sas.loader.SASServletInitializer
-
- All Implemented Interfaces:
Initialization
public class SASServletInitializer extends Object implements Initialization
Created by Jeff Gaynor
on 8/15/22 at 4:00 PM
-
-
Field Summary
Fields Modifier and Type Field Description static Identifier
testClientID
-
Constructor Summary
Constructors Constructor Description SASServletInitializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SASEnvironment
getEnvironment()
ExceptionHandler
getExceptionHandler()
AbstractServlet
getServlet()
Many initialization tasks can only be done dynamically, after the servlet has been created and itsServletContext
set.void
init()
This should handle all initialization tasks for a servlet.void
setEnvironment(AbstractEnvironment environment)
void
setServlet(AbstractServlet servlet)
protected void
setupDebug()
Sets up a client store with exactly one element and uses canned keys.
-
-
-
Field Detail
-
testClientID
public static Identifier testClientID
-
-
Method Detail
-
init
public void init() throws javax.servlet.ServletException
Description copied from interface:Initialization
This should handle all initialization tasks for a servlet. Set the environment before use.- Specified by:
init
in interfaceInitialization
- Throws:
javax.servlet.ServletException
-
setupDebug
protected void setupDebug()
Sets up a client store with exactly one element and uses canned keys. This is only for development purposes!
-
setEnvironment
public void setEnvironment(AbstractEnvironment environment)
- Specified by:
setEnvironment
in interfaceInitialization
-
getEnvironment
public SASEnvironment getEnvironment()
- Specified by:
getEnvironment
in interfaceInitialization
-
getServlet
public AbstractServlet getServlet()
Description copied from interface:Initialization
Many initialization tasks can only be done dynamically, after the servlet has been created and itsServletContext
set. There has to be a back reference to or you cannot completely control servlet startup.- Specified by:
getServlet
in interfaceInitialization
- Returns:
-
setServlet
public void setServlet(AbstractServlet servlet)
- Specified by:
setServlet
in interfaceInitialization
-
getExceptionHandler
public ExceptionHandler getExceptionHandler()
- Specified by:
getExceptionHandler
in interfaceInitialization
-
-