public class ServletRequestParamReader extends AbstractParamReader
HttpServletRequest.| Modifier and Type | Field and Description |
|---|---|
protected com.fasterxml.jackson.databind.ObjectReader |
objectReader |
protected javax.servlet.http.HttpServletRequest |
servletRequest |
| Constructor and Description |
|---|
ServletRequestParamReader(EndpointMethod method,
javax.servlet.http.HttpServletRequest servletRequest,
javax.servlet.ServletContext servletContext,
ApiSerializationConfig serializationConfig) |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Object[] |
deserializeParams(com.fasterxml.jackson.databind.JsonNode node) |
protected static java.util.List<java.lang.String> |
getParameterNames(EndpointMethod endpointMethod) |
java.lang.Object[] |
read()
Reads parameters in JSON into an Object array to be used to invoke an Endpoint method.
|
getMethodprotected final javax.servlet.http.HttpServletRequest servletRequest
protected final com.fasterxml.jackson.databind.ObjectReader objectReader
public ServletRequestParamReader(EndpointMethod method, javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.ServletContext servletContext, ApiSerializationConfig serializationConfig)
protected static java.util.List<java.lang.String> getParameterNames(EndpointMethod endpointMethod) throws java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, java.lang.NoSuchMethodException
java.lang.IllegalAccessExceptionjava.lang.reflect.InvocationTargetExceptionjava.lang.NoSuchMethodExceptionprotected java.lang.Object[] deserializeParams(com.fasterxml.jackson.databind.JsonNode node)
throws java.io.IOException,
java.lang.IllegalAccessException,
java.lang.reflect.InvocationTargetException,
java.lang.NoSuchMethodException,
ServiceException
java.io.IOExceptionjava.lang.IllegalAccessExceptionjava.lang.reflect.InvocationTargetExceptionjava.lang.NoSuchMethodExceptionServiceExceptionpublic java.lang.Object[] read()
throws ServiceException
ParamReaderServiceException - when reading of input stream failed, input JSON is invalid,
or cannot be mapped into parameter objects, or user authentication fails.