public class HostCheckHandler
extends org.eclipse.jetty.server.handler.HandlerWrapper
org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListener| コンストラクタ | 説明 |
|---|---|
HostCheckHandler(I2PAppContext ctx) |
MUST call setListenHosts() afterwards.
|
| 修飾子とタイプ | メソッド | 説明 |
|---|---|---|
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, pass everything else to the delegate.
|
void |
setListenHosts(java.util.Set<java.lang.String> hosts) |
Set the legal hosts.
|
doStart, doStop, dumpThis, getServerexpandHandler, findContainerOf, getChildHandlerByClass, getChildHandlers, getChildHandlersByClassaddLifeCycleListener, 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, updateBeansdestroy, expandChildren, getHandler, getHandlers, setHandler, setServerpublic 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
handle クラス内 org.eclipse.jetty.server.handler.HandlerWrapperjava.io.IOExceptionjavax.servlet.ServletException