public interface RestClientHeaders
Rest,
RequiresCookie,
RequiresHeader,
RequiresAuthentication| 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 cookieRequiresCookievoid setCookie(String name, String value)
name - Name of the cookievalue - Value of the cookieRequiresCookieString getHeader(String name)
name - Name of the headerRequiresHeadervoid setHeader(String name, String value)
name - Name of the headervalue - Value of the headerRequiresHeadervoid setAuthentication(org.springframework.http.HttpAuthentication auth)
auth - Authentication dataRequiresAuthenticationvoid setHttpBasicAuth(String user, String password)
user - Name of the userpassword - Password of the userRequiresAuthenticationvoid setBearerAuth(String token)
token - Token used for authenticationRequiresAuthenticationCopyright © 2010–2020 simpligility technologies inc.. All rights reserved.