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, isFailed
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
badMessage
public HttpReceiverOverHTTP(HttpChannelOverHTTP channel)
public HttpChannelOverHTTP getHttpChannel()
public void receive()
public int getHeaderCacheSize()
getHeaderCacheSize
in interface HttpParser.HttpHandler
public boolean startResponse(HttpVersion version, int status, String reason)
HttpParser.ResponseHandler
startResponse
in interface HttpParser.ResponseHandler
version
- the http version in usestatus
- the response statusreason
- the response reason phrasepublic void parsedHeader(HttpField field)
HttpParser.HttpHandler
parsedHeader
in interface HttpParser.HttpHandler
field
- The field parsedpublic boolean headerComplete()
headerComplete
in interface HttpParser.HttpHandler
public boolean content(ByteBuffer buffer)
content
in interface HttpParser.HttpHandler
public boolean contentComplete()
contentComplete
in interface HttpParser.HttpHandler
public void parsedTrailer(HttpField trailer)
HttpParser.HttpHandler
parsedTrailer
in interface HttpParser.HttpHandler
trailer
- The field parsedpublic boolean messageComplete()
messageComplete
in interface HttpParser.HttpHandler
public void earlyEOF()
HttpParser.HttpHandler
earlyEOF
in interface HttpParser.HttpHandler
public void badMessage(BadMessageException failure)
HttpParser.HttpHandler
badMessage
in interface HttpParser.HttpHandler
failure
- the failure with the bad message informationpublic String toString()
toString
in class HttpReceiver
Copyright © 2010 - 2020 Adobe. All Rights Reserved