|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.talika.tarsis.filters.AbstractFilter org.talika.tarsis.filters.CommandFilter org.talika.tarsis.filters.validator.ValidatorFilter org.talika.tarsis.filters.validator.ExtendedValidatorFilter
public class ExtendedValidatorFilter
Experimental extended validator filter. Work in progress.
Constructor Summary | |
---|---|
ExtendedValidatorFilter()
|
Method Summary | |
---|---|
void |
destroy()
Called by the web container to indicate to a filter that it is being taken out of service. |
void |
doFilter(javax.servlet.ServletRequest servletRequest,
javax.servlet.ServletResponse servletResponse,
javax.servlet.FilterChain filterChain)
Validates command parameters sent in client's request. |
protected HistoricRequest |
getHistory(javax.servlet.ServletRequest request)
Retrieves client's request from request history. |
void |
init(javax.servlet.FilterConfig filterConfig)
Called by the web container to indicate to a filter that it is being placed into service. |
protected void |
putHistory(javax.servlet.ServletRequest request)
Stores client's request in request history. |
Methods inherited from class org.talika.tarsis.filters.validator.ValidatorFilter |
---|
checkRequired, getMultipleParameter, getParameter, validate |
Methods inherited from class org.talika.tarsis.filters.CommandFilter |
---|
findCommand, getCommandFactory |
Methods inherited from class org.talika.tarsis.filters.AbstractFilter |
---|
getContext, getFilterConfig, getLogger |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExtendedValidatorFilter()
Method Detail |
---|
public void init(javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException
init
method and storing
in a local variable history size parameter for further use.
init
in interface javax.servlet.Filter
init
in class CommandFilter
filterConfig
- FilterConfig filter configutarion.
javax.servlet.ServletException
- if an exception has occurred that interferes with the
filter's normal operationFilter.init(FilterConfig)
public void destroy()
destroy
in interface javax.servlet.Filter
destroy
in class CommandFilter
Filter.destroy()
public void doFilter(javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse, javax.servlet.FilterChain filterChain) throws java.io.IOException, javax.servlet.ServletException
doFilter
in interface javax.servlet.Filter
doFilter
in class ValidatorFilter
servletRequest
- ServletRequest the ServletRequest
object
that contains the client's request.servletResponse
- ServletResponse the ServletResponse
object
that contains the servlet's response.filterChain
- FilterChain invocation chain of filtered request.
java.io.IOException
- if an input or output exception occurs
javax.servlet.ServletException
- if an exception has occurred that interferes with the
filter's normal operationFilter.doFilter(ServletRequest, ServletResponse, FilterChain)
protected void putHistory(javax.servlet.ServletRequest request)
request
- ServletRequest client's request.protected HistoricRequest getHistory(javax.servlet.ServletRequest request)
request
- ServletRequest client'r request.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |