|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.wicket.protocol.http.WicketFilter
public class WicketFilter
Filter for initiating handling of Wicket requests.
Field Summary | |
---|---|
static java.lang.String |
APP_FACT_PARAM
The name of the context parameter that specifies application factory class |
static java.lang.String |
FILTER_MAPPING_PARAM
The name of the root path parameter that specifies the root dir of the app. |
Constructor Summary | |
---|---|
WicketFilter()
|
Method Summary | |
---|---|
protected void |
createRequestContext(WebRequest request,
WebResponse response)
|
void |
destroy()
Servlet cleanup. |
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
|
boolean |
doGet(javax.servlet.http.HttpServletRequest servletRequest,
javax.servlet.http.HttpServletResponse servletResponse)
Handles servlet page requests. |
protected IWebApplicationFactory |
getApplicationFactory()
Creates the web application factory instance. |
protected java.lang.ClassLoader |
getClassLoader()
|
javax.servlet.FilterConfig |
getFilterConfig()
|
protected java.lang.String |
getFilterPath(javax.servlet.http.HttpServletRequest request)
|
java.lang.String |
getRelativePath(javax.servlet.http.HttpServletRequest request)
Returns a relative path from an HttpServletRequest Use this to resolve a Wicket request. |
void |
init(javax.servlet.FilterConfig filterConfig)
|
protected boolean |
isPortletContextAvailable(javax.servlet.FilterConfig config)
|
protected WicketFilterPortletContext |
newWicketFilterPortletContext()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String APP_FACT_PARAM
public static final java.lang.String FILTER_MAPPING_PARAM
Constructor Detail |
---|
public WicketFilter()
Method Detail |
---|
public void destroy()
destroy
in interface javax.servlet.Filter
public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain) throws java.io.IOException, javax.servlet.ServletException
doFilter
in interface javax.servlet.Filter
java.io.IOException
javax.servlet.ServletException
Filter.doFilter(javax.servlet.ServletRequest,
javax.servlet.ServletResponse, javax.servlet.FilterChain)
public boolean doGet(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) throws javax.servlet.ServletException, java.io.IOException
servletRequest
- Servlet request objectservletResponse
- Servlet response object
javax.servlet.ServletException
- Thrown if something goes wrong during request handling
java.io.IOException
public javax.servlet.FilterConfig getFilterConfig()
public java.lang.String getRelativePath(javax.servlet.http.HttpServletRequest request)
request
-
public void init(javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException
init
in interface javax.servlet.Filter
javax.servlet.ServletException
Filter.init(javax.servlet.FilterConfig)
protected boolean isPortletContextAvailable(javax.servlet.FilterConfig config) throws javax.servlet.ServletException
javax.servlet.ServletException
protected WicketFilterPortletContext newWicketFilterPortletContext()
protected void createRequestContext(WebRequest request, WebResponse response)
protected IWebApplicationFactory getApplicationFactory()
ContextParamWebApplicationFactory
protected java.lang.ClassLoader getClassLoader()
protected java.lang.String getFilterPath(javax.servlet.http.HttpServletRequest request)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |