public interface HttpRequestTokenHandler
Handler that receives the HttpRequest
tokens.
Other values are directly available from the HttpRequest
.
Modifier and Type | Method and Description |
---|---|
void |
handleFragment(String fragment)
Handles the fragment token of the
HttpRequest . |
void |
handleHttpParameter(String name,
String value)
Handles a
HttpRequest parameter. |
void |
handlePath(String path)
Handles the path token of the
HttpRequest . |
void |
handleQueryString(String queryString)
Handles the query string (raw parameter text on the request URI).
|
void handlePath(String path) throws HttpRequestTokeniseException
HttpRequest
.path
- Path.HttpRequestTokeniseException
- If fails to handle the HttpRequest
path.void handleHttpParameter(String name, String value) throws HttpRequestTokeniseException
Handles a HttpRequest
parameter.
Parameters are also sourced from the body on a POST
HttpRequest
.
name
- Name of the parameter.value
- Value for the parameter.HttpRequestTokeniseException
- If fails to handle the HttpRequest
parameter.void handleQueryString(String queryString) throws HttpRequestTokeniseException
queryString
- Raw query string.HttpRequestTokeniseException
- if fails to handle the query string.void handleFragment(String fragment) throws HttpRequestTokeniseException
HttpRequest
.fragment
- Fragment.HttpRequestTokeniseException
- If fails to handle the HttpRequest
fragment.Copyright © 2005–2016. All rights reserved.