public class HalResponseBuilderHandlerMethodArgumentResolver extends Object implements org.springframework.web.method.support.HandlerMethodArgumentResolver
HalGetResponseEntityBuilder to
be injected as a method parameter in a
Spring MVC controller, pre-populated
with the HTTP request and other variables| Constructor and Description |
|---|
HalResponseBuilderHandlerMethodArgumentResolver(com.theoryinpractise.halbuilder.api.RepresentationFactory representationFactory)
Supply a
RepresentationFactory and
the name of the HTTP request variable
that users can use to specify the
included fields in a request |
| Modifier and Type | Method and Description |
|---|---|
Object |
resolveArgument(org.springframework.core.MethodParameter parameter,
org.springframework.web.method.support.ModelAndViewContainer container,
org.springframework.web.context.request.NativeWebRequest request,
org.springframework.web.bind.support.WebDataBinderFactory factory) |
boolean |
supportsParameter(org.springframework.core.MethodParameter parameter) |
public HalResponseBuilderHandlerMethodArgumentResolver(com.theoryinpractise.halbuilder.api.RepresentationFactory representationFactory)
RepresentationFactory and
the name of the HTTP request variable
that users can use to specify the
included fields in a requestrepresentationFactory - fieldsParam - public Object resolveArgument(org.springframework.core.MethodParameter parameter, org.springframework.web.method.support.ModelAndViewContainer container, org.springframework.web.context.request.NativeWebRequest request, org.springframework.web.bind.support.WebDataBinderFactory factory) throws Exception
resolveArgument in interface org.springframework.web.method.support.HandlerMethodArgumentResolverExceptionpublic boolean supportsParameter(org.springframework.core.MethodParameter parameter)
supportsParameter in interface org.springframework.web.method.support.HandlerMethodArgumentResolverCopyright © 2013. All Rights Reserved.