Class FastJsonpResponseBodyAdvice

  • All Implemented Interfaces:
    org.springframework.web.servlet.mvc.method.annotation.ResponseBodyAdvice<Object>

    @Deprecated
    @Order(-2147483648)
    @ControllerAdvice
    public class FastJsonpResponseBodyAdvice
    extends Object
    implements org.springframework.web.servlet.mvc.method.annotation.ResponseBodyAdvice<Object>
    Deprecated.
    A convenient base class for ResponseBodyAdvice implementations that customize the response before JSON serialization with FastJsonpHttpMessageConverter4's concrete subclasses.

    Compatible Spring MVC version 4.2+

    Since:
    1.2.20
    Author:
    Jerry.Chen
    See Also:
    JSONPResponseBodyAdvice
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      Object beforeBodyWrite​(Object body, org.springframework.core.MethodParameter returnType, org.springframework.http.MediaType selectedContentType, Class<? extends org.springframework.http.converter.HttpMessageConverter<?>> selectedConverterType, org.springframework.http.server.ServerHttpRequest request, org.springframework.http.server.ServerHttpResponse response)
      Deprecated.
       
      void beforeBodyWriteInternal​(MappingFastJsonValue bodyContainer, org.springframework.http.MediaType contentType, org.springframework.core.MethodParameter returnType, org.springframework.http.server.ServerHttpRequest request, org.springframework.http.server.ServerHttpResponse response)
      Deprecated.
      Invoked only if the converter type is FastJsonpHttpMessageConverter4.
      boolean supports​(org.springframework.core.MethodParameter returnType, Class<? extends org.springframework.http.converter.HttpMessageConverter<?>> converterType)
      Deprecated.
       
    • Field Detail

      • DEFAULT_JSONP_QUERY_PARAM_NAMES

        public static final String[] DEFAULT_JSONP_QUERY_PARAM_NAMES
        Deprecated.
        Default JSONP query param names: callback/jsonp
    • Constructor Detail

      • FastJsonpResponseBodyAdvice

        public FastJsonpResponseBodyAdvice()
        Deprecated.
      • FastJsonpResponseBodyAdvice

        public FastJsonpResponseBodyAdvice​(String... queryParamNames)
        Deprecated.
    • Method Detail

      • supports

        public boolean supports​(org.springframework.core.MethodParameter returnType,
                                Class<? extends org.springframework.http.converter.HttpMessageConverter<?>> converterType)
        Deprecated.
        Specified by:
        supports in interface org.springframework.web.servlet.mvc.method.annotation.ResponseBodyAdvice<Object>
      • beforeBodyWrite

        public Object beforeBodyWrite​(Object body,
                                      org.springframework.core.MethodParameter returnType,
                                      org.springframework.http.MediaType selectedContentType,
                                      Class<? extends org.springframework.http.converter.HttpMessageConverter<?>> selectedConverterType,
                                      org.springframework.http.server.ServerHttpRequest request,
                                      org.springframework.http.server.ServerHttpResponse response)
        Deprecated.
        Specified by:
        beforeBodyWrite in interface org.springframework.web.servlet.mvc.method.annotation.ResponseBodyAdvice<Object>
      • beforeBodyWriteInternal

        public void beforeBodyWriteInternal​(MappingFastJsonValue bodyContainer,
                                            org.springframework.http.MediaType contentType,
                                            org.springframework.core.MethodParameter returnType,
                                            org.springframework.http.server.ServerHttpRequest request,
                                            org.springframework.http.server.ServerHttpResponse response)
        Deprecated.
        Invoked only if the converter type is FastJsonpHttpMessageConverter4.