public abstract class AbstractControlledContext extends GenericContext
GenericContext.ForwardResult
ServletModule.RequestListener
Modifier and Type | Field and Description |
---|---|
protected UserAuthenticator |
authenticator |
authenticationErrorMessage, checkActions, contextPath, exceptionHandler, exceptionOnAuthentication, requestListeners, servlet, urlPrefix
autoStart, isInitialized, isRunning, logging, loggingModule, moduleManager
Constructor and Description |
---|
AbstractControlledContext() |
Modifier and Type | Method and Description |
---|---|
protected UserAuthenticator.AuthenticationResult |
authenticate(java.lang.String requiredRole,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
ModulesServlet.HttpMethod method) |
java.util.Collection<Module> |
getDependencies(ModuleManager manager)
Returns all the modules this module depends on.
|
void |
start(ModuleManager manager)
Starts the module.
|
void |
stop(ModuleManager manager)
Stops the module.
|
addRequestListener, doForwardRequest, getContextPath, getHandlingAction, getServletURL, handleRequest, init, isHandleAction, removeRequestListener
isInitialized, isRunning, requireLogging, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isInitialized, isRunning
protected UserAuthenticator authenticator
public java.util.Collection<Module> getDependencies(ModuleManager manager) throws ModuleException
Module
getDependencies
in interface Module
getDependencies
in class GenericContext
manager
- The module manager handling this module.ModuleException
public void start(ModuleManager manager) throws ModuleException
Module
start
in interface Module
start
in class GenericContext
manager
- The module manager handling this module.ModuleException
public void stop(ModuleManager manager)
Module
stop
in interface Module
stop
in class GenericContext
manager
- The module manager handling this module.protected UserAuthenticator.AuthenticationResult authenticate(java.lang.String requiredRole, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, ModulesServlet.HttpMethod method) throws java.io.IOException, AuthenticationException
java.io.IOException
AuthenticationException
Copyright 2004-2015 Wandora Team