public class CookieHandler extends Object
Constructor and Description |
---|
CookieHandler(javax.servlet.ServletConfig config,
TransformationServlet servlet) |
Modifier and Type | Method and Description |
---|---|
void |
addCookie(WorkbenchRequest req,
javax.servlet.http.HttpServletResponse resp,
String name,
String value) |
void |
addTotalResultCountCookie(WorkbenchRequest req,
javax.servlet.http.HttpServletResponse resp,
int value)
Add a 'total_result_count' cookie.
|
void |
updateCookies(WorkbenchRequest req,
javax.servlet.http.HttpServletResponse resp) |
public CookieHandler(javax.servlet.ServletConfig config, TransformationServlet servlet)
public void updateCookies(WorkbenchRequest req, javax.servlet.http.HttpServletResponse resp) throws UnsupportedEncodingException
UnsupportedEncodingException
public void addTotalResultCountCookie(WorkbenchRequest req, javax.servlet.http.HttpServletResponse resp, int value)
req
- the request objectresp
- the response objectpublic void addCookie(WorkbenchRequest req, javax.servlet.http.HttpServletResponse resp, String name, String value)
Copyright © 2015-2020 Eclipse Foundation. All Rights Reserved.