public class NativeCookieInterceptor extends Object implements org.springframework.web.servlet.HandlerInterceptor
| Modifier and Type | Field and Description | 
|---|---|
| static String | COOKIE_NATIVEName of the cookie to set the native flag | 
| static String | COOKIE_PHONEGAPName of the cookie to set the phonegap version | 
| static String | COOKIE_PLATFORMName of the cookie to set for the platform | 
| static String | SESSION_NATIVESession variable that will be set with the flag if the device is running native | 
| static String | SESSION_PHONEGAPSession variable that will be set with the phonegap version | 
| static String | SESSION_PLATFORMSession variable that will be set with the platform value | 
| Constructor and Description | 
|---|
| NativeCookieInterceptor() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | afterCompletion(javax.servlet.http.HttpServletRequest request,
                              javax.servlet.http.HttpServletResponse response,
                              Object handler,
                              Exception ex) | 
| Properties | getKmeProperties()Gets the reference to the KME Application properties. | 
| void | postHandle(javax.servlet.http.HttpServletRequest request,
                    javax.servlet.http.HttpServletResponse response,
                    Object handler,
                    org.springframework.web.servlet.ModelAndView modelAndView) | 
| boolean | preHandle(javax.servlet.http.HttpServletRequest request,
                  javax.servlet.http.HttpServletResponse response,
                  Object handler) | 
| void | setKmeProperties(Properties kmeProperties)Sets the reference to the KME Application properties. | 
public static final String SESSION_PLATFORM
public static final String SESSION_PHONEGAP
public static final String SESSION_NATIVE
public static final String COOKIE_PLATFORM
public static final String COOKIE_NATIVE
public static final String COOKIE_PHONEGAP
public NativeCookieInterceptor()
public boolean preHandle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Object handler) throws Exception
preHandle in interface org.springframework.web.servlet.HandlerInterceptorExceptionpublic void postHandle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Object handler, org.springframework.web.servlet.ModelAndView modelAndView) throws Exception
postHandle in interface org.springframework.web.servlet.HandlerInterceptorExceptionpublic void afterCompletion(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Object handler, Exception ex) throws Exception
afterCompletion in interface org.springframework.web.servlet.HandlerInterceptorExceptionpublic Properties getKmeProperties()
public void setKmeProperties(Properties kmeProperties)
kmeProperties - Reference to the KME Application properties.Copyright © 2011–2015 The Kuali Foundation. All rights reserved.