Package net.officefloor.web.tokenise
Class HttpRequestTokeniser
java.lang.Object
net.officefloor.web.tokenise.HttpRequestTokeniser
Tokenises the
HttpRequest for the path, parameters, fragment.- Author:
- Daniel Sagenschneider
-
Method Summary
Modifier and TypeMethodDescriptionstatic Stringdecode(CharSequence value) Enables decoding the input value.static voidtokeniseFormEntity(HttpRequest request, ValueLoader valueLoader) Tokenises theapplication/x-www-form-urlencodedentity.static voidtokeniseHttpRequest(HttpRequest request, HttpArgumentParser[] argumentParsers, ValueLoader valueLoader) Tokenises theHttpRequestfor the arguments to theValueLoader.
-
Method Details
-
tokeniseHttpRequest
public static void tokeniseHttpRequest(HttpRequest request, HttpArgumentParser[] argumentParsers, ValueLoader valueLoader) throws HttpException Tokenises theHttpRequestfor the arguments to theValueLoader.- Parameters:
request-HttpRequestto be tokenised.valueLoader-ValueLoader.argumentParsers-HttpArgumentParserinstances.- Throws:
HttpException- If fails to tokenise theHttpRequest.
-
tokeniseFormEntity
public static void tokeniseFormEntity(HttpRequest request, ValueLoader valueLoader) throws HttpException Tokenises theapplication/x-www-form-urlencodedentity.- Parameters:
request-HttpRequest.valueLoader-ValueLoader.- Throws:
HttpException- If fails to tokenise the form content.
-
decode
Enables decoding the input value.- Parameters:
value- Value to be decoded.- Returns:
- Decoded value.
-