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
Constructors Constructor Description MessageHandlerInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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)
-
-
-
Method Detail
-
afterCompletion
public void afterCompletion(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Object handler, Exception ex)
- Specified by:
afterCompletion
in interfaceorg.springframework.web.servlet.HandlerInterceptor
-
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
-
-