public class HttpRequestTokenAdapter extends Object implements HttpRequestTokenHandler
HttpRequestTokenHandler
so that need not implement
every method.Constructor and Description |
---|
HttpRequestTokenAdapter() |
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).
|
public void handlePath(String path) throws HttpRequestTokeniseException
HttpRequestTokenHandler
HttpRequest
.handlePath
in interface HttpRequestTokenHandler
path
- Path.HttpRequestTokeniseException
- If fails to handle the HttpRequest
path.public void handleHttpParameter(String name, String value) throws HttpRequestTokeniseException
HttpRequestTokenHandler
Handles a HttpRequest
parameter.
Parameters are also sourced from the body on a POST
HttpRequest
.
handleHttpParameter
in interface HttpRequestTokenHandler
name
- Name of the parameter.value
- Value for the parameter.HttpRequestTokeniseException
- If fails to handle the HttpRequest
parameter.public void handleQueryString(String queryString) throws HttpRequestTokeniseException
HttpRequestTokenHandler
handleQueryString
in interface HttpRequestTokenHandler
queryString
- Raw query string.HttpRequestTokeniseException
- if fails to handle the query string.public void handleFragment(String fragment) throws HttpRequestTokeniseException
HttpRequestTokenHandler
HttpRequest
.handleFragment
in interface HttpRequestTokenHandler
fragment
- Fragment.HttpRequestTokeniseException
- If fails to handle the HttpRequest
fragment.Copyright © 2005–2016. All rights reserved.