public interface ApplicationCookieService
| Modifier and Type | Method and Description |
|---|---|
void |
addCookie(URI resourceUri,
javax.servlet.http.HttpServletResponse response,
ApplicationCookieName applicationCookieName,
String value)
Generate cookie with specified value
|
void |
addSessionCookie(URI resourceUri,
javax.servlet.http.HttpServletResponse response,
ApplicationCookieName applicationCookieName,
String value)
Generate cookie with session-based expiration and specified value
|
Optional<String> |
getCookieValue(javax.servlet.http.HttpServletRequest request,
ApplicationCookieName applicationCookieName)
Get cookie value using specified name
|
void |
removeCookie(URI resourceUri,
javax.servlet.http.HttpServletResponse response,
ApplicationCookieName applicationCookieName)
Generate cookie with an empty value instructing the client to remove the cookie
|
void addCookie(URI resourceUri, javax.servlet.http.HttpServletResponse response, ApplicationCookieName applicationCookieName, String value)
resourceUri - Resource URI containing path and domainresponse - HTTP Servlet ResponseapplicationCookieName - Application Cookie Name to be addedvalue - Cookie value to be addedvoid addSessionCookie(URI resourceUri, javax.servlet.http.HttpServletResponse response, ApplicationCookieName applicationCookieName, String value)
resourceUri - Resource URI containing path and domainresponse - HTTP Servlet ResponseapplicationCookieName - Application Cookie Namevalue - Cookie value to be addedOptional<String> getCookieValue(javax.servlet.http.HttpServletRequest request, ApplicationCookieName applicationCookieName)
request - HTTP Servlet ResponseapplicationCookieName - Application Cookie Name to be retrievedvoid removeCookie(URI resourceUri, javax.servlet.http.HttpServletResponse response, ApplicationCookieName applicationCookieName)
resourceUri - Resource URI containing path and domainresponse - HTTP Servlet ResponseapplicationCookieName - Application Cookie Name to be removedCopyright © 2023 Apache NiFi Project. All rights reserved.