Enhydra 5.1 API

com.lutris.appserver.server.httpPresentation.servlet
Interface FilterableServlet

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.

See Also:
com.lutris.appserver.server.httpPresentation.servlet.ServletListener, com.lutris.appserver.server.httpPresentation.servlet.AbstractServletListener

Method Summary
 void addFilter(Filter filter)
          Add a filter to the end of the list of filters.
 void removeFilter(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(Filter filter)
Add a filter to the end of the list of filters.

Parameters:
filter - The filter to add.

removeFilter

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

Parameters:
filter - The filter to remove.

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.

javax.servlet.ServletException
java.io.IOException

Enhydra 5.1 API