Class HttpConnection.RequestHandler
java.lang.Object
org.eclipse.jetty.server.internal.HttpConnection.RequestHandler
- All Implemented Interfaces:
HttpParser.HttpHandler
,HttpParser.RequestHandler
- Enclosing class:
- HttpConnection
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
badMessage
(HttpException failure) Called to signal that a bad HTTP message has been received.boolean
content
(ByteBuffer buffer) boolean
void
earlyEOF()
Called to signal that an EOF was received unexpectedly during the parsing of an HTTP messageboolean
void
boolean
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 foundvoid
parsedTrailer
(HttpField field) This is the method called by parser when an HTTP Trailer name and value is foundvoid
startRequest
(String method, String uri, HttpVersion version) This is the method called by parser when the HTTP request line is parsed
-
Constructor Details
-
RequestHandler
protected RequestHandler()
-
-
Method Details
-
messageBegin
public void messageBegin()- Specified by:
messageBegin
in interfaceHttpParser.HttpHandler
-
startRequest
Description copied from interface:HttpParser.RequestHandler
This is the method called by parser when the HTTP request line is parsed- Specified by:
startRequest
in interfaceHttpParser.RequestHandler
- Parameters:
method
- The methoduri
- The raw bytes of the URI. These are copied into a ByteBuffer that will not be changed until this parser is reset and reused.version
- the http version in use
-
parsedHeader
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()- Specified by:
headerComplete
in interfaceHttpParser.HttpHandler
-
content
- Specified by:
content
in interfaceHttpParser.HttpHandler
-
contentComplete
public boolean contentComplete()- Specified by:
contentComplete
in interfaceHttpParser.HttpHandler
-
onViolation
Description copied from interface:HttpParser.HttpHandler
Called to indicate that aComplianceViolation
has occurred.- Specified by:
onViolation
in interfaceHttpParser.HttpHandler
- Parameters:
event
- the Compliance Violation event
-
parsedTrailer
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:
field
- The field parsed
-
messageComplete
public boolean messageComplete()- Specified by:
messageComplete
in interfaceHttpParser.HttpHandler
-
badMessage
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
-
earlyEOF
public void earlyEOF()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
-