Class DefaultInterceptorContext<Request,Response>
- java.lang.Object
-
- cn.sliew.milky.common.interceptor.DefaultInterceptorContext<Request,Response>
-
- All Implemented Interfaces:
InterceptorContext<Request,Response>,Serializable
public class DefaultInterceptorContext<Request,Response> extends Object implements InterceptorContext<Request,Response>
Interceptor will be registered by linked node chain and interception will be applied orderly.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DefaultInterceptorContext(Interceptor<Request,Response> interceptor, InterceptorContext<Request,Response> next)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Responseproceed(Request request)Proceeds to the next interceptor in the chain.
-
-
-
Constructor Detail
-
DefaultInterceptorContext
public DefaultInterceptorContext(Interceptor<Request,Response> interceptor, InterceptorContext<Request,Response> next)
-
-
Method Detail
-
proceed
public Response proceed(Request request)
Description copied from interface:InterceptorContextProceeds to the next interceptor in the chain.- Specified by:
proceedin interfaceInterceptorContext<Request,Response>- Parameters:
request- the request.
-
-