public class HttpChannelOverHttp extends HttpChannel implements HttpParser.RequestHandler, HttpParser.ComplianceHandler
HttpChannel.Listener, HttpChannel.TransientListenersNOOP_LISTENER| Constructor and Description |
|---|
HttpChannelOverHttp(HttpConnection httpConnection,
Connector connector,
HttpConfiguration config,
EndPoint endPoint,
HttpTransport transport) |
| Modifier and Type | Method and Description |
|---|---|
void |
abort(Throwable failure)
If a write or similar operation to this channel fails,
then this method should be called.
|
void |
badMessage(BadMessageException failure)
Called to signal that a bad HTTP message has been received.
|
boolean |
content(ByteBuffer content) |
boolean |
contentComplete() |
void |
continue100(int available)
If the associated response has the Expect header set to 100 Continue,
then accessing the input stream indicates that the handler/servlet
is ready for the request body and thus a 100 Continue response is sent.
|
void |
earlyEOF()
Called to signal that an EOF was received unexpectedly
during the parsing of an HTTP message
|
int |
getHeaderCacheSize() |
boolean |
headerComplete() |
boolean |
isExpecting100Continue() |
boolean |
isExpecting102Processing() |
boolean |
messageComplete() |
void |
onAsyncWaitForContent() |
void |
onBlockWaitForContent() |
void |
onBlockWaitForContentFailure(Throwable failure) |
void |
onComplianceViolation(HttpCompliance compliance,
HttpComplianceSection violation,
String reason) |
void |
parsedHeader(HttpField field)
This is the method called by parser when an HTTP Header name and value is found
|
void |
parsedTrailer(HttpField field)
This is the method called by parser when an HTTP Trailer name and value is found
|
void |
recycle() |
boolean |
startRequest(String method,
String uri,
HttpVersion version)
This is the method called by parser when the HTTP request line is parsed
|
addListener, addRequestLog, getByteBufferPool, getBytesWritten, getCommittedMetaData, getConnection, getConnector, getEndPoint, getHttpConfiguration, getHttpTransport, getIdleTimeout, getLocalAddress, getNextInterceptor, getRemoteAddress, getRequest, getRequestLog, getRequests, getResponse, getScheduler, getServer, getState, getTransientListeners, handle, isCommitted, isOptimizedForDirectBuffers, isPersistent, isRequestCompleted, isResponseCompleted, isSendError, onBadMessage, onCompleted, onContent, onContentComplete, onEarlyEOF, onRequest, onRequestComplete, onTrailers, removeListener, resetBuffer, run, sendResponse, sendResponse, sendResponseAndComplete, setIdleTimeout, setRequestLog, toString, useDirectBuffers, writeequals, getClass, hashCode, notify, notifyAll, wait, wait, waitonComplianceViolationbadMessagepublic HttpChannelOverHttp(HttpConnection httpConnection, Connector connector, HttpConfiguration config, EndPoint endPoint, HttpTransport transport)
public void recycle()
recycle in class HttpChannelpublic boolean isExpecting100Continue()
isExpecting100Continue in class HttpChannelpublic boolean isExpecting102Processing()
isExpecting102Processing in class HttpChannelpublic boolean startRequest(String method, String uri, HttpVersion version)
HttpParser.RequestHandlerstartRequest in interface HttpParser.RequestHandlermethod - The methoduri - The raw bytes of the URI. These are copied into a ByteBuffer that will not be changed until this parser is reset and reused.version - the http version in usepublic void parsedHeader(HttpField field)
HttpParser.HttpHandlerparsedHeader in interface HttpParser.HttpHandlerfield - The field parsedpublic void parsedTrailer(HttpField field)
HttpParser.HttpHandlerparsedTrailer in interface HttpParser.HttpHandlerfield - The field parsedpublic void continue100(int available)
throws IOException
continue100 in class HttpChannelavailable - estimate of the number of bytes that are availableIOException - if the InputStream cannot be createdpublic void earlyEOF()
HttpParser.HttpHandlerearlyEOF in interface HttpParser.HttpHandlerpublic boolean content(ByteBuffer content)
content in interface HttpParser.HttpHandlerpublic void onAsyncWaitForContent()
onAsyncWaitForContent in class HttpChannelpublic void onBlockWaitForContent()
onBlockWaitForContent in class HttpChannelpublic void onBlockWaitForContentFailure(Throwable failure)
onBlockWaitForContentFailure in class HttpChannelpublic void badMessage(BadMessageException failure)
HttpParser.HttpHandlerbadMessage in interface HttpParser.HttpHandlerfailure - the failure with the bad message informationpublic boolean headerComplete()
headerComplete in interface HttpParser.HttpHandlerpublic void abort(Throwable failure)
HttpChannel
The standard implementation calls HttpTransport.abort(Throwable).
abort in class HttpChannelfailure - the failure that caused the abort.public boolean contentComplete()
contentComplete in interface HttpParser.HttpHandlerpublic boolean messageComplete()
messageComplete in interface HttpParser.HttpHandlerpublic int getHeaderCacheSize()
getHeaderCacheSize in interface HttpParser.HttpHandlerpublic void onComplianceViolation(HttpCompliance compliance, HttpComplianceSection violation, String reason)
onComplianceViolation in interface HttpParser.ComplianceHandlerCopyright © 2010 - 2020 Adobe. All Rights Reserved