Class CookieHandler

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

public class CookieHandler extends Object
Handles cookies for proxy servlets.
  • Field Details

  • Constructor Details

    • CookieHandler

      protected CookieHandler(String maxAge)
    • CookieHandler

      protected CookieHandler(javax.servlet.ServletConfig config)
  • Method Details

    • getCookieNullIfEmpty

      protected String getCookieNullIfEmpty(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, String name)
    • getCookie

      protected String getCookie(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, String name)
    • addNewCookie

      protected void addNewCookie(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, String name, String value)
      Parameters:
      req - servlet request
      resp - servlet response
      name - cookie name
      value - cookie value
    • getMaxAge

      public String getMaxAge()
      Returns:
      the maximum age allowed for cookies