Package org.eclipse.rdf4j.common.webapp
Class CommonValuesHandlerInterceptor
java.lang.Object
org.eclipse.rdf4j.common.webapp.CommonValuesHandlerInterceptor
- All Implemented Interfaces:
org.springframework.web.servlet.HandlerInterceptor
public class CommonValuesHandlerInterceptor
extends Object
implements org.springframework.web.servlet.HandlerInterceptor
Interceptor that inserts some commonly used values into the model. The inserted values are: - path, equal to
request.getContextPath() (e.g. /context) - basePath, equal to the fully qualified context path (e.g.
http://www.example.com/context/) - currentYear, equal to the current year
- Author:
- Herko ter Horst
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
afterCompletion
(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Object handler, Exception ex) void
postHandle
(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Object handler, org.springframework.web.servlet.ModelAndView mav) boolean
preHandle
(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Object handler)
-
Constructor Details
-
CommonValuesHandlerInterceptor
public CommonValuesHandlerInterceptor()
-
-
Method Details
-
afterCompletion
-
postHandle
public void postHandle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Object handler, org.springframework.web.servlet.ModelAndView mav) - Specified by:
postHandle
in interfaceorg.springframework.web.servlet.HandlerInterceptor
-
preHandle
-