Package net.i2p.router.web
Class LocaleWebAppHandler
- 
- All Implemented Interfaces:
- Handler,- HandlerContainer,- Container,- Destroyable,- Dumpable,- LifeCycle
 
 public class LocaleWebAppHandler extends HandlerWrapper Convert foo.jsp to foo_xx.jsp for language xx. This is appropriate for jsps with large amounts of text. Also, as of 0.8.2, rewrite "/" and "/index.html" to "/index.jsp", and "/foo" to "/foo.jsp".- Author:
- zzz
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycleAbstractLifeCycle.AbstractLifeCycleListener
 - 
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.ContainerContainer.InheritedListener, Container.Listener
 - 
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycleLifeCycle.Listener
 
- 
 - 
Field Summary- 
Fields inherited from class org.eclipse.jetty.server.handler.HandlerWrapper_handler
 - 
Fields inherited from class org.eclipse.jetty.util.component.AbstractLifeCycleFAILED, RUNNING, STARTED, STARTING, STOP_ON_FAILURE, STOPPED, STOPPING
 
- 
 - 
Constructor SummaryConstructors Constructor Description LocaleWebAppHandler(I2PAppContext ctx, String path, String warPath, File tmpdir, ServletHandler servletHandler)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandle(String pathInContext, Request baseRequest, HttpServletRequest httpRequest, HttpServletResponse 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.static voidsetInitParams(WebAppContext context, Map<?,?> params)- 
Methods inherited from class org.eclipse.jetty.server.handler.HandlerWrapperdestroy, expandChildren, getHandler, getHandlers, insertHandler, setHandler
 - 
Methods inherited from class org.eclipse.jetty.server.handler.AbstractHandlerContainerexpandHandler, findContainerOf, getChildHandlerByClass, getChildHandlers, getChildHandlersByClass, setServer
 - 
Methods inherited from class org.eclipse.jetty.server.handler.AbstractHandlerdoStart, doStop, dumpThis, getServer
 - 
Methods inherited from class org.eclipse.jetty.util.component.ContainerLifeCycleaddBean, addBean, addBean, addEventListener, addManaged, contains, dump, dump, dump, dump, dump, dumpBeans, dumpObject, dumpStdErr, getBean, getBeans, getBeans, isManaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, start, stop, unmanage, updateBean, updateBean, updateBeans
 - 
Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycleaddLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.eclipse.jetty.util.component.LifeCycleaddLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
 
- 
 
- 
- 
- 
Constructor Detail- 
LocaleWebAppHandlerpublic LocaleWebAppHandler(I2PAppContext ctx, String path, String warPath, File tmpdir, ServletHandler servletHandler) 
 
- 
 - 
Method Detail- 
handlepublic void handle(String pathInContext, Request baseRequest, HttpServletRequest httpRequest, HttpServletResponse httpResponse) throws IOException, ServletException 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. Unless language == "en".- Specified by:
- handlein interface- Handler
- Overrides:
- handlein class- HandlerWrapper
- Throws:
- IOException
- ServletException
 
 - 
setInitParamspublic static void setInitParams(WebAppContext context, Map<?,?> params) - Since:
- Jetty 7
 
 
- 
 
-