Class ResourceUrlEncodingFilter
java.lang.Object
org.springframework.web.filter.GenericFilterBean
org.springframework.web.servlet.resource.ResourceUrlEncodingFilter
- All Implemented Interfaces:
Filter
,Aware
,BeanNameAware
,DisposableBean
,InitializingBean
,EnvironmentAware
,EnvironmentCapable
,ServletContextAware
A filter that wraps the
HttpServletResponse
and overrides its
encodeURL
method in order to
translate internal resource request URLs into public URL paths for external use.- Since:
- 4.1
- Author:
- Jeremy Grelle, Rossen Stoyanchev, Sam Brannen, Brian Clozel
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
doFilter
(ServletRequest request, ServletResponse response, FilterChain filterChain) Methods inherited from class org.springframework.web.filter.GenericFilterBean
addRequiredProperty, afterPropertiesSet, createEnvironment, destroy, getEnvironment, getFilterConfig, getFilterName, getServletContext, init, initBeanWrapper, initFilterBean, setBeanName, setEnvironment, setServletContext
-
Constructor Details
-
ResourceUrlEncodingFilter
public ResourceUrlEncodingFilter()
-
-
Method Details
-
doFilter
public void doFilter(ServletRequest request, ServletResponse response, FilterChain filterChain) throws ServletException, IOException - Throws:
ServletException
IOException
-