org.apache.wicket.portlet
Class PortletFilter

java.lang.Object
  extended by org.apache.wicket.protocol.http.WicketFilter
      extended by org.apache.wicket.portlet.PortletFilter
All Implemented Interfaces:
Filter

public class PortletFilter
extends WicketFilter

This class subclasses the original WicketFilter to add the necessary porlet functionality. It is responsible for the initialization of all portlet specific settings of the WebApplication and wraps the portlet request and portlet response objects by an http servlet request / response wrapper.

Author:
Peter Pastrnak

Field Summary
static String SHARED_RESOURCE_URL_PORTLET_WINDOW_ID_PREFIX
           
 
Fields inherited from class org.apache.wicket.protocol.http.WicketFilter
APP_FACT_PARAM, FILTER_MAPPING_PARAM, IGNORE_PATHS_PARAM
 
Constructor Summary
PortletFilter()
           
 
Method Summary
 void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain)
           
protected  IWebApplicationFactory getApplicationFactory()
          Hack to access the application object (TODO: remove)
 void init(boolean isServlet, FilterConfig filterConfig)
           
 
Methods inherited from class org.apache.wicket.protocol.http.WicketFilter
checkIfRedirectRequired, destroy, getClassLoader, getFilterConfig, getFilterPath, getFilterPathFromAnnotation, getFilterPathFromConfig, getFilterPathFromWebXml, getRelativePath, init, setFilterPath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SHARED_RESOURCE_URL_PORTLET_WINDOW_ID_PREFIX

public static final String SHARED_RESOURCE_URL_PORTLET_WINDOW_ID_PREFIX
See Also:
Constant Field Values
Constructor Detail

PortletFilter

public PortletFilter()
Method Detail

getApplicationFactory

protected IWebApplicationFactory getApplicationFactory()
Hack to access the application object (TODO: remove)

Overrides:
getApplicationFactory in class WicketFilter
See Also:
WicketFilter.getApplicationFactory()

init

public void init(boolean isServlet,
                 FilterConfig filterConfig)
          throws ServletException
Overrides:
init in class WicketFilter
Throws:
ServletException

doFilter

public void doFilter(ServletRequest servletRequest,
                     ServletResponse servletResponse,
                     FilterChain filterChain)
              throws IOException,
                     ServletException
Specified by:
doFilter in interface Filter
Overrides:
doFilter in class WicketFilter
Throws:
IOException
ServletException


Copyright © 2015. All Rights Reserved.