public class HostCheckHandler extends AbstractHandler
AbstractHandler.ErrorDispatchHandler
AbstractLifeCycle.AbstractLifeCycleListener
LifeCycle.Listener
Container.InheritedListener, Container.Listener
Constructor and Description |
---|
HostCheckHandler() |
HostCheckHandler(I2PAppContext ctx) |
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, doError, doStart, doStop, getServer, setServer
addBean, addBean, addBean, addEventListener, addManaged, contains, dump, dump, dump, dump, dump, dumpBeans, dumpObject, dumpObjects, dumpStdErr, dumpThis, getBean, getBeans, getBeans, getContainedBeans, getContainedBeans, isAuto, isManaged, isUnmanaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, start, stop, unmanage, updateBean, updateBean, updateBeans
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, start, stop, stop
dumpObjects, dumpSelf
public HostCheckHandler()
public HostCheckHandler(I2PAppContext ctx)
public void setListenHosts(Set<String> hosts)
hosts
- contains hostnames or IPs. But we allow all IPs anyway.public void handle(String pathInContext, Request baseRequest, HttpServletRequest httpRequest, HttpServletResponse httpResponse) throws IOException, ServletException
handle
in interface Handler
handle
in class AbstractHandler
IOException
ServletException