|
From: Kopylenko, D. <dko...@ac...> - 2004-03-18 15:14:09
|
I wouldn't mess around with changing the API at this point because this API
is used in production deployments
Dmitriy.
-----Original Message-----
From: Claudio D'Angelo [mailto:cla...@ob...]
Sent: Thursday, March 18, 2004 10:08 AM
To: spr...@li...
Subject: [Springframework-developer] Handler Interceptor
Hi,
I need of an Interceptor that controls the execution of workflow:
The methods of the HandleInterceptor are:
public boolean preHandle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response, java.lang.Object handler)
public void postHandle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response, java.lang.Object handler,
ModelAndView modelAndView)
public void afterCompletion(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response, java.lang.Object handler,
java.lang.Exception ex)
In all method is passed the instance of Controller that must be execute but
I need to know about the bean name (id value of configuration file) becouse
I've have similar bean with different id:
ie:
<bean name="/find.do" class="it.test.view.Finder">
...
<property name="commandName"> <value>command</value></property>
<property name="formView"><value>.find.normal</value></property>
<property
name="successView"><value>.detail.Normal</value></property>
</bean>
<bean name="/extendedFind.do" class="it.test.view.Finder">
...
<property name="commandName"> <value>command</value></property>
<property name="formView"><value>.find.extended</value></property>
<property
name="successView"><value>.detail.extended</value></property>
</bean>
All becouse the Command is the same but the view is different.
Is possible change the interface ? in :
public boolean preHandle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response, java.lang.Object handler,
String beanName)
public void postHandle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response, java.lang.Object handler,
String beanName, ModelAndView modelAndView)
public void afterCompletion(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response, java.lang.Object handler,
String beanName, java.lang.Exception ex)
Grazie e buon lavoro
_____
Claudio D'Angelo
Software Consultant
ObjectWay S.p.A.
Via G.A. Boltraffio 7
20159 Milano (MI)
http://www.objectway.it <http://www.objectway.it/>
|