com.niggle.servlet
Class NiggleConfig
java.lang.Object
|
+--com.niggle.servlet.NiggleConfig
- All Implemented Interfaces:
- NiggleConstants, javax.servlet.ServletConfig
- public class NiggleConfig
- extends java.lang.Object
- implements javax.servlet.ServletConfig, NiggleConstants
A custom implementation of the ServletConfig interface
The default NiggleServlet initializations are delegated
to this object.
- Author:
- Jonathan Revusky
- See Also:
NiggleServlet.init(javax.servlet.ServletConfig)
Fields inherited from interface com.niggle.servlet.NiggleConstants |
ACTION_KEY, ERROR_TEMPLATE, LOGIN_TEMPLATE, LOGOUT_CONFIRM_TEMPLATE, MESSAGE_TEMPLATE, PASSWORD_KEY, SESSION_ID_KEY, SESSION_MANAGER_KEY, SESSION_STORE_FILENAME, SUPP_INFO_PARAM_KEY, USER_ID_KEY |
Constructor Summary |
NiggleConfig()
|
NiggleConfig(javax.servlet.ServletConfig nestedConfig,
javax.servlet.Servlet servlet)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NiggleConfig
public NiggleConfig()
NiggleConfig
public NiggleConfig(javax.servlet.ServletConfig nestedConfig,
javax.servlet.Servlet servlet)
throws javax.servlet.ServletException
getInitParameterNames
public java.util.Enumeration getInitParameterNames()
- Specified by:
getInitParameterNames
in interface javax.servlet.ServletConfig
getInitParameter
public java.lang.String getInitParameter(java.lang.String name)
- Specified by:
getInitParameter
in interface javax.servlet.ServletConfig
getServletContext
public javax.servlet.ServletContext getServletContext()
- Specified by:
getServletContext
in interface javax.servlet.ServletConfig
setInitParameter
public void setInitParameter(java.lang.String key,
java.lang.String value)
getServletName
public java.lang.String getServletName()
loadMetadata
protected void loadMetadata()
throws javax.servlet.ServletException
initPageFactory
protected void initPageFactory()
throws javax.servlet.ServletException
initLogFile
protected void initLogFile()
throws javax.servlet.ServletException
initBaseClasses
protected void initBaseClasses()
throws javax.servlet.ServletException
getPageFactory
public PageFactory getPageFactory()
getSessionManager
public SessionManager getSessionManager()
throws java.io.IOException
newServletInteraction
public ServletInteraction newServletInteraction(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException
- where the servlet gives us a transaction to process.
- Parameters:
request
- the data about the user's request.response
- the HTML response.- Returns:
- a ServletTransaction to handle the work.
dispatchAction
protected void dispatchAction(ServletInteraction si)
throws java.io.IOException
- Dispatches the request based on the action
getMethodFromAction
protected java.lang.reflect.Method getMethodFromAction(ServletInteraction si,
java.lang.String action)
throws java.lang.IllegalAccessException,
java.lang.NoSuchMethodException
getInputStream
public java.io.InputStream getInputStream(java.lang.String location)
- Gets the specified input stream, assuming that it
may be a fully specified filename, OR relative to
the classpath.