Class AbstractHttpHandler
java.lang.Object
com.predic8.membrane.core.transport.http.AbstractHttpHandler
- Direct Known Subclasses:
FakeHttpHandler,Http2ServerHandler,HttpResendHandler,HttpServerHandler
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ResponsegenerateErrorResponse(Exception e, Exchange exchange, Transport transport) getContextPath(Exchange exc) abstract InetAddressabstract intprotected voidbooleanabstract voidOnly use for HTTP/1.0 requests.
-
Field Details
-
exchange
-
srcReq
-
-
Constructor Details
-
AbstractHttpHandler
-
-
Method Details
-
getTransport
-
shutdownInput
Only use for HTTP/1.0 requests. (seeHttpClient)- Throws:
IOException
-
getLocalAddress
-
getLocalPort
public abstract int getLocalPort() -
invokeHandlers
protected void invokeHandlers() throws IOException, EndOfStreamException, AbortException, NoMoreRequestsException, EOFWhileReadingFirstLineException -
generateErrorResponse
-
isMatchLocalPort
public boolean isMatchLocalPort()- Returns:
- whether the
getLocalPort()of the handler has to match the rule's local port for the rule to apply.
-
getContextPath
- Returns:
- the context path of our web application, when running as a servlet with removeContextRoot="true" (which is the default, when running as a servlet). returns an empty string otherwise (e.g. if not running as a servlet or when removeContextRoot="false")
-