public class DefaultParamInjector extends Object implements ParamInjector
HttpRequest,FormFiles,HttpFile,FormParams,
HttpCookie,QueryParams,HiggsSession,ResourcePath| Constructor and Description |
|---|
DefaultParamInjector() |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
extractCookieParam(MethodParam param,
HttpRequest request) |
protected Object |
extractFormParam(MethodParam param,
HttpRequest request) |
protected Object |
extractHeaderParam(MethodParam param,
HttpRequest request) |
protected Object |
extractNumberParam(MethodParam param,
String value)
Given the parameters try to convert the string value to a numeric value of the
method class given in the MethodParam.
|
protected Object |
extractPathParam(MethodParam param,
ResourcePath path) |
protected Object |
extractQueryParam(MethodParam param,
HttpRequest request) |
Object[] |
injectParams(HttpMethod method,
HttpRequest request,
HttpResponse res,
io.netty.channel.ChannelHandlerContext ctx,
Object[] args) |
public Object[] injectParams(HttpMethod method, HttpRequest request, HttpResponse res, io.netty.channel.ChannelHandlerContext ctx, Object[] args)
injectParams in interface ParamInjectorprotected Object extractCookieParam(MethodParam param, HttpRequest request)
protected Object extractHeaderParam(MethodParam param, HttpRequest request)
protected Object extractFormParam(MethodParam param, HttpRequest request)
protected Object extractQueryParam(MethodParam param, HttpRequest request)
protected Object extractPathParam(MethodParam param, ResourcePath path)
protected Object extractNumberParam(MethodParam param, String value)
param - the parameter to be injectedvalue - the value to be convertedCopyright © 2012-2015. All Rights Reserved.