public class TaskIdSupplierHttpRequestInterceptor
extends java.lang.Object
implements org.springframework.http.client.ClientHttpRequestInterceptor
Constructor and Description |
---|
TaskIdSupplierHttpRequestInterceptor()
Default constructor with 'X-Hawaii-Task-Id' as
headername . |
TaskIdSupplierHttpRequestInterceptor(java.lang.String headerName)
Constructor that sets the header name.
|
Modifier and Type | Method and Description |
---|---|
org.springframework.http.client.ClientHttpResponse |
intercept(org.springframework.http.HttpRequest request,
byte[] body,
org.springframework.http.client.ClientHttpRequestExecution execution) |
public TaskIdSupplierHttpRequestInterceptor()
headername
.public TaskIdSupplierHttpRequestInterceptor(java.lang.String headerName)
headerName
- The header name to use.public org.springframework.http.client.ClientHttpResponse intercept(org.springframework.http.HttpRequest request, byte[] body, org.springframework.http.client.ClientHttpRequestExecution execution) throws java.io.IOException
intercept
in interface org.springframework.http.client.ClientHttpRequestInterceptor
java.io.IOException