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
Constructors -
Method Summary
Modifier 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
-
RequestHandler
protected RequestHandler()
-
-
Method Details
-
messageBegin
public void messageBegin()- Specified by:
messageBeginin interfaceHttpParser.HttpHandler
-
startRequest
Description copied from interface:HttpParser.RequestHandlerThis is the method called by parser when the HTTP request line is parsed- Specified by:
startRequestin 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.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
-
onViolation
Description copied from interface:HttpParser.HttpHandlerCalled to indicate that aComplianceViolationhas occurred.- Specified by:
onViolationin interfaceHttpParser.HttpHandler- Parameters:
event- the Compliance Violation event
-
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:
field- The field parsed
-
messageComplete
public boolean messageComplete()- Specified by:
messageCompletein 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
-
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
-