@Configuration
@ConditionalOnProperty(value="r-tools.rest-template.print-curl.enable",
havingValue="true",
matchIfMissing=true)
@ConfigurationProperties(prefix="r-tools.rest-template.print-curl")
@Order
public class PrintCurlClientHttpRequestInterceptor
extends Object
implements org.springframework.http.client.ClientHttpRequestInterceptor, org.springframework.beans.factory.InitializingBean
r-tools.rest-template.print-curl.enable=false | 限定符和类型 | 类和说明 |
|---|---|
static class |
PrintCurlClientHttpRequestInterceptor.CBody |
static class |
PrintCurlClientHttpRequestInterceptor.CHead |
static class |
PrintCurlClientHttpRequestInterceptor.CMethod |
static interface |
PrintCurlClientHttpRequestInterceptor.CObj |
static class |
PrintCurlClientHttpRequestInterceptor.CUrl |
static class |
PrintCurlClientHttpRequestInterceptor.PrintCurlInterceptorBuilder |
| 构造器和说明 |
|---|
PrintCurlClientHttpRequestInterceptor() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
afterPropertiesSet() |
static PrintCurlClientHttpRequestInterceptor.PrintCurlInterceptorBuilder |
builder() |
org.springframework.http.client.ClientHttpResponse |
intercept(org.springframework.http.HttpRequest request,
byte[] body,
org.springframework.http.client.ClientHttpRequestExecution execution) |
String |
toCurl(org.springframework.http.HttpRequest request,
byte[] body) |
public void afterPropertiesSet()
afterPropertiesSet 在接口中 org.springframework.beans.factory.InitializingBeanpublic static PrintCurlClientHttpRequestInterceptor.PrintCurlInterceptorBuilder builder()
public org.springframework.http.client.ClientHttpResponse intercept(org.springframework.http.HttpRequest request,
byte[] body,
org.springframework.http.client.ClientHttpRequestExecution execution)
throws IOException
intercept 在接口中 org.springframework.http.client.ClientHttpRequestInterceptorIOExceptionpublic String toCurl(org.springframework.http.HttpRequest request, byte[] body)
Copyright © 2022. All rights reserved.