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, getServer
expandHandler, findContainerOf, getChildHandlerByClass, getChildHandlers, getChildHandlersByClass
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
addBean, 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, updateBeans
destroy, expandChildren, getHandler, getHandlers, setHandler, setServer
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
handle
クラス内 org.eclipse.jetty.server.handler.HandlerWrapper
java.io.IOException
javax.servlet.ServletException