public class SiteWicketFilter
extends org.apache.wicket.protocol.http.WicketFilter
SiteApplication
) kicks in via the framework.provideApplication(String, ServletRequest)
,
setupWicketContext(HttpServletRequest, HttpServletResponse)
Modifier and Type | Field and Description |
---|---|
static SiteApplication |
SITE_APPLICATION_INSTANCE
Deprecated.
PLEASE USE
SiteApplication.get() where possible. |
Constructor and Description |
---|
SiteWicketFilter() |
Modifier and Type | Method and Description |
---|---|
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain) |
Pattern |
getProvideApplicationRelPathRegEx()
Parent class isWicketRequest() is private however it does not provide Wicket
Application to all request threads. |
void |
init(javax.servlet.FilterConfig filterConfig) |
protected boolean |
provideApplication(String relativePath,
javax.servlet.ServletRequest request)
Parent class isWicketRequest() is private however it does not provide Wicket
Application to all request threads. |
protected void |
setAppSettings()
|
public static SiteApplication SITE_APPLICATION_INSTANCE
SiteApplication.get()
where possible.public void init(javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException
init
in interface javax.servlet.Filter
init
in class org.apache.wicket.protocol.http.WicketFilter
javax.servlet.ServletException
protected boolean provideApplication(String relativePath, javax.servlet.ServletRequest request)
Application
to all request threads.
In some cases we may need to override this to provide it to specific non-Wicket requests.relativePath
- of the requestrequest
- as ServletRequest
public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException
doFilter
in interface javax.servlet.Filter
doFilter
in class org.apache.wicket.protocol.http.WicketFilter
IOException
javax.servlet.ServletException
protected void setAppSettings()
public Pattern getProvideApplicationRelPathRegEx()
Application
to all request threads.
In some cases we may need to override this to provide it to specific non-Wicket requests.request
- as ServletRequest
Copyright © 2018. All rights reserved.