Class PentahoPathDecodingFilter
- java.lang.Object
-
- org.pentaho.platform.web.http.filters.PentahoPathDecodingFilter
-
- All Implemented Interfaces:
javax.servlet.Filter
public class PentahoPathDecodingFilter extends Object implements javax.servlet.Filter
This filter is designed to work around a limitation of some web servers which prohibit the encoded form of / and \ (%2F and %5C) being in the URL. Clients can pass double-encoded forms of these encodings instead (%252F and %255C). This filter will detect any occurance of these double encodings and correct them before passing on to the rest of the servlet chain. Created by nbaker on 4/8/14.
-
-
Constructor Summary
Constructors Constructor Description PentahoPathDecodingFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
destroy()
void
doFilter(javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse, javax.servlet.FilterChain filterChain)
void
init(javax.servlet.FilterConfig filterConfig)
-
-
-
Method Detail
-
init
public void init(javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException
- Specified by:
init
in interfacejavax.servlet.Filter
- Throws:
javax.servlet.ServletException
-
doFilter
public void doFilter(javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse, javax.servlet.FilterChain filterChain) throws IOException, javax.servlet.ServletException
- Specified by:
doFilter
in interfacejavax.servlet.Filter
- Throws:
IOException
javax.servlet.ServletException
-
destroy
public void destroy()
- Specified by:
destroy
in interfacejavax.servlet.Filter
-
-