public class HostCheckHandler
extends GzipHandler
コンストラクタ | 説明 |
---|---|
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,
redirect HTTP to HTTPS,
pass everything else to the delegate.
|
void |
setListenHosts(java.util.Set<java.lang.String> hosts) |
Set the legal hosts.
|
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.IOException
javax.servlet.ServletException