Package org.eclipse.jetty.http
Interface HttpParser.HttpHandler
- All Known Subinterfaces:
HttpParser.RequestHandler
,HttpParser.ResponseHandler
- All Known Implementing Classes:
HttpConnection.RequestHandler
,HttpReceiverOverHTTP
,HttpTester.Message
,HttpTester.Request
,HttpTester.Response
- Enclosing class:
- HttpParser
public static interface HttpParser.HttpHandler
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
badMessage
(HttpException failure) Called to signal that a bad HTTP message has been received.boolean
content
(ByteBuffer item) boolean
void
earlyEOF()
Called to signal that an EOF was received unexpectedly during the parsing of an HTTP messageboolean
default void
boolean
default void
Called to indicate that aComplianceViolation
has occurred.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 Details
-
messageBegin
default void messageBegin() -
content
-
headerComplete
boolean headerComplete() -
contentComplete
boolean contentComplete() -
messageComplete
boolean messageComplete() -
parsedHeader
This is the method called by parser when an HTTP Header name and value is found- Parameters:
field
- The field parsed
-
parsedTrailer
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 -
onViolation
Called to indicate that aComplianceViolation
has occurred.- Parameters:
event
- the Compliance Violation event
-
badMessage
Called to signal that a bad HTTP message has been received.- Parameters:
failure
- the failure with the bad message information
-