public class HttpReceiverOverHTTP extends HttpReceiver implements HttpParser.ResponseHandler
| Constructor and Description |
|---|
HttpReceiverOverHTTP(HttpChannelOverHTTP channel) |
| Modifier and Type | Method and Description |
|---|---|
void |
badMessage(BadMessageException failure)
Called to signal that a bad HTTP message has been received.
|
boolean |
content(ByteBuffer buffer) |
boolean |
contentComplete() |
void |
earlyEOF()
Called to signal that an EOF was received unexpectedly
during the parsing of an HTTP message
|
int |
getHeaderCacheSize() |
HttpChannelOverHTTP |
getHttpChannel() |
boolean |
headerComplete() |
boolean |
messageComplete() |
void |
parsedHeader(HttpField field)
This is the method called by parser when an HTTP Header name and value is found
|
void |
parsedTrailer(HttpField trailer)
This is the method called by parser when an HTTP Trailer name and value is found
|
void |
receive() |
boolean |
startResponse(HttpVersion version,
int status,
String reason)
This is the method called by parser when the HTTP request line is parsed
|
String |
toString() |
abort, isFailedequals, getClass, hashCode, notify, notifyAll, wait, wait, waitbadMessagepublic HttpReceiverOverHTTP(HttpChannelOverHTTP channel)
public HttpChannelOverHTTP getHttpChannel()
public void receive()
public int getHeaderCacheSize()
getHeaderCacheSize in interface HttpParser.HttpHandlerpublic boolean startResponse(HttpVersion version, int status, String reason)
HttpParser.ResponseHandlerstartResponse in interface HttpParser.ResponseHandlerversion - the http version in usestatus - the response statusreason - the response reason phrasepublic void parsedHeader(HttpField field)
HttpParser.HttpHandlerparsedHeader in interface HttpParser.HttpHandlerfield - The field parsedpublic boolean headerComplete()
headerComplete in interface HttpParser.HttpHandlerpublic boolean content(ByteBuffer buffer)
content in interface HttpParser.HttpHandlerpublic boolean contentComplete()
contentComplete in interface HttpParser.HttpHandlerpublic void parsedTrailer(HttpField trailer)
HttpParser.HttpHandlerparsedTrailer in interface HttpParser.HttpHandlertrailer - The field parsedpublic boolean messageComplete()
messageComplete in interface HttpParser.HttpHandlerpublic void earlyEOF()
HttpParser.HttpHandlerearlyEOF in interface HttpParser.HttpHandlerpublic void badMessage(BadMessageException failure)
HttpParser.HttpHandlerbadMessage in interface HttpParser.HttpHandlerfailure - the failure with the bad message informationpublic String toString()
toString in class HttpReceiverCopyright © 2010 - 2020 Adobe. All Rights Reserved