Class SecurityCookieFilter
java.lang.Object
javax.servlet.GenericFilter
javax.servlet.http.HttpFilter
org.deltava.servlet.filter.SecurityCookieFilter
- All Implemented Interfaces:
Serializable,Filter,FilterConfig
A servlet filter to handle persistent authentication cookies.
- Since:
- 1.0
- Version:
- 11.3
- Author:
- Luke
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()voiddoFilter(HttpServletRequest req, HttpServletResponse rsp, FilterChain fc) Called by the servlet container on each request.voidinit(FilterConfig cfg) Methods inherited from class javax.servlet.http.HttpFilter
doFilterMethods inherited from class javax.servlet.GenericFilter
getFilterConfig, getFilterName, getInitParameter, getInitParameterNames, getServletContext, init
-
Constructor Details
-
SecurityCookieFilter
public SecurityCookieFilter()
-
-
Method Details
-
init
- Specified by:
initin interfaceFilter- Overrides:
initin classGenericFilter- Throws:
ServletException
-
doFilter
public void doFilter(HttpServletRequest req, HttpServletResponse rsp, FilterChain fc) throws IOException, ServletException Called by the servlet container on each request. Repopulates the session if a cookie is found.- Overrides:
doFilterin classHttpFilter- Parameters:
req- the requestrsp- the responsefc- the Filter Chain- Throws:
IOException- if an I/O error occursServletException- if a general error occurs
-
destroy
public void destroy()
-