clime.messadmin.providers.spi.RequestLifeCycleProvider Maven / Gradle / Ivy
/**
*
*/
package clime.messadmin.providers.spi;
import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
* Note: this is about the same as a ServletFilter or a ServletRequestListener, except you don't have to change your web.xml and call chain.doFilter()
* Note: the invocation order of Providers is reversed in case of session/application destruction.
* @author Cédrik LIME
*/
public interface RequestLifeCycleProvider extends BaseProvider {
/**
* Notification that the servlet request is about to go into scope.
*/
public void requestInitialized(HttpServletRequest request, HttpServletResponse response, ServletContext servletContext);
/**
* Notification that the servlet request is about to go out of scope.
*/
public void requestDestroyed(HttpServletRequest request, HttpServletResponse response, ServletContext servletContext);
}