1 package cn.home1.oss.lib.errorhandle.api; 2 3 import org.springframework.http.MediaType; 4 5 import javax.servlet.http.HttpServletRequest; 6 7 /** 8 * Created by zhanghaolun on 16/8/15. 9 */ 10 public interface StackTraceIndicator { 11 12 /** 13 * is trace enabled. 14 * 15 * @param request request nullable 16 * @param produces produces nullable 17 * @return stackTrace 18 */ 19 Boolean stackTrace(HttpServletRequest request, MediaType produces); 20 }