public class HostCheckHandler extends AbstractHandler
Unlike in the console, this is an AbstractHandler, not a HandlerWrapper.
AbstractLifeCycle.AbstractLifeCycleListenerLifeCycle.ListenerContainer.InheritedListener, Container.ListenerFAILED, RUNNING, STARTED, STARTING, STOP_ON_FAILURE, STOPPED, STOPPING| Constructor and Description |
|---|
HostCheckHandler()Creates a new HostCheckHandler using the global I2P application context. |
HostCheckHandler(I2PAppContext ctx)Creates a new HostCheckHandler with the specified application context. |
| Modifier and Type | Method and Description |
|---|---|
void | handle(String pathInContext,
Request baseRequest,
HttpServletRequest httpRequest,
HttpServletResponse httpResponse)Block by Host header, redirect HTTP to HTTPS, pass everything else to the delegate. |
void | setListenHosts(Set<String> hosts)Unused, we can't get here from RunStandalone |
destroy, doStart, doStop, dumpThis, getServer, setServeraddBean, 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, updateBeansaddLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stoppublic HostCheckHandler()
public HostCheckHandler(I2PAppContext ctx)
ctx - the I2P application contextpublic void handle(String pathInContext, Request baseRequest, HttpServletRequest httpRequest, HttpServletResponse httpResponse) throws IOException, ServletException
IOExceptionServletException