Package de.xima.fc.servlet.filter
Class ConnectionFilter
- java.lang.Object
-
- de.xima.fc.servlet.filter.ConnectionFilter
-
- All Implemented Interfaces:
javax.servlet.Filter
public class ConnectionFilter extends Object implements javax.servlet.Filter
Filter for all pages that require access to the database. Creates an entity context when the request starts, and closes it once it ends.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
-
Constructor Summary
Constructors Constructor Description ConnectionFilter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
destroy()
void
doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain)
void
init(javax.servlet.FilterConfig filterConfig)
static boolean
isActive(javax.servlet.http.HttpServletRequest req)
static boolean
isSuspended()
static void
resume()
static void
suspent()
-
-
-
Method Detail
-
init
public void init(javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException
- Specified by:
init
in interfacejavax.servlet.Filter
- Throws:
javax.servlet.ServletException
- See Also:
Filter.init(FilterConfig)
-
destroy
public void destroy()
- Specified by:
destroy
in interfacejavax.servlet.Filter
- See Also:
Filter.destroy()
-
doFilter
public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException
- Specified by:
doFilter
in interfacejavax.servlet.Filter
- Throws:
IOException
javax.servlet.ServletException
- See Also:
Filter.doFilter(ServletRequest, ServletResponse, FilterChain)
-
isActive
public static boolean isActive(javax.servlet.http.HttpServletRequest req)
-
suspent
public static void suspent()
-
resume
public static void resume()
-
isSuspended
public static boolean isSuspended()
-
-