Class HttpRequestParser
java.lang.Object
net.officefloor.server.buffer.StreamBufferScanner
net.officefloor.server.http.parse.HttpRequestParser
HttpRequest parser.- Author:
- Daniel Sagenschneider
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.officefloor.server.buffer.StreamBufferScanner
StreamBufferScanner.ScanTarget -
Constructor Summary
ConstructorsConstructorDescriptionInitiate. -
Method Summary
Modifier and TypeMethodDescriptionObtains the entityByteSequence.Obtains theNonMaterialisedHttpHeaders.Obtains theSupplierof theHttpMethod.Obtains theSupplierof the request URI.Obtains theHttpVersion.booleanparse()Parses theHttpRequest.Methods inherited from class net.officefloor.server.buffer.StreamBufferScanner
appendStreamBuffer, buildByte, buildLong, buildShort, indexOf, peekToTarget, scanBytes, scanToTarget, skipBytes
-
Constructor Details
-
HttpRequestParser
Initiate.- Parameters:
metaData-HttpRequestParser.HttpRequestParserMetaData.
-
-
Method Details
-
parse
Parses theHttpRequest.- Returns:
trueshould theHttpRequestbe parsed. Otherwise,falseif further data is required.- Throws:
HttpException- If invalidHttpRequest.
-
getMethod
Obtains theSupplierof theHttpMethod.- Returns:
Supplierof theHttpMethod.
-
getRequestURI
Obtains theSupplierof the request URI.- Returns:
Supplierof the request URI.
-
getVersion
Obtains theHttpVersion.- Returns:
HttpVersion.
-
getHeaders
Obtains theNonMaterialisedHttpHeaders.- Returns:
NonMaterialisedHttpHeaders.
-
getEntity
Obtains the entityByteSequence.- Returns:
ByteSequencefor the entity.
-