public class ResourceUrlEncodingFilter extends GenericFilterBean
HttpServletResponse
and overrides its
encodeURL
method in order to
translate internal resource request URLs into public URL paths for external use.Constructor and Description |
---|
ResourceUrlEncodingFilter() |
Modifier and Type | Method and Description |
---|---|
void |
doFilter(ServletRequest request,
ServletResponse response,
FilterChain filterChain)
The
doFilter method of the Filter is 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. |
addRequiredProperty, afterPropertiesSet, createEnvironment, destroy, getEnvironment, getFilterConfig, getFilterName, getServletContext, init, initBeanWrapper, initFilterBean, setBeanName, setEnvironment, setServletContext
public void doFilter(ServletRequest request, ServletResponse response, FilterChain filterChain) throws ServletException, IOException
javax.servlet.Filter
doFilter
method of the Filter is 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.
The FilterChain passed in to this method allows the Filter to pass
on the request and response to the next entity in the chain.
A typical implementation of this method would follow the following pattern:
chain.doFilter()
),
request
- the ServletRequest
object contains the client's requestresponse
- the ServletResponse
object contains the filter's responsefilterChain
- the FilterChain
for invoking the next filter or the resourceServletException
- if an exception occurs that interferes with the
filter's normal operationIOException
- if an I/O related error has occurred during the processingUnavailableException