public class HostCheckHandler
extends org.eclipse.jetty.server.handler.AbstractHandler
org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListener| コンストラクタ | 説明 |
|---|---|
HostCheckHandler() |
|
HostCheckHandler(I2PAppContext ctx) |
| 修飾子とタイプ | メソッド | 説明 |
|---|---|---|
void |
handle(java.lang.String pathInContext,
org.eclipse.jetty.server.Request baseRequest,
javax.servlet.http.HttpServletRequest httpRequest,
javax.servlet.http.HttpServletResponse httpResponse) |
Block by Host header,
redirect HTTP to HTTPS,
pass everything else to the delegate.
|
void |
setListenHosts(java.util.Set<java.lang.String> hosts) |
Unused, we can't get here from RunStandalone
|
destroy, doStart, doStop, dumpThis, getServer, setServeraddLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stopaddBean, 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, updateBeanspublic HostCheckHandler()
public HostCheckHandler(I2PAppContext ctx)
public void setListenHosts(java.util.Set<java.lang.String> hosts)
hosts - contains hostnames or IPs. But we allow all IPs anyway.public void handle(java.lang.String pathInContext,
org.eclipse.jetty.server.Request baseRequest,
javax.servlet.http.HttpServletRequest httpRequest,
javax.servlet.http.HttpServletResponse httpResponse)
throws java.io.IOException,
javax.servlet.ServletException
java.io.IOExceptionjavax.servlet.ServletException