public abstract class AbstractHttpHandler extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Exchange |
exchange |
protected Request |
srcReq |
| Constructor and Description |
|---|
AbstractHttpHandler(Transport transport) |
| Modifier and Type | Method and Description |
|---|---|
String |
getContextPath(Exchange exc) |
abstract InetAddress |
getLocalAddress() |
abstract int |
getLocalPort() |
abstract String |
getRemoteAddress() |
abstract InputStream |
getSrcIn() |
abstract OutputStream |
getSrcOut() |
Transport |
getTransport() |
protected void |
invokeHandlers() |
boolean |
isMatchLocalPort() |
abstract void |
shutdownInput()
Only use for HTTP/1.0 requests.
|
public AbstractHttpHandler(Transport transport)
public Transport getTransport()
public abstract void shutdownInput()
throws IOException
HttpClient)IOExceptionpublic abstract InetAddress getLocalAddress()
public abstract int getLocalPort()
public abstract OutputStream getSrcOut()
public abstract InputStream getSrcIn()
public abstract String getRemoteAddress()
protected void invokeHandlers()
throws IOException,
EndOfStreamException,
AbortException,
NoMoreRequestsException,
EOFWhileReadingFirstLineException
public boolean isMatchLocalPort()
getLocalPort() of the handler has to match
the rule's local port for the rule to apply.Copyright © 2019. All Rights Reserved.