Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.lutris.appserver.server.httpPresentation.servlet
Interface FilterableServlet  view FilterableServlet download FilterableServlet.java

All Known Implementing Classes:
AbstractFilterableServlet, HttpPresentationServlet

public interface FilterableServlet

See the class AbstractFilterableServlet for a reference implementation that demnonstrates the responsabilities of a FilterableServlet. This capability is used to implement the debugging servlet.


Method Summary
 void addFilter(org.enhydra.servlet.filter.Filter filter)
          Add a filter to the end of the list of filters.
 void removeFilter(org.enhydra.servlet.filter.Filter filter)
          Remove a filter from the list of current filters.
 void serviceDirect(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Perform the action service() would normally perform, without using the filters.
 

Method Detail

addFilter

public void addFilter(org.enhydra.servlet.filter.Filter filter)
Add a filter to the end of the list of filters.


removeFilter

public void removeFilter(org.enhydra.servlet.filter.Filter filter)
Remove a filter from the list of current filters. Silently fails if the filter is not in the list.


serviceDirect

public void serviceDirect(javax.servlet.http.HttpServletRequest request,
                          javax.servlet.http.HttpServletResponse response)
                   throws javax.servlet.ServletException,
                          java.io.IOException
Perform the action service() would normally perform, without using the filters. This is needed so that at the end of the filter chain the glue object can call this method to actually do the work. If it tried to call the normal service() method that would result in an infinite loop of filter processing.