类 CorsHandlerInterceptor
java.lang.Object
cn.taketoday.core.OrderedSupport
cn.taketoday.web.handler.CorsHandlerInterceptor
- 所有已实现的接口:
cn.taketoday.core.Ordered,HandlerInterceptor
public class CorsHandlerInterceptor
extends cn.taketoday.core.OrderedSupport
implements HandlerInterceptor
- 作者:
- TODAY 2020/12/10 22:49
-
字段概要
字段从类继承的字段 cn.taketoday.core.OrderedSupport
order从接口继承的字段 cn.taketoday.web.HandlerInterceptor
EMPTY_ARRAY, NONE_RETURN_VALUE从接口继承的字段 cn.taketoday.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
构造器概要
构造器构造器说明CorsHandlerInterceptor(CorsConfiguration configSource) CorsHandlerInterceptor(CorsConfigurationSource configSource) -
方法概要
修饰符和类型方法说明booleanbeforeProcess(RequestContext request, Object handler) Before Handler process.protected DefaultCorsProcessorprotected CorsConfigurationgetCorsConfiguration(RequestContext context, Object handler) final CorsProcessorvoidsetConfigSource(CorsConfiguration configSource) Configure a customCorsConfigurationvoidsetConfigSource(CorsConfigurationSource configSource) Configure a customCorsConfigurationSourcevoidsetCorsProcessor(CorsProcessor processor) Configure a customCorsProcessorto use to apply the matchedCorsConfigurationfor a request.从类继承的方法 cn.taketoday.core.OrderedSupport
getOrder, setOrder从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 cn.taketoday.web.HandlerInterceptor
afterProcess, intercept
-
字段详细资料
-
processor
-
configSource
-
-
构造器详细资料
-
CorsHandlerInterceptor
public CorsHandlerInterceptor() -
CorsHandlerInterceptor
-
CorsHandlerInterceptor
-
-
方法详细资料
-
beforeProcess
从接口复制的说明:HandlerInterceptorBefore Handler process.- 指定者:
beforeProcess在接口中HandlerInterceptor- 参数:
request- Current request Contexthandler- Request handler ,HandlerMethod- 返回:
- If is it possible to execute the target handler
- 抛出:
IOException- 另请参阅:
-
getCorsConfiguration
-
getProcessor
-
createProcessor
-
setCorsProcessor
Configure a customCorsProcessorto use to apply the matchedCorsConfigurationfor a request.By default
DefaultCorsProcessoris used. -
getConfigSource
-
setConfigSource
Configure a customCorsConfigurationSource -
setConfigSource
Configure a customCorsConfiguration
-