Package org.eclipse.rdf4j.common.webapp
Class MessageHandlerInterceptor
java.lang.Object
org.eclipse.rdf4j.common.webapp.MessageHandlerInterceptor
- All Implemented Interfaces:
org.springframework.web.servlet.HandlerInterceptor
public class MessageHandlerInterceptor
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
-
MessageHandlerInterceptor
public MessageHandlerInterceptor()
-
-
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
-