@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| 限定符和类型 | 字段和说明 |
|---|---|
static String[] |
DEFAULT_JSONP_QUERY_PARAM_NAMES
已过时。
Default JSONP query param names: callback/jsonp
|
| 构造器和说明 |
|---|
FastJsonpResponseBodyAdvice()
已过时。
|
FastJsonpResponseBodyAdvice(String... queryParamNames)
已过时。
|
| 限定符和类型 | 方法和说明 |
|---|---|
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)
已过时。
|
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)
已过时。
Invoked only if the converter type is
FastJsonpHttpMessageConverter4. |
boolean |
supports(org.springframework.core.MethodParameter returnType,
Class<? extends org.springframework.http.converter.HttpMessageConverter<?>> converterType)
已过时。
|
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 在接口中 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 在接口中 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–2020 Alibaba Group. All rights reserved.