org.parancoe.web.plugin
Class PluginInterceptor

java.lang.Object
  extended by org.parancoe.web.plugin.PluginInterceptor
All Implemented Interfaces:
org.springframework.context.ApplicationContextAware, org.springframework.web.servlet.HandlerInterceptor

public class PluginInterceptor
extends java.lang.Object
implements org.springframework.web.servlet.HandlerInterceptor, org.springframework.context.ApplicationContextAware

Questa classe fa da proxy per tutti gli interceptor configurati nei plugins. Parancoe chiama questo interceptor che poi fa il dispatch a tutti gli interceptor dei plugin.

Author:
paolo.dona@seesaw.it, Jacopo Murador

Constructor Summary
PluginInterceptor()
           
 
Method Summary
 void afterCompletion(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.Object handler, java.lang.Exception exception)
           
 void postHandle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.Object handler, org.springframework.web.servlet.ModelAndView modelAndView)
           
 boolean preHandle(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, java.lang.Object handler)
           
 void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PluginInterceptor

public PluginInterceptor()
Method Detail

preHandle

public boolean preHandle(javax.servlet.http.HttpServletRequest req,
                         javax.servlet.http.HttpServletResponse res,
                         java.lang.Object handler)
                  throws java.lang.Exception
Specified by:
preHandle in interface org.springframework.web.servlet.HandlerInterceptor
Throws:
java.lang.Exception

postHandle

public void postHandle(javax.servlet.http.HttpServletRequest request,
                       javax.servlet.http.HttpServletResponse response,
                       java.lang.Object handler,
                       org.springframework.web.servlet.ModelAndView modelAndView)
                throws java.lang.Exception
Specified by:
postHandle in interface org.springframework.web.servlet.HandlerInterceptor
Throws:
java.lang.Exception

afterCompletion

public void afterCompletion(javax.servlet.http.HttpServletRequest request,
                            javax.servlet.http.HttpServletResponse response,
                            java.lang.Object handler,
                            java.lang.Exception exception)
                     throws java.lang.Exception
Specified by:
afterCompletion in interface org.springframework.web.servlet.HandlerInterceptor
Throws:
java.lang.Exception

setApplicationContext

public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
                           throws org.springframework.beans.BeansException
Specified by:
setApplicationContext in interface org.springframework.context.ApplicationContextAware
Throws:
org.springframework.beans.BeansException


Copyright © 2008 JUG Padova Parancoe Team. All Rights Reserved.