net.i2p.router.web
public class LocaleWebAppHandler extends WebApplicationHandler
_chainCache, _contextAttributeListeners, _namedChainCache, _requestAttributeListeners, _requestListeners, _sessionListeners, jsr154Filter, jsr154FilterHolder
__DEFAULT_SERVLET, __J_S_CONTEXT_TEMPDIR, __J_S_ERROR_EXCEPTION, __J_S_ERROR_EXCEPTION_TYPE, __J_S_ERROR_MESSAGE, __J_S_ERROR_REQUEST_URI, __J_S_ERROR_SERVLET_NAME, __J_S_ERROR_STATUS_CODE, _attributes, _contextLog, _formErrorPage, _formLoginPage, _httpContext, _loader, _nameMap, _servletMap, _sessionManager
Constructor and Description |
---|
LocaleWebAppHandler(I2PAppContext ctx) |
Modifier and Type | Method and Description |
---|---|
void |
handle(String pathInContext,
String pathParams,
HttpRequest httpRequest,
HttpResponse httpResponse)
Handle foo.jsp by converting to foo_xx.jsp
for language xx, where xx is the language for the default locale,
or as specified in the routerconsole.lang property.
|
void |
handleOptions(HttpRequest request,
HttpResponse response)
Not an override
|
void |
handleTrace(HttpRequest request,
HttpResponse response)
Overrides method in ServletHandler
|
addComponent, addEventListener, addFilterHolder, addFilterPathMapping, addFilterServletMapping, defineFilter, destroy, dispatch, doStart, doStop, getErrorPage, getFilter, getFilters, getJsr154Filter, initializeServlets, isAcceptRanges, isFilterChainsCached, main, newFilterHolder, removeComponent, removeContextAttribute, removeEventListener, setAcceptRanges, setContextAttribute, setFilterChainsCached, setSessionManager
addServlet, addServlet, addServlet, addServletHolder, finalize, formAuthInit, getClassLoader, getContextAttribute, getContextAttributeNames, getHolderEntry, getHttpContext, getHttpSession, getName, getNamedDispatcher, getRealPath, getRequestDispatcher, getResource, getResourceAsStream, getResourcePaths, getServletContext, getServletHolder, getServletMap, getServlets, getSessionManager, handleOptions, handleTrace, initialize, isAutoInitializeServlets, isUsingCookies, mapPathToServlet, newHttpSession, newServletHolder, newServletHolder, notFound, setAutoInitializeServlets, setDynamicInitParams, setDynamicServletPathSpec, setName, setServeDynamicSystemServlets, setSessionInactiveInterval, setUsingCookies
getComponents, isFailed, isStarted, isStarting, isStopping, start, stop
public LocaleWebAppHandler(I2PAppContext ctx)
public void handle(String pathInContext, String pathParams, HttpRequest httpRequest, HttpResponse httpResponse) throws IOException
handle
in interface HttpHandler
handle
in class ServletHandler
IOException
public void handleTrace(HttpRequest request, HttpResponse response) throws IOException
handleTrace
in class ServletHandler
IOException
public void handleOptions(HttpRequest request, HttpResponse response) throws IOException
IOException