09-18-2013 06:33 AM
09-18-2013 10:44 AM
09-18-2013 11:34 AM
09-19-2013 10:35 PM
<bean id="webframeworkHandlerMappings" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping" abstract="true">
<property name="urlPathHelper" ref="urlPathHelper" />
<property name="pathMatcher" ref="pathMatcher" />
<property name="interceptors">
<list>
<ref bean="requestContextInterceptor"/>
<ref bean="userDashboardInterceptor"/>
<ref bean="editionInterceptor"/>
</list>
</property>
<property name="mappings">
<value>
/system/**=remoteController
/proxy/**=endpointController
/resource/**=resourceController
/feed/**=feedController
/dologin/**=loginController
/dologout/**=logoutController
</value>
</property>
</bean>
09-20-2013 03:39 AM
09-22-2013 12:11 PM
import org.springframework.ui.ModelMap;
import org.springframework.web.context.request.WebRequest;
import org.springframework.web.context.request.WebRequestInterceptor;
public class TestInterceptor implements WebRequestInterceptor {
@Override
public void afterCompletion(WebRequest request, Exception ex)
throws Exception {
// TODO Auto-generated method stub
}
@Override
public void postHandle(WebRequest request, ModelMap model) throws Exception {
// TODO Auto-generated method stub
}
@Override
public void preHandle(WebRequest request) throws Exception {
// TODO Auto-generated method stub
}
}
…
<property name="interceptors">
<list>
<ref bean="testInterceptor"/>
</list>
</property>
<property name="mappings">
<value>
/dologin/**=loginController
/dologout/**=logoutController
</value>
</property>
…
<bean id="testInterceptor" class="***.***.***.***.TestInterceptor" >
<property name="***" ref="****"></property>
</bean>
08-06-2018 08:53 AM
Can this be applied to a simple custom WebScript?
08-26-2019 01:27 PM
No interceptors can not be applied at webscript level.
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.