public class InterceptorChain extends Object implements AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
void |
addRequestInterceptor(RequestInterceptor interceptor) |
void |
addResponseInterceptor(ResponseInterceptor interceptor) |
void |
addRuntimeOptionsInterceptor(RuntimeOptionsInterceptor interceptor) |
void |
close() |
static InterceptorChain |
create() |
InterceptorContext |
modifyRequest(InterceptorContext context,
AttributeMap attributes) |
InterceptorContext |
modifyResponse(InterceptorContext context,
AttributeMap attributes) |
InterceptorContext |
modifyRuntimeOptions(InterceptorContext context,
AttributeMap attributes) |
public static InterceptorChain create()
public void addRuntimeOptionsInterceptor(RuntimeOptionsInterceptor interceptor)
public void addRequestInterceptor(RequestInterceptor interceptor)
public void addResponseInterceptor(ResponseInterceptor interceptor)
public void close()
close in interface AutoCloseablepublic InterceptorContext modifyRuntimeOptions(InterceptorContext context, AttributeMap attributes)
public InterceptorContext modifyRequest(InterceptorContext context, AttributeMap attributes)
public InterceptorContext modifyResponse(InterceptorContext context, AttributeMap attributes)
Copyright © 2024. All rights reserved.