@ThreadSafe public final class WebResponseX extends Object
Note: WebResponse#enableCaching is documented to enable caching in 1.5.4, but it does not. You must also override WebPage.setHeaders or it clobbers the headers by calling disableCaching(). See bug 4357.
Modifier and Type | Method and Description |
---|---|
static void |
addCookie(WebResponse response,
Cookie cookie)
Adds a cookie to the response, working around a known bug in WebResponse subclass
BufferedWebResponse.
|
static void |
clearCookie(WebResponse response,
Cookie cookie)
Clears a cookie in the response, working around a known bug in WebResponse
subclass BufferedWebResponse.
|
public static void addCookie(WebResponse response, Cookie cookie)
public static void clearCookie(WebResponse response, Cookie cookie)
cookie
- the cookie to clear, or null to clear nothing.BufferedWebResponse.clearCookie(Cookie)