public interface RestClientHeaders
| Modifier and Type | Method and Description |
|---|---|
String |
getCookie(String name)
Gets a cookie by name.
|
String |
getHeader(String name)
Gets a header by name.
|
void |
setAuthentication(org.springframework.http.HttpAuthentication auth)
Sets the authentication object.
|
void |
setBearerAuth(String token)
Sets the Authorization: Bearer header as documented in RFC6750
|
void |
setCookie(String name,
String value)
Sets a cookie by name.
|
void |
setHeader(String name,
String value)
Sets a header by name.
|
void |
setHttpBasicAuth(String user,
String password)
Sets the basic authentication user/password.
|
String getCookie(String name)
name - Name of the cookievoid setCookie(String name, String value)
name - Name of the cookievalue - Value of the cookieString getHeader(String name)
name - Name of the headervoid setHeader(String name, String value)
name - Name of the headervalue - Value of the headervoid setAuthentication(org.springframework.http.HttpAuthentication auth)
auth - Authentication datavoid setHttpBasicAuth(String user, String password)
user - Name of the userpassword - Password of the uservoid setBearerAuth(String token)
token - Token used for authenticationCopyright © 2010-2015. All Rights Reserved.