|
HDIV API 2.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.web.filter.GenericFilterBean
org.springframework.web.filter.OncePerRequestFilter
org.hdiv.filter.ValidatorFilter
public class ValidatorFilter
An unique filter exists within HDIV. This filter has two responsabilities: initialize and validate. In fact, the actual validation is not implemented in this class, it is delegated to ValidatorHelper.
ValidatorHelperThreadLocal| Field Summary |
|---|
| Fields inherited from class org.springframework.web.filter.OncePerRequestFilter |
|---|
ALREADY_FILTERED_SUFFIX |
| Fields inherited from class org.springframework.web.filter.GenericFilterBean |
|---|
logger |
| Constructor Summary | |
|---|---|
ValidatorFilter()
Creates a new ValidatorFilter object. |
|
| Method Summary | |
|---|---|
protected void |
doFilterInternal(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain filterChain)
Called by the container each time a request/response pair is passed through the chain due to a client request for a resource at the end of the chain. |
protected void |
initFilterBean()
Called by the web container to indicate to a filter that it is being placed into service. |
void |
initHDIV(javax.servlet.http.HttpServletRequest request)
Initialize HDIV HTTP session |
boolean |
isMultipartContent(java.lang.String contentType)
Utility method that determines whether the request contains multipart content. |
protected void |
processRequest(IValidationHelper validationHelper,
ResponseWrapper responseWrapper,
javax.servlet.FilterChain filterChain)
Processes requests for both HTTP GET and POST
methods. |
| Methods inherited from class org.springframework.web.filter.OncePerRequestFilter |
|---|
doFilter, getAlreadyFilteredAttributeName, shouldNotFilter |
| Methods inherited from class org.springframework.web.filter.GenericFilterBean |
|---|
addRequiredProperty, afterPropertiesSet, destroy, getFilterConfig, getFilterName, getServletContext, init, initBeanWrapper, setBeanName, setServletContext |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ValidatorFilter()
| Method Detail |
|---|
protected void initFilterBean()
throws javax.servlet.ServletException
initFilterBean in class org.springframework.web.filter.GenericFilterBeanjavax.servlet.ServletExceptionFilter.init(javax.servlet.FilterConfig)
protected void doFilterInternal(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain filterChain)
throws javax.servlet.ServletException,
java.io.IOException
doFilterInternal in class org.springframework.web.filter.OncePerRequestFilterservletRequest - requestservletResponse - responsefilterChain - filter chain
javax.servlet.ServletException
java.io.IOExceptionFilter.doFilter(javax.servlet.ServletRequest,
javax.servlet.ServletResponse, javax.servlet.FilterChain)public void initHDIV(javax.servlet.http.HttpServletRequest request)
request - HTTP requestpublic boolean isMultipartContent(java.lang.String contentType)
contentType - content type
true if the request is multipart.
false otherwise.
protected void processRequest(IValidationHelper validationHelper,
ResponseWrapper responseWrapper,
javax.servlet.FilterChain filterChain)
throws java.lang.Exception
GET and POST
methods.
validationHelper - validation helperresponseWrapper - response wrapperfilterChain - filter chain
java.lang.Exception - if there is an error in request process.
|
HDIV 2.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||