Package com.alibaba.cloud.seata.rest
Class SeataRestTemplateInterceptor
java.lang.Object
com.alibaba.cloud.seata.rest.SeataRestTemplateInterceptor
- All Implemented Interfaces:
org.springframework.http.client.ClientHttpRequestInterceptor
public class SeataRestTemplateInterceptor
extends Object
implements org.springframework.http.client.ClientHttpRequestInterceptor
- Author:
- xiaojing
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.client.ClientHttpResponse
intercept
(org.springframework.http.HttpRequest httpRequest, byte[] bytes, org.springframework.http.client.ClientHttpRequestExecution clientHttpRequestExecution)
-
Constructor Details
-
SeataRestTemplateInterceptor
public SeataRestTemplateInterceptor()
-
-
Method Details
-
intercept
public org.springframework.http.client.ClientHttpResponse intercept(org.springframework.http.HttpRequest httpRequest, byte[] bytes, org.springframework.http.client.ClientHttpRequestExecution clientHttpRequestExecution) throws IOException - Specified by:
intercept
in interfaceorg.springframework.http.client.ClientHttpRequestInterceptor
- Throws:
IOException
-