Package net.officefloor.web.tokenise
Class HttpRequestTokeniser
- java.lang.Object
-
- net.officefloor.web.tokenise.HttpRequestTokeniser
-
public class HttpRequestTokeniser extends java.lang.Object
Tokenises theHttpRequest
for the path, parameters, fragment.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
tokeniseFormEntity(HttpRequest request, ValueLoader valueLoader)
Tokenises theapplication/x-www-form-urlencoded
entity.static void
tokeniseHttpRequest(HttpRequest request, HttpArgumentParser[] argumentParsers, ValueLoader valueLoader)
Tokenises theHttpRequest
for the arguments to theValueLoader
.
-
-
-
Method Detail
-
tokeniseHttpRequest
public static void tokeniseHttpRequest(HttpRequest request, HttpArgumentParser[] argumentParsers, ValueLoader valueLoader) throws HttpException
Tokenises theHttpRequest
for the arguments to theValueLoader
.- Parameters:
request
-HttpRequest
to be tokenised.valueLoader
-ValueLoader
.argumentParsers
-HttpArgumentParser
instances.- Throws:
HttpException
- If fails to tokenise theHttpRequest
.
-
tokeniseFormEntity
public static void tokeniseFormEntity(HttpRequest request, ValueLoader valueLoader) throws HttpException
Tokenises theapplication/x-www-form-urlencoded
entity.- Parameters:
request
-HttpRequest
.valueLoader
-ValueLoader
.- Throws:
HttpException
- If fails to tokenise the form content.
-
-