Class CookieHandler
java.lang.Object
org.eclipse.rdf4j.workbench.proxy.CookieHandler
Handles cookies for proxy servlets.
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
CookieHandler
(String maxAge) protected
CookieHandler
(javax.servlet.ServletConfig config) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addNewCookie
(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, String name, String value) protected String
getCookie
(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, String name) protected String
getCookieNullIfEmpty
(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, String name)
-
Field Details
-
COOKIE_AGE_PARAM
- See Also:
-
-
Constructor Details
-
CookieHandler
-
CookieHandler
protected CookieHandler(javax.servlet.ServletConfig config)
-
-
Method Details
-
getCookieNullIfEmpty
-
getCookie
-
addNewCookie
protected void addNewCookie(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, String name, String value) - Parameters:
req
- servlet requestresp
- servlet responsename
- cookie namevalue
- cookie value
-
getMaxAge
- Returns:
- the maximum age allowed for cookies
-