public class InterceptorChain extends Object implements SdkAutoCloseable
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addConfigurationInterceptor(ConfigurationInterceptor interceptor) |
void |
addHttpRequestInterceptor(HttpRequestInterceptor interceptor) |
void |
addOutputInterceptor(OutputInterceptor interceptor) |
void |
addRequestInterceptor(RequestInterceptor interceptor) |
void |
addResponseInterceptor(ResponseInterceptor interceptor) |
void |
close() |
static InterceptorChain |
create() |
InterceptorContext |
modifyConfiguration(InterceptorContext context,
AttributeMap attributes) |
InterceptorContext |
modifyHttpRequest(InterceptorContext context,
AttributeMap attributes) |
InterceptorContext |
modifyOutput(InterceptorContext context,
AttributeMap attributes) |
InterceptorContext |
modifyRequest(InterceptorContext context,
AttributeMap attributes) |
InterceptorContext |
modifyResponse(InterceptorContext context,
AttributeMap attributes) |
public static InterceptorChain create()
public void addConfigurationInterceptor(ConfigurationInterceptor interceptor)
public void addRequestInterceptor(RequestInterceptor interceptor)
public void addHttpRequestInterceptor(HttpRequestInterceptor interceptor)
public void addResponseInterceptor(ResponseInterceptor interceptor)
public void addOutputInterceptor(OutputInterceptor interceptor)
public void close()
close 在接口中 SdkAutoCloseableclose 在接口中 AutoCloseablepublic InterceptorContext modifyConfiguration(InterceptorContext context, AttributeMap attributes)
public InterceptorContext modifyRequest(InterceptorContext context, AttributeMap attributes)
public InterceptorContext modifyHttpRequest(InterceptorContext context, AttributeMap attributes)
public InterceptorContext modifyResponse(InterceptorContext context, AttributeMap attributes)
public InterceptorContext modifyOutput(InterceptorContext context, AttributeMap attributes)
Copyright © 2023. All rights reserved.