Class HttpConnection.RequestHandler
java.lang.Object
org.eclipse.jetty.server.internal.HttpConnection.RequestHandler
- All Implemented Interfaces:
- HttpParser.HttpHandler,- HttpParser.RequestHandler
- Enclosing class:
- HttpConnection
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidbadMessage(HttpException 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 messagebooleanvoidbooleanvoidCalled to indicate that aComplianceViolationhas occurred.voidparsedHeader(HttpField field) This is the method called by parser when an HTTP Header name and value is foundvoidparsedTrailer(HttpField field) This is the method called by parser when an HTTP Trailer name and value is foundvoidstartRequest(String method, String uri, HttpVersion version) This is the method called by parser when the HTTP request line is parsed
- 
Constructor Details- 
RequestHandlerprotected RequestHandler()
 
- 
- 
Method Details- 
messageBeginpublic void messageBegin()- Specified by:
- messageBeginin interface- HttpParser.HttpHandler
 
- 
startRequestDescription copied from interface:HttpParser.RequestHandlerThis is the method called by parser when the HTTP request line is parsed- Specified by:
- startRequestin interface- HttpParser.RequestHandler
- Parameters:
- method- The method
- uri- 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
 
- 
parsedHeaderDescription copied from interface:HttpParser.HttpHandlerThis is the method called by parser when an HTTP Header name and value is found- Specified by:
- parsedHeaderin interface- HttpParser.HttpHandler
- Parameters:
- field- The field parsed
 
- 
headerCompletepublic boolean headerComplete()- Specified by:
- headerCompletein interface- HttpParser.HttpHandler
 
- 
content- Specified by:
- contentin interface- HttpParser.HttpHandler
 
- 
contentCompletepublic boolean contentComplete()- Specified by:
- contentCompletein interface- HttpParser.HttpHandler
 
- 
onViolationDescription copied from interface:HttpParser.HttpHandlerCalled to indicate that aComplianceViolationhas occurred.- Specified by:
- onViolationin interface- HttpParser.HttpHandler
- Parameters:
- event- the Compliance Violation event
 
- 
parsedTrailerDescription copied from interface:HttpParser.HttpHandlerThis is the method called by parser when an HTTP Trailer name and value is found- Specified by:
- parsedTrailerin interface- HttpParser.HttpHandler
- Parameters:
- field- The field parsed
 
- 
messageCompletepublic boolean messageComplete()- Specified by:
- messageCompletein interface- HttpParser.HttpHandler
 
- 
badMessageDescription copied from interface:HttpParser.HttpHandlerCalled to signal that a bad HTTP message has been received.- Specified by:
- badMessagein interface- HttpParser.HttpHandler
- Parameters:
- failure- the failure with the bad message information
 
- 
earlyEOFpublic 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 interface- HttpParser.HttpHandler
 
 
-