Package org.eclipse.rdf4j.workbench.util
Class CookieHandler
java.lang.Object
org.eclipse.rdf4j.workbench.util.CookieHandler
Handles cookies for TransformationServlet.
- Author:
- Dale Visser
-
Constructor Summary
ConstructorDescriptionCookieHandler
(javax.servlet.ServletConfig config, TransformationServlet servlet) -
Method Summary
Modifier and TypeMethodDescriptionvoid
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)
-
Constructor Details
-
CookieHandler
-
-
Method Details
-
updateCookies
public void updateCookies(WorkbenchRequest req, javax.servlet.http.HttpServletResponse resp) throws UnsupportedEncodingException - Throws:
UnsupportedEncodingException
-
addTotalResultCountCookie
public void addTotalResultCountCookie(WorkbenchRequest req, javax.servlet.http.HttpServletResponse resp, int value) Add a 'total_result_count' cookie. Used by both QueryServlet and ExploreServlet.- Parameters:
req
- the request objectresp
- the response object
-
addCookie
public void addCookie(WorkbenchRequest req, javax.servlet.http.HttpServletResponse resp, String name, String value)
-