Method Summary |
|
public void | addFilter(Filter filter) Adds the specified filter to the filter chain without
initializing it. |
public void | addFilter(Filter filter, boolean doInit) Adds the specified filter it to the filter chain. |
public void | clearOutput() |
public Filter | createFilter(Class filterClass) Creates a filter, initializes it and adds it to the
filter chain. |
public HttpServlet | createServlet(Class servletClass) Creates a servlet and initializes it. |
public void | doDelete() Calls the current servlets doDelete method. |
public void | doFilter() Loops through the filter chain and calls the current servlets
service method at the end (only if a current servlet
is set). |
public void | doGet() Calls the current servlets doGet method. |
public void | doHead() Calls the current servlets doHead method. |
public void | doOptions() Calls the current servlets doOptions method. |
public void | doPost() Calls the current servlets doPost method. |
public void | doPut() Calls the current servlets doPut method. |
public void | doTrace() Calls the current servlets doTrace method. |
public ServletRequest | getFilteredRequest() Returns the last request from the filter chain. |
public ServletResponse | getFilteredResponse() Returns the last response from the filter chain. |
public String | getOutput() Returns the servlet output as a string. |
public HttpServlet | getServlet() Returns the current servlet. |
public void | init() Calls the current servlets init method. |
public void | releaseFilters() Deletes all filters in the filter chain. |
public void | service() Calls the current servlets service method. |
public void | setDoChain(boolean doChain) If doChain is set to true
(default is false ) every call of
one of the servlet methods will go through the filter chain
before calling the servlet method. |
public void | setServlet(HttpServlet servlet) Sets the specified servlet as the current servlet without initializing it. |
public void | setServlet(HttpServlet servlet, boolean doInit) Sets the specified servlet as the current servlet. |