public interface RequestParser
| Modifier and Type | Method and Description |
|---|---|
default <T> Try<T> |
fromJson(javax.servlet.http.HttpServletRequest req,
Class<T> type)
Parses an object from the json stream in the HTTP request
|
default <T> Try<T> |
fromJson(javax.servlet.http.HttpServletRequest req,
String charsetName,
Class<T> type)
Parses an object from the json stream in the HTTP request
|
default Option<String> |
getPathInfo(javax.servlet.http.HttpServletRequest req)
Get the path info as specified in the URI.
|
default Option<String> getPathInfo(javax.servlet.http.HttpServletRequest req)
req - The HTTP requestdefault <T> Try<T> fromJson(javax.servlet.http.HttpServletRequest req, Class<T> type)
T - The return typereq - The HTTP requesttype - The type to parsedefault <T> Try<T> fromJson(javax.servlet.http.HttpServletRequest req, String charsetName, Class<T> type)
T - The return typereq - The HTTP requestcharsetName - The charset to expecttype - The type to parseCopyright © 2016, Peter Nerg Apache License v2.0