public class Cookie extends Object
| Constructor and Description |
|---|
Cookie() |
| Modifier and Type | Method and Description |
|---|---|
void |
add401(String cookieString)
Adds a Cookie from a response with response-code 401 to the cookie-pool
for sending it back to the browser / client
|
void |
clear401()
Clear the 401 cookie-pool
|
HashMap |
get401()
Get the HashMap containing all cookies to be sent to the browser / client
|
String |
getCookies()
Get a String containing all cookies saved in that session seperated by '; '
to be sent back to the Online-Application
|
void |
saveOldCookies(String value)
Method saveOldCookies.
|
void |
setCookie(String value)
Set a cookie that comes from the Online-Application
and save it in our "normal" cookie-pool
|
public void add401(String cookieString)
cookieString - The complete 'Set-Cookie' - Stringpublic HashMap get401()
public void clear401()
public void setCookie(String value)
value - The complete "Set-Cookie" - String from the Online-Applicationpublic void saveOldCookies(String value)
value - The complete "Set-Cookie" - String from the Online-Applicationpublic String getCookies()
Copyright © 2016. All Rights Reserved.