public class BasicClientHttpRequestInterceptor extends Object implements org.springframework.http.client.ClientHttpRequestInterceptor
| Constructor and Description |
|---|
BasicClientHttpRequestInterceptor(org.apache.http.auth.Credentials credentials)
Constructor
|
BasicClientHttpRequestInterceptor(String username,
String password)
Convenience constructor from an user name and a password
|
| 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 BasicClientHttpRequestInterceptor(org.apache.http.auth.Credentials credentials)
credentials - the set of credentials, consisting of a security principal and a secret (password)public org.springframework.http.client.ClientHttpResponse intercept(org.springframework.http.HttpRequest request,
byte[] body,
org.springframework.http.client.ClientHttpRequestExecution execution)
throws IOException
intercept in interface org.springframework.http.client.ClientHttpRequestInterceptorIOExceptionCopyright © 2017–2020 NTT DATA Corporation. All rights reserved.