com.giants.web.springmvc.advice.JsonpResultResponseAdvice Maven / Gradle / Ivy
The newest version!
/**
*
*/
package com.giants.web.springmvc.advice;
import javax.servlet.http.HttpServletRequest;
import org.apache.commons.lang.ArrayUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.core.MethodParameter;
import org.springframework.http.MediaType;
import org.springframework.http.converter.HttpMessageConverter;
import org.springframework.http.server.ServerHttpRequest;
import org.springframework.http.server.ServerHttpResponse;
import org.springframework.http.server.ServletServerHttpRequest;
import org.springframework.web.servlet.mvc.method.annotation.ResponseBodyAdvice;
import com.giants.common.regex.Pattern;
import com.giants.web.springmvc.json.FastJsonHttpMessageConverter;
import com.giants.web.springmvc.json.JsonpResult;
/**
* @author vencent.lu
* 支持jsonp格式返回数据(配置spring mvc config)
* 不推荐使用这个类 jsonp 相关功能已经合并到 @JsonResultResponseAdvice
*/
@Deprecated
public class JsonpResultResponseAdvice implements ResponseBodyAdvice