public interface Interceptor<Request,Response> extends Serializable
This is useful to provide logging, fallback, exception, transform or substitute values.
ActionFilter.order()| 限定符和类型 | 字段和说明 |
|---|---|
static Interceptor |
EMPTY |
static final Interceptor EMPTY
Response intercept(Request request, InterceptorContext<Request,Response> context)
InterceptorContext.proceed(java.lang.Object) will continue to execute the interceptor chain.
The chain can be short-circuited by returning another instance of responserequest - the request being intercepted.context - the interceptor context.Copyright © 2021. All rights reserved.