public class NuxeoRequestControllerFilter extends Object implements Filter
Modifier and Type | Field and Description |
---|---|
static DateFormat |
HTTP_EXPIRES_DATE_FORMAT |
Constructor and Description |
---|
NuxeoRequestControllerFilter() |
Modifier and Type | Method and Description |
---|---|
static void |
addCacheHeader(HttpServletResponse httpResponse,
Boolean isPrivate,
String cacheTime)
Set cache parameters to httpResponse.
|
void |
destroy() |
void |
doFilter(ServletRequest request,
ServletResponse response,
FilterChain chain) |
static String |
doFormatLogMessage(HttpServletRequest request,
String info) |
void |
init(FilterConfig filterConfig) |
static boolean |
simpleReleaseSyncOnSession(HttpServletRequest request)
Releases the
Lock if present in the HttpSession. |
static boolean |
simpleSyncOnSession(HttpServletRequest request)
Synchronizes the HttpSession.
|
public static final DateFormat HTTP_EXPIRES_DATE_FORMAT
public void init(FilterConfig filterConfig) throws ServletException
init
in interface Filter
ServletException
public static String doFormatLogMessage(HttpServletRequest request, String info)
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException
doFilter
in interface Filter
IOException
ServletException
public static boolean simpleSyncOnSession(HttpServletRequest request)
Uses a Lock
object in the HttpSession and locks it. If
HttpSession is not created, exits without locking anything.
public static boolean simpleReleaseSyncOnSession(HttpServletRequest request)
Lock
if present in the HttpSession.public static void addCacheHeader(HttpServletResponse httpResponse, Boolean isPrivate, String cacheTime)
Copyright © 2013 Nuxeo SA. All Rights Reserved.