Package org.eclipse.jetty.http
Interface HttpParser.HttpHandler
-
- All Known Subinterfaces:
HttpParser.ComplianceHandler
,HttpParser.RequestHandler
,HttpParser.ResponseHandler
- All Known Implementing Classes:
HttpChannelOverHttp
,HttpReceiverOverHTTP
- Enclosing class:
- HttpParser
public static interface HttpParser.HttpHandler
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default void
badMessage(int status, java.lang.String reason)
Deprecated.usebadMessage(BadMessageException)
insteaddefault void
badMessage(BadMessageException failure)
Called to signal that a bad HTTP message has been received.boolean
content(java.nio.ByteBuffer item)
boolean
contentComplete()
void
earlyEOF()
Called to signal that an EOF was received unexpectedly during the parsing of an HTTP messageint
getHeaderCacheSize()
boolean
headerComplete()
boolean
messageComplete()
void
parsedHeader(HttpField field)
This is the method called by parser when an HTTP Header name and value is founddefault void
parsedTrailer(HttpField field)
This is the method called by parser when an HTTP Trailer name and value is found
-
-
-
Method Detail
-
content
boolean content(java.nio.ByteBuffer item)
-
headerComplete
boolean headerComplete()
-
contentComplete
boolean contentComplete()
-
messageComplete
boolean messageComplete()
-
parsedHeader
void parsedHeader(HttpField field)
This is the method called by parser when an HTTP Header name and value is found- Parameters:
field
- The field parsed
-
parsedTrailer
default void parsedTrailer(HttpField field)
This is the method called by parser when an HTTP Trailer name and value is found- Parameters:
field
- The field parsed
-
earlyEOF
void earlyEOF()
Called to signal that an EOF was received unexpectedly during the parsing of an HTTP message
-
badMessage
default void badMessage(BadMessageException failure)
Called to signal that a bad HTTP message has been received.- Parameters:
failure
- the failure with the bad message information
-
badMessage
@Deprecated default void badMessage(int status, java.lang.String reason)
Deprecated.usebadMessage(BadMessageException)
instead
-
getHeaderCacheSize
int getHeaderCacheSize()
- Returns:
- the size in bytes of the per parser header cache
-
-