Class CookieHandler

java.lang.Object
org.eclipse.rdf4j.workbench.util.CookieHandler

public class CookieHandler extends Object
Handles cookies for TransformationServlet.
Author:
Dale Visser
  • Constructor Details

    • CookieHandler

      public CookieHandler(javax.servlet.ServletConfig config, TransformationServlet servlet)
  • 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 object
      resp - the response object
    • addCookie

      public void addCookie(WorkbenchRequest req, javax.servlet.http.HttpServletResponse resp, String name, String value)