Search in sources :

Example 1 with ServletModelAttributeMethodProcessor

use of org.springframework.web.servlet.mvc.method.annotation.ServletModelAttributeMethodProcessor in project crnk-framework by crnk-project.

the class SpringParameterProvider method getArgumentResolvers.

private List<HandlerMethodArgumentResolver> getArgumentResolvers(List<HttpMessageConverter<?>> messageConverters) {
    List<HandlerMethodArgumentResolver> resolvers = new LinkedList<>();
    resolvers.add(new RequestParamMethodArgumentResolver(beanFactory, false));
    resolvers.add(new RequestParamMapMethodArgumentResolver());
    resolvers.add(new MatrixVariableMethodArgumentResolver());
    resolvers.add(new MatrixVariableMapMethodArgumentResolver());
    resolvers.add(new ServletModelAttributeMethodProcessor(false));
    resolvers.add(new RequestResponseBodyMethodProcessor(messageConverters));
    resolvers.add(new RequestPartMethodArgumentResolver(messageConverters));
    resolvers.add(new RequestHeaderMethodArgumentResolver(beanFactory));
    resolvers.add(new RequestHeaderMapMethodArgumentResolver());
    resolvers.add(new ServletCookieValueMethodArgumentResolver(beanFactory));
    resolvers.add(new ExpressionValueMethodArgumentResolver(beanFactory));
    resolvers.add(new ServletRequestMethodArgumentResolver());
    resolvers.add(new ServletResponseMethodArgumentResolver());
    resolvers.add(new HttpEntityMethodProcessor(messageConverters));
    resolvers.add(new RedirectAttributesMethodArgumentResolver());
    resolvers.add(new ModelMethodProcessor());
    resolvers.add(new MapMethodProcessor());
    resolvers.add(new ErrorsMethodArgumentResolver());
    resolvers.add(new SessionStatusMethodArgumentResolver());
    resolvers.add(new UriComponentsBuilderMethodArgumentResolver());
    resolvers.add(new RequestParamMethodArgumentResolver(beanFactory, true));
    resolvers.add(new ServletModelAttributeMethodProcessor(true));
    return resolvers;
}
Also used : RequestParamMethodArgumentResolver(org.springframework.web.method.annotation.RequestParamMethodArgumentResolver) ServletCookieValueMethodArgumentResolver(org.springframework.web.servlet.mvc.method.annotation.ServletCookieValueMethodArgumentResolver) ExpressionValueMethodArgumentResolver(org.springframework.web.method.annotation.ExpressionValueMethodArgumentResolver) MatrixVariableMapMethodArgumentResolver(org.springframework.web.servlet.mvc.method.annotation.MatrixVariableMapMethodArgumentResolver) ModelMethodProcessor(org.springframework.web.method.annotation.ModelMethodProcessor) ErrorsMethodArgumentResolver(org.springframework.web.method.annotation.ErrorsMethodArgumentResolver) ServletModelAttributeMethodProcessor(org.springframework.web.servlet.mvc.method.annotation.ServletModelAttributeMethodProcessor) RedirectAttributesMethodArgumentResolver(org.springframework.web.servlet.mvc.method.annotation.RedirectAttributesMethodArgumentResolver) UriComponentsBuilderMethodArgumentResolver(org.springframework.web.servlet.mvc.method.annotation.UriComponentsBuilderMethodArgumentResolver) HandlerMethodArgumentResolver(org.springframework.web.method.support.HandlerMethodArgumentResolver) ServletResponseMethodArgumentResolver(org.springframework.web.servlet.mvc.method.annotation.ServletResponseMethodArgumentResolver) LinkedList(java.util.LinkedList) RequestParamMapMethodArgumentResolver(org.springframework.web.method.annotation.RequestParamMapMethodArgumentResolver) RequestHeaderMethodArgumentResolver(org.springframework.web.method.annotation.RequestHeaderMethodArgumentResolver) HttpEntityMethodProcessor(org.springframework.web.servlet.mvc.method.annotation.HttpEntityMethodProcessor) MatrixVariableMethodArgumentResolver(org.springframework.web.servlet.mvc.method.annotation.MatrixVariableMethodArgumentResolver) MapMethodProcessor(org.springframework.web.method.annotation.MapMethodProcessor) RequestHeaderMapMethodArgumentResolver(org.springframework.web.method.annotation.RequestHeaderMapMethodArgumentResolver) ServletRequestMethodArgumentResolver(org.springframework.web.servlet.mvc.method.annotation.ServletRequestMethodArgumentResolver) SessionStatusMethodArgumentResolver(org.springframework.web.method.annotation.SessionStatusMethodArgumentResolver) RequestPartMethodArgumentResolver(org.springframework.web.servlet.mvc.method.annotation.RequestPartMethodArgumentResolver) RequestResponseBodyMethodProcessor(org.springframework.web.servlet.mvc.method.annotation.RequestResponseBodyMethodProcessor)

Aggregations

LinkedList (java.util.LinkedList)1 ErrorsMethodArgumentResolver (org.springframework.web.method.annotation.ErrorsMethodArgumentResolver)1 ExpressionValueMethodArgumentResolver (org.springframework.web.method.annotation.ExpressionValueMethodArgumentResolver)1 MapMethodProcessor (org.springframework.web.method.annotation.MapMethodProcessor)1 ModelMethodProcessor (org.springframework.web.method.annotation.ModelMethodProcessor)1 RequestHeaderMapMethodArgumentResolver (org.springframework.web.method.annotation.RequestHeaderMapMethodArgumentResolver)1 RequestHeaderMethodArgumentResolver (org.springframework.web.method.annotation.RequestHeaderMethodArgumentResolver)1 RequestParamMapMethodArgumentResolver (org.springframework.web.method.annotation.RequestParamMapMethodArgumentResolver)1 RequestParamMethodArgumentResolver (org.springframework.web.method.annotation.RequestParamMethodArgumentResolver)1 SessionStatusMethodArgumentResolver (org.springframework.web.method.annotation.SessionStatusMethodArgumentResolver)1 HandlerMethodArgumentResolver (org.springframework.web.method.support.HandlerMethodArgumentResolver)1 HttpEntityMethodProcessor (org.springframework.web.servlet.mvc.method.annotation.HttpEntityMethodProcessor)1 MatrixVariableMapMethodArgumentResolver (org.springframework.web.servlet.mvc.method.annotation.MatrixVariableMapMethodArgumentResolver)1 MatrixVariableMethodArgumentResolver (org.springframework.web.servlet.mvc.method.annotation.MatrixVariableMethodArgumentResolver)1 RedirectAttributesMethodArgumentResolver (org.springframework.web.servlet.mvc.method.annotation.RedirectAttributesMethodArgumentResolver)1 RequestPartMethodArgumentResolver (org.springframework.web.servlet.mvc.method.annotation.RequestPartMethodArgumentResolver)1 RequestResponseBodyMethodProcessor (org.springframework.web.servlet.mvc.method.annotation.RequestResponseBodyMethodProcessor)1 ServletCookieValueMethodArgumentResolver (org.springframework.web.servlet.mvc.method.annotation.ServletCookieValueMethodArgumentResolver)1 ServletModelAttributeMethodProcessor (org.springframework.web.servlet.mvc.method.annotation.ServletModelAttributeMethodProcessor)1 ServletRequestMethodArgumentResolver (org.springframework.web.servlet.mvc.method.annotation.ServletRequestMethodArgumentResolver)1