@WebFilter(filterName="PageRoutingFilter",
urlPatterns="/*",
dispatcherTypes=REQUEST)
public class PageRoutingFilter
extends Object
implements javax.servlet.Filter
| Modifier and Type | Field and Description |
|---|---|
protected javax.servlet.FilterConfig |
filterConfig |
protected static String |
HOME_CONTROLLER_NAME |
protected static String |
PAGE_CONTROLLER_NAME |
protected static String |
URL_PART_PATTERN |
protected Pattern |
urlPartPattern |
| Constructor and Description |
|---|
PageRoutingFilter() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
void |
doFilter(javax.servlet.ServletRequest arg0,
javax.servlet.ServletResponse arg1,
javax.servlet.FilterChain chain) |
protected void |
doNonDisplayPage(String path,
javax.servlet.ServletRequest arg0,
javax.servlet.ServletResponse arg1,
javax.servlet.FilterChain chain) |
protected String |
getControllerToForwardTo(javax.servlet.http.HttpServletRequest req,
String pageUri,
PageDao pageDao) |
void |
init(javax.servlet.FilterConfig arg0) |
protected javax.servlet.FilterConfig filterConfig
protected static final String URL_PART_PATTERN
protected static final String PAGE_CONTROLLER_NAME
protected static final String HOME_CONTROLLER_NAME
protected final Pattern urlPartPattern
public void init(javax.servlet.FilterConfig arg0)
throws javax.servlet.ServletException
init in interface javax.servlet.Filterjavax.servlet.ServletExceptionpublic void doFilter(javax.servlet.ServletRequest arg0,
javax.servlet.ServletResponse arg1,
javax.servlet.FilterChain chain)
throws IOException,
javax.servlet.ServletException
doFilter in interface javax.servlet.FilterIOExceptionjavax.servlet.ServletExceptionprotected void doNonDisplayPage(String path, javax.servlet.ServletRequest arg0, javax.servlet.ServletResponse arg1, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException
IOExceptionjavax.servlet.ServletExceptionprotected String getControllerToForwardTo(javax.servlet.http.HttpServletRequest req, String pageUri, PageDao pageDao)
public void destroy()
destroy in interface javax.servlet.FilterCopyright © 2021. All rights reserved.