public class NuxeoRequestControllerFilter extends Object implements javax.servlet.Filter
Modifier and Type | Field and Description |
---|---|
static DateFormat |
HTTP_EXPIRES_DATE_FORMAT |
protected static int |
LOCK_TIMOUT_S |
protected static RequestControllerManager |
rcm |
protected static String |
SESSION_LOCK_KEY |
protected static String |
SYNCED_REQUEST_FLAG |
Constructor and Description |
---|
NuxeoRequestControllerFilter() |
Modifier and Type | Method and Description |
---|---|
static void |
addCacheHeader(javax.servlet.http.HttpServletResponse httpResponse,
Boolean isPrivate,
String cacheTime)
Set cache parameters to httpResponse.
|
void |
destroy() |
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain) |
static String |
doFormatLogMessage(javax.servlet.http.HttpServletRequest request,
String info) |
void |
init(javax.servlet.FilterConfig filterConfig) |
static boolean |
simpleReleaseSyncOnSession(javax.servlet.http.HttpServletRequest request)
Releases the
Lock if present in the HttpSession. |
static boolean |
simpleSyncOnSession(javax.servlet.http.HttpServletRequest request)
Synchronizes the HttpSession.
|
protected static final String SESSION_LOCK_KEY
protected static final String SYNCED_REQUEST_FLAG
protected static final int LOCK_TIMOUT_S
public static final DateFormat HTTP_EXPIRES_DATE_FORMAT
protected static RequestControllerManager rcm
public NuxeoRequestControllerFilter()
public void init(javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException
init
in interface javax.servlet.Filter
javax.servlet.ServletException
public static String doFormatLogMessage(javax.servlet.http.HttpServletRequest request, String info)
public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException
doFilter
in interface javax.servlet.Filter
IOException
javax.servlet.ServletException
public static boolean simpleSyncOnSession(javax.servlet.http.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(javax.servlet.http.HttpServletRequest request)
Lock
if present in the HttpSession.public static void addCacheHeader(javax.servlet.http.HttpServletResponse httpResponse, Boolean isPrivate, String cacheTime)
public void destroy()
destroy
in interface javax.servlet.Filter
Copyright © 2017 Nuxeo. All rights reserved.