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 IdentifiertestClientID
-
Constructor Summary
Constructors Constructor Description SASServletInitializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SASEnvironmentgetEnvironment()ExceptionHandlergetExceptionHandler()AbstractServletgetServlet()Many initialization tasks can only be done dynamically, after the servlet has been created and itsServletContextset.voidinit()This should handle all initialization tasks for a servlet.voidsetEnvironment(AbstractEnvironment environment)voidsetServlet(AbstractServlet servlet)protected voidsetupDebug()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.ServletExceptionDescription copied from interface:InitializationThis should handle all initialization tasks for a servlet. Set the environment before use.- Specified by:
initin 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:
setEnvironmentin interfaceInitialization
-
getEnvironment
public SASEnvironment getEnvironment()
- Specified by:
getEnvironmentin interfaceInitialization
-
getServlet
public AbstractServlet getServlet()
Description copied from interface:InitializationMany initialization tasks can only be done dynamically, after the servlet has been created and itsServletContextset. There has to be a back reference to or you cannot completely control servlet startup.- Specified by:
getServletin interfaceInitialization- Returns:
-
setServlet
public void setServlet(AbstractServlet servlet)
- Specified by:
setServletin interfaceInitialization
-
getExceptionHandler
public ExceptionHandler getExceptionHandler()
- Specified by:
getExceptionHandlerin interfaceInitialization
-
-