public class CookieCredentials extends Object implements Credentials
| Constructor and Description |
|---|
CookieCredentials()
Creates a new instance
|
CookieCredentials(String cookie) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCookie(String name,
String value)
Adds a cookie to the credential
|
void |
prepareRequest(Request request)
Adds the credentials to the request
|
void |
removeCookie(String name)
Removes a cookie from the credential
|
String |
toString() |
public CookieCredentials()
public CookieCredentials(String cookie)
public void addCookie(String name, String value)
name - The cookie namevalue - The cookie valuepublic void removeCookie(String name)
name - The cookie namepublic void prepareRequest(Request request)
CredentialsprepareRequest in interface Credentialsrequest - The request to prepareCopyright © 2019. All rights reserved.