Class HttpReceiverOverHTTP
java.lang.Object
org.eclipse.jetty.client.HttpReceiver
org.eclipse.jetty.client.http.HttpReceiverOverHTTP
- All Implemented Interfaces:
HttpParser.HttpHandler, HttpParser.ResponseHandler
-
Field Summary
Fields inherited from class HttpReceiver
LOG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbadMessage(BadMessageException failure) Called to signal that a bad HTTP message has been received.booleancontent(ByteBuffer buffer) booleanvoidearlyEOF()Called to signal that an EOF was received unexpectedly during the parsing of an HTTP messageprotected voidintprotected ByteBufferbooleanprotected booleanbooleanprotected ByteBuffervoidparsedHeader(HttpField field) This is the method called by parser when an HTTP Header name and value is foundvoidparsedTrailer(HttpField trailer) This is the method called by parser when an HTTP Trailer name and value is foundvoidreceive()protected voidreset()Resets the state of this HttpReceiver.booleanstartResponse(HttpVersion version, int status, String reason) This is the method called by parser when the HTTP request line is parsedtoString()Methods inherited from class HttpReceiver
abort, demand, dispose, getHttpDestination, getHttpExchange, hasDemandOrStall, isFailed, responseBegin, responseContent, responseFailure, responseHeader, responseHeaders, responseSuccess, storeCookieMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface HttpParser.HttpHandler
badMessage
-
Constructor Details
-
HttpReceiverOverHTTP
-
-
Method Details
-
getHttpChannel
- Overrides:
getHttpChannelin classHttpReceiver
-
getResponseBuffer
-
receive
public void receive()- Overrides:
receivein classHttpReceiver
-
onUpgradeFrom
-
fillInterested
protected void fillInterested() -
isShutdown
protected boolean isShutdown() -
getHeaderCacheSize
public int getHeaderCacheSize()- Specified by:
getHeaderCacheSizein interfaceHttpParser.HttpHandler- Returns:
- the size in bytes of the per parser header cache
-
startResponse
Description copied from interface:HttpParser.ResponseHandlerThis is the method called by parser when the HTTP request line is parsed- Specified by:
startResponsein interfaceHttpParser.ResponseHandler- Parameters:
version- the http version in usestatus- the response statusreason- the response reason phrase- Returns:
- true if handling parsing should return
-
parsedHeader
Description copied from interface:HttpParser.HttpHandlerThis is the method called by parser when an HTTP Header name and value is found- Specified by:
parsedHeaderin interfaceHttpParser.HttpHandler- Parameters:
field- The field parsed
-
headerComplete
public boolean headerComplete()- Specified by:
headerCompletein interfaceHttpParser.HttpHandler
-
content
- Specified by:
contentin interfaceHttpParser.HttpHandler
-
contentComplete
public boolean contentComplete()- Specified by:
contentCompletein interfaceHttpParser.HttpHandler
-
parsedTrailer
Description copied from interface:HttpParser.HttpHandlerThis is the method called by parser when an HTTP Trailer name and value is found- Specified by:
parsedTrailerin interfaceHttpParser.HttpHandler- Parameters:
trailer- The field parsed
-
messageComplete
public boolean messageComplete()- Specified by:
messageCompletein interfaceHttpParser.HttpHandler
-
earlyEOF
public void earlyEOF()Description copied from interface:HttpParser.HttpHandlerCalled to signal that an EOF was received unexpectedly during the parsing of an HTTP message- Specified by:
earlyEOFin interfaceHttpParser.HttpHandler
-
badMessage
Description copied from interface:HttpParser.HttpHandlerCalled to signal that a bad HTTP message has been received.- Specified by:
badMessagein interfaceHttpParser.HttpHandler- Parameters:
failure- the failure with the bad message information
-
reset
protected void reset()Description copied from class:HttpReceiverResets the state of this HttpReceiver.Subclasses should override (but remember to call
super) to reset their own state.Either this method or
HttpReceiver.dispose()is called.- Overrides:
resetin classHttpReceiver
-
toString
- Overrides:
toStringin classHttpReceiver
-