public abstract class AbstractRestFilter
extends java.lang.Object
implements javax.servlet.Filter
| Constructor and Description |
|---|
AbstractRestFilter() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
void |
doFilter(javax.servlet.ServletRequest servletRequest,
javax.servlet.ServletResponse servletResponse,
javax.servlet.FilterChain filterChain) |
java.util.Locale |
getLocale(javax.servlet.http.HttpServletRequest request,
java.lang.String path)
Return the language from the path .
|
java.lang.String |
getPath(java.lang.String pathInfo)
Returns the path url post revision id processing by removing the revision segment from the pathinfo URL.
|
void |
init(javax.servlet.FilterConfig filterConfig) |
abstract java.lang.String |
processMetadataContextHeader(java.lang.String path)
Returns the value of the token for revsionid contained in path .
|
public void init(javax.servlet.FilterConfig filterConfig)
throws javax.servlet.ServletException
init in interface javax.servlet.Filterjavax.servlet.ServletExceptionpublic 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.Filterjava.io.IOExceptionjavax.servlet.ServletExceptionpublic abstract java.lang.String processMetadataContextHeader(java.lang.String path)
path - public java.util.Locale getLocale(javax.servlet.http.HttpServletRequest request,
java.lang.String path)
path - public java.lang.String getPath(java.lang.String pathInfo)
pathInfo - original pathInfopublic void destroy()
destroy in interface javax.servlet.Filter