@Deprecated @Order(value=-2147483648) @ControllerAdvice public class FastJsonpResponseBodyAdvice extends Object implements org.springframework.web.servlet.mvc.method.annotation.ResponseBodyAdvice<Object>
ResponseBodyAdvice
implementations
that customize the response before JSON serialization with FastJsonpHttpMessageConverter4
's concrete
subclasses.
Compatible Spring MVC version 4.2+
JSONPResponseBodyAdvice
Modifier and Type | Field and Description |
---|---|
static String[] |
DEFAULT_JSONP_QUERY_PARAM_NAMES
Deprecated.
Default JSONP query param names: callback/jsonp
|
Constructor and Description |
---|
FastJsonpResponseBodyAdvice()
Deprecated.
|
FastJsonpResponseBodyAdvice(String... queryParamNames)
Deprecated.
|
Modifier and Type | Method and 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.
|
public static final String[] DEFAULT_JSONP_QUERY_PARAM_NAMES
public FastJsonpResponseBodyAdvice()
public FastJsonpResponseBodyAdvice(String... queryParamNames)
public boolean supports(org.springframework.core.MethodParameter returnType, Class<? extends org.springframework.http.converter.HttpMessageConverter<?>> converterType)
supports
in interface org.springframework.web.servlet.mvc.method.annotation.ResponseBodyAdvice<Object>
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)
beforeBodyWrite
in interface org.springframework.web.servlet.mvc.method.annotation.ResponseBodyAdvice<Object>
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)
FastJsonpHttpMessageConverter4
.Copyright © 2012–2022 Alibaba Group. All rights reserved.