Package org.eclipse.jetty.client.http
Class HttpReceiverOverHTTP
- java.lang.Object
-
- org.eclipse.jetty.client.HttpReceiver
-
- org.eclipse.jetty.client.http.HttpReceiverOverHTTP
-
- All Implemented Interfaces:
HttpParser.HttpHandler
,HttpParser.ResponseHandler
@Deprecated(since="2021-05-27") public class HttpReceiverOverHTTP extends HttpReceiver implements HttpParser.ResponseHandler
Deprecated.
-
-
Constructor Summary
Constructors Constructor Description HttpReceiverOverHTTP(HttpChannelOverHTTP channel)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
badMessage(BadMessageException failure)
Deprecated.Called to signal that a bad HTTP message has been received.boolean
content(java.nio.ByteBuffer buffer)
Deprecated.boolean
contentComplete()
Deprecated.void
earlyEOF()
Deprecated.Called to signal that an EOF was received unexpectedly during the parsing of an HTTP messageint
getHeaderCacheSize()
Deprecated.HttpChannelOverHTTP
getHttpChannel()
Deprecated.boolean
headerComplete()
Deprecated.boolean
messageComplete()
Deprecated.void
parsedHeader(HttpField field)
Deprecated.This is the method called by parser when an HTTP Header name and value is foundvoid
parsedTrailer(HttpField trailer)
Deprecated.This is the method called by parser when an HTTP Trailer name and value is foundvoid
receive()
Deprecated.boolean
startResponse(HttpVersion version, int status, java.lang.String reason)
Deprecated.This is the method called by parser when the HTTP request line is parsedjava.lang.String
toString()
Deprecated.-
Methods inherited from class org.eclipse.jetty.client.HttpReceiver
abort, isFailed
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.jetty.http.HttpParser.HttpHandler
badMessage
-
-
-
-
Constructor Detail
-
HttpReceiverOverHTTP
public HttpReceiverOverHTTP(HttpChannelOverHTTP channel)
Deprecated.
-
-
Method Detail
-
getHttpChannel
public HttpChannelOverHTTP getHttpChannel()
Deprecated.
-
receive
public void receive()
Deprecated.
-
getHeaderCacheSize
public int getHeaderCacheSize()
Deprecated.- Specified by:
getHeaderCacheSize
in interfaceHttpParser.HttpHandler
- Returns:
- the size in bytes of the per parser header cache
-
startResponse
public boolean startResponse(HttpVersion version, int status, java.lang.String reason)
Deprecated.Description copied from interface:HttpParser.ResponseHandler
This is the method called by parser when the HTTP request line is parsed- Specified by:
startResponse
in interfaceHttpParser.ResponseHandler
- Parameters:
version
- the http version in usestatus
- the response statusreason
- the response reason phrase- Returns:
- true if handling parsing should return
-
parsedHeader
public void parsedHeader(HttpField field)
Deprecated.Description copied from interface:HttpParser.HttpHandler
This is the method called by parser when an HTTP Header name and value is found- Specified by:
parsedHeader
in interfaceHttpParser.HttpHandler
- Parameters:
field
- The field parsed
-
headerComplete
public boolean headerComplete()
Deprecated.- Specified by:
headerComplete
in interfaceHttpParser.HttpHandler
-
content
public boolean content(java.nio.ByteBuffer buffer)
Deprecated.- Specified by:
content
in interfaceHttpParser.HttpHandler
-
contentComplete
public boolean contentComplete()
Deprecated.- Specified by:
contentComplete
in interfaceHttpParser.HttpHandler
-
parsedTrailer
public void parsedTrailer(HttpField trailer)
Deprecated.Description copied from interface:HttpParser.HttpHandler
This is the method called by parser when an HTTP Trailer name and value is found- Specified by:
parsedTrailer
in interfaceHttpParser.HttpHandler
- Parameters:
trailer
- The field parsed
-
messageComplete
public boolean messageComplete()
Deprecated.- Specified by:
messageComplete
in interfaceHttpParser.HttpHandler
-
earlyEOF
public void earlyEOF()
Deprecated.Description copied from interface:HttpParser.HttpHandler
Called to signal that an EOF was received unexpectedly during the parsing of an HTTP message- Specified by:
earlyEOF
in interfaceHttpParser.HttpHandler
-
badMessage
public void badMessage(BadMessageException failure)
Deprecated.Description copied from interface:HttpParser.HttpHandler
Called to signal that a bad HTTP message has been received.- Specified by:
badMessage
in interfaceHttpParser.HttpHandler
- Parameters:
failure
- the failure with the bad message information
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toString
in classHttpReceiver
-
-