Class EmptyViewInterceptor

    • Method Detail

      • onRequest

        public void onRequest​(javax.servlet.http.HttpServletRequest req,
                              javax.servlet.http.HttpServletResponse resp)
        Description copied from interface: ViewInterceptor
        Called when a HTTP request was sent to the view service. The request has not yet been processed.
        Specified by:
        onRequest in interface ViewInterceptor
        Parameters:
        req - HttpServletRequest to be handled
        resp - HttpServletResponse with the response
      • onRendering

        public String onRendering​(String template,
                                  javax.servlet.http.HttpServletRequest req,
                                  javax.servlet.http.HttpServletResponse resp)
        Description copied from interface: ViewInterceptor
        Called when a ViewHandler successfully processed the request and returned a template string that is now to be rendered. The interceptor can change the template name.
        Specified by:
        onRendering in interface ViewInterceptor
        Parameters:
        template - Template name returned by the view handler
        req - HttpServletRequest that was handled
        resp - HttpServletResponse with the response
        Returns:
        a different template name, or null for keeping the original template name
      • onErrorResponse

        public boolean onErrorResponse​(ErrorResponseException ex,
                                       javax.servlet.http.HttpServletRequest req,
                                       javax.servlet.http.HttpServletResponse resp)
        Description copied from interface: ViewInterceptor
        Called when an ErrorResponseException occured. The interceptor is able to catch the error.
        Specified by:
        onErrorResponse in interface ViewInterceptor
        Parameters:
        ex - ErrorResponseException that occured
        req - HttpServletRequest that led to this error
        resp - HttpServletResponse with the response
        Returns:
        true if the interceptor responded to the error. Other interceptors will not be invoked, and the HttpServletResponse is sent back. false if the error handling shall be continued.