Hi,
In Vaadin 6 there were HttpServletRequestListener interface with onRequestStart() and onRequestEnd() methods.
Where can I find this functionality in Vaadin 7?
Thanks
Hi,
In Vaadin 6 there were HttpServletRequestListener interface with onRequestStart() and onRequestEnd() methods.
Where can I find this functionality in Vaadin 7?
Thanks
I know this probably won’t help your immediate needs, but I did figure out how to do this in 7.1. beta.
public class CustomVaadinServlet extends VaadinServlet {
@Override
protected VaadinServletService createServletService(DeploymentConfiguration deploymentConfiguration) throws ServiceException {
VaadinServletService servletService = new VaadinServletService(this, deploymentConfiguration){
@Override
public void requestStart(VaadinRequest request, VaadinResponse response) {
super.requestStart(request, response);
}
@Override
public void requestEnd(VaadinRequest request, VaadinResponse response, VaadinSession session) {
super.requestEnd(request, response, session);
}
};
servletService.init();
return servletService;
}
}
That looks promising. Is it only available in 7.1? I can see that I can override createServletService() in 7.0.6, but it isn’t the same signature. Also, will this support a response.sendRedirect() in the requestStart() method, or should we be using the Page.getCurrent().setLocation(url) scheme to redirect?