org.apache.wicket.protocol.http.portlet
Class WicketPortlet

java.lang.Object
  extended by javax.portlet.GenericPortlet
      extended by org.apache.wicket.protocol.http.portlet.WicketPortlet
All Implemented Interfaces:
javax.portlet.Portlet, javax.portlet.PortletConfig
Direct Known Subclasses:
WicketExamplesMenuPortlet

public class WicketPortlet
extends javax.portlet.GenericPortlet

Author:
Ate Douma

Field Summary
static java.lang.String ACTION_REQUEST
           
static java.lang.String CONFIG_PARAM_PREFIX
           
static java.lang.String CUSTOM_REQUEST
           
static java.lang.String EDIT_REQUEST
           
static java.lang.String HELP_REQUEST
           
static java.lang.String PARAM_ACTION_PAGE
          Name of portlet init parameter for Action page
static java.lang.String PARAM_CUSTOM_PAGE
          Name of portlet init parameter for Custom page
static java.lang.String PARAM_EDIT_PAGE
          Name of portlet init parameter for Edit page
static java.lang.String PARAM_HELP_PAGE
          Name of portlet init parameter for Edit page
static java.lang.String PARAM_PORTLET_RESOURCE_URL_FACTORY
           
static java.lang.String PARAM_SERVLET_CONTEXT_PROVIDER
           
static java.lang.String PARAM_VIEW_PAGE
          Name of portlet init parameter for View page
static java.lang.String PORTLET_RESOURCE_URL_ATTR
           
static java.lang.String PORTLET_RESOURCE_URL_PARAMETER
           
static java.lang.String REQUEST_TYPE_ATTR
           
static java.lang.String RESOURCE_REQUEST
           
static java.lang.String RESOURCE_URL_FACTORY_ATTR
           
static java.lang.String RESPONSE_STATE_ATTR
           
static java.lang.String VIEW_REQUEST
           
static java.lang.String WICKET_FILTER_PATH
           
static java.lang.String WICKET_FILTER_PATH_PARAM
           
static java.lang.String WICKET_FILTER_QUERY
           
static java.lang.String WICKET_PORTLET_PROPERTIES
           
static java.lang.String WICKET_URL_PORTLET_PARAMETER
           
static java.lang.String WICKET_URL_PORTLET_PARAMETER_ATTR
           
 
Constructor Summary
WicketPortlet()
           
 
Method Summary
protected  java.lang.String buildWicketFilterPath(java.lang.String filterPath)
           
protected  java.lang.String buildWicketFilterQuery(java.lang.String wicketFilterPath)
           
 void destroy()
           
protected  void doCustom(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response)
           
protected  void doEdit(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response)
           
protected  void doHelp(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response)
           
protected  void doView(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response)
           
protected  java.lang.String fixWicketUrl(java.lang.String url, java.lang.String wicketFilterPath, java.lang.String wicketFilterQuery)
           
protected  java.lang.String getContextProviderClassNameParameter(javax.portlet.PortletConfig config)
           
protected  java.lang.String getDefaultPage(java.lang.String pageType)
           
protected  javax.servlet.http.HttpServletRequest getHttpServletRequest(javax.portlet.GenericPortlet portlet, javax.portlet.PortletRequest request, javax.portlet.PortletResponse response)
           
protected  javax.servlet.http.HttpServletResponse getHttpServletResponse(javax.portlet.GenericPortlet portlet, javax.portlet.PortletRequest request, javax.portlet.PortletResponse response)
           
protected  java.lang.String getPortletResourceURLFactoryClassNameParameter(javax.portlet.PortletConfig config)
           
protected  javax.servlet.ServletContext getServletContext(javax.portlet.GenericPortlet portlet, javax.portlet.PortletRequest request, javax.portlet.PortletResponse response)
           
protected  org.apache.portals.bridges.common.ServletContextProvider getServletContextProvider()
           
protected  java.lang.String getWicketConfigParameter(javax.portlet.PortletRequest request, java.lang.String paramName, java.lang.String defaultValue)
           
protected  java.lang.String getWicketFilterPath()
           
protected  java.util.Properties getWicketPortletProperties(java.util.Properties properties)
           
protected  java.lang.String getWicketURL(javax.portlet.PortletRequest request, java.lang.String pageType, java.lang.String defaultPage)
           
protected  java.lang.String getWicketUrlPortletParameter(javax.portlet.PortletRequest request)
           
 void init(javax.portlet.PortletConfig config)
           
 void processAction(javax.portlet.ActionRequest request, javax.portlet.ActionResponse response)
           
protected  void processActionResponseState(java.lang.String wicketURL, java.lang.String wicketFilterPath, java.lang.String wicketFilterQuery, javax.portlet.ActionRequest request, javax.portlet.ActionResponse response, WicketResponseState responseState)
           
protected  void processRequest(javax.portlet.PortletRequest request, javax.portlet.PortletResponse response, java.lang.String requestType, java.lang.String pageType)
           
protected  void validateDefaultPages(java.util.Map defaultPages, java.lang.String wicketFilterPath, java.lang.String wicketFilterQuery)
           
 
Methods inherited from class javax.portlet.GenericPortlet
doDispatch, getInitParameter, getInitParameterNames, getPortletConfig, getPortletContext, getPortletName, getResourceBundle, getTitle, init, render
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WICKET_URL_PORTLET_PARAMETER

public static final java.lang.String WICKET_URL_PORTLET_PARAMETER
See Also:
Constant Field Values

PORTLET_RESOURCE_URL_PARAMETER

public static final java.lang.String PORTLET_RESOURCE_URL_PARAMETER
See Also:
Constant Field Values

PORTLET_RESOURCE_URL_ATTR

public static final java.lang.String PORTLET_RESOURCE_URL_ATTR
See Also:
Constant Field Values

WICKET_FILTER_PATH_PARAM

public static final java.lang.String WICKET_FILTER_PATH_PARAM
See Also:
Constant Field Values

PARAM_SERVLET_CONTEXT_PROVIDER

public static final java.lang.String PARAM_SERVLET_CONTEXT_PROVIDER
See Also:
Constant Field Values

PARAM_PORTLET_RESOURCE_URL_FACTORY

public static final java.lang.String PARAM_PORTLET_RESOURCE_URL_FACTORY
See Also:
Constant Field Values

ACTION_REQUEST

public static final java.lang.String ACTION_REQUEST
See Also:
Constant Field Values

VIEW_REQUEST

public static final java.lang.String VIEW_REQUEST
See Also:
Constant Field Values

RESOURCE_REQUEST

public static final java.lang.String RESOURCE_REQUEST
See Also:
Constant Field Values

CUSTOM_REQUEST

public static final java.lang.String CUSTOM_REQUEST
See Also:
Constant Field Values

EDIT_REQUEST

public static final java.lang.String EDIT_REQUEST
See Also:
Constant Field Values

HELP_REQUEST

public static final java.lang.String HELP_REQUEST
See Also:
Constant Field Values

REQUEST_TYPE_ATTR

public static final java.lang.String REQUEST_TYPE_ATTR

WICKET_URL_PORTLET_PARAMETER_ATTR

public static final java.lang.String WICKET_URL_PORTLET_PARAMETER_ATTR

CONFIG_PARAM_PREFIX

public static final java.lang.String CONFIG_PARAM_PREFIX

RESPONSE_STATE_ATTR

public static final java.lang.String RESPONSE_STATE_ATTR

RESOURCE_URL_FACTORY_ATTR

public static final java.lang.String RESOURCE_URL_FACTORY_ATTR

WICKET_PORTLET_PROPERTIES

public static final java.lang.String WICKET_PORTLET_PROPERTIES

WICKET_FILTER_PATH

public static final java.lang.String WICKET_FILTER_PATH

WICKET_FILTER_QUERY

public static final java.lang.String WICKET_FILTER_QUERY

PARAM_ACTION_PAGE

public static final java.lang.String PARAM_ACTION_PAGE
Name of portlet init parameter for Action page

See Also:
Constant Field Values

PARAM_CUSTOM_PAGE

public static final java.lang.String PARAM_CUSTOM_PAGE
Name of portlet init parameter for Custom page

See Also:
Constant Field Values

PARAM_EDIT_PAGE

public static final java.lang.String PARAM_EDIT_PAGE
Name of portlet init parameter for Edit page

See Also:
Constant Field Values

PARAM_HELP_PAGE

public static final java.lang.String PARAM_HELP_PAGE
Name of portlet init parameter for Edit page

See Also:
Constant Field Values

PARAM_VIEW_PAGE

public static final java.lang.String PARAM_VIEW_PAGE
Name of portlet init parameter for View page

See Also:
Constant Field Values
Constructor Detail

WicketPortlet

public WicketPortlet()
Method Detail

init

public void init(javax.portlet.PortletConfig config)
          throws javax.portlet.PortletException
Specified by:
init in interface javax.portlet.Portlet
Overrides:
init in class javax.portlet.GenericPortlet
Throws:
javax.portlet.PortletException

destroy

public void destroy()
Specified by:
destroy in interface javax.portlet.Portlet
Overrides:
destroy in class javax.portlet.GenericPortlet

getDefaultPage

protected java.lang.String getDefaultPage(java.lang.String pageType)

buildWicketFilterPath

protected java.lang.String buildWicketFilterPath(java.lang.String filterPath)

buildWicketFilterQuery

protected java.lang.String buildWicketFilterQuery(java.lang.String wicketFilterPath)

fixWicketUrl

protected java.lang.String fixWicketUrl(java.lang.String url,
                                        java.lang.String wicketFilterPath,
                                        java.lang.String wicketFilterQuery)

validateDefaultPages

protected void validateDefaultPages(java.util.Map defaultPages,
                                    java.lang.String wicketFilterPath,
                                    java.lang.String wicketFilterQuery)

getWicketPortletProperties

protected java.util.Properties getWicketPortletProperties(java.util.Properties properties)
                                                   throws javax.portlet.PortletException
Throws:
javax.portlet.PortletException

getContextProviderClassNameParameter

protected java.lang.String getContextProviderClassNameParameter(javax.portlet.PortletConfig config)

getPortletResourceURLFactoryClassNameParameter

protected java.lang.String getPortletResourceURLFactoryClassNameParameter(javax.portlet.PortletConfig config)

getServletContextProvider

protected org.apache.portals.bridges.common.ServletContextProvider getServletContextProvider()

getServletContext

protected javax.servlet.ServletContext getServletContext(javax.portlet.GenericPortlet portlet,
                                                         javax.portlet.PortletRequest request,
                                                         javax.portlet.PortletResponse response)

getHttpServletRequest

protected javax.servlet.http.HttpServletRequest getHttpServletRequest(javax.portlet.GenericPortlet portlet,
                                                                      javax.portlet.PortletRequest request,
                                                                      javax.portlet.PortletResponse response)

getHttpServletResponse

protected javax.servlet.http.HttpServletResponse getHttpServletResponse(javax.portlet.GenericPortlet portlet,
                                                                        javax.portlet.PortletRequest request,
                                                                        javax.portlet.PortletResponse response)

getWicketConfigParameter

protected java.lang.String getWicketConfigParameter(javax.portlet.PortletRequest request,
                                                    java.lang.String paramName,
                                                    java.lang.String defaultValue)

getWicketUrlPortletParameter

protected java.lang.String getWicketUrlPortletParameter(javax.portlet.PortletRequest request)

getWicketFilterPath

protected java.lang.String getWicketFilterPath()

getWicketURL

protected java.lang.String getWicketURL(javax.portlet.PortletRequest request,
                                        java.lang.String pageType,
                                        java.lang.String defaultPage)

doView

protected void doView(javax.portlet.RenderRequest request,
                      javax.portlet.RenderResponse response)
               throws javax.portlet.PortletException,
                      java.io.IOException
Overrides:
doView in class javax.portlet.GenericPortlet
Throws:
javax.portlet.PortletException
java.io.IOException

doEdit

protected void doEdit(javax.portlet.RenderRequest request,
                      javax.portlet.RenderResponse response)
               throws javax.portlet.PortletException,
                      java.io.IOException
Overrides:
doEdit in class javax.portlet.GenericPortlet
Throws:
javax.portlet.PortletException
java.io.IOException

doHelp

protected void doHelp(javax.portlet.RenderRequest request,
                      javax.portlet.RenderResponse response)
               throws javax.portlet.PortletException,
                      java.io.IOException
Overrides:
doHelp in class javax.portlet.GenericPortlet
Throws:
javax.portlet.PortletException
java.io.IOException

doCustom

protected void doCustom(javax.portlet.RenderRequest request,
                        javax.portlet.RenderResponse response)
                 throws javax.portlet.PortletException,
                        java.io.IOException
Throws:
javax.portlet.PortletException
java.io.IOException

processAction

public void processAction(javax.portlet.ActionRequest request,
                          javax.portlet.ActionResponse response)
                   throws javax.portlet.PortletException,
                          java.io.IOException
Specified by:
processAction in interface javax.portlet.Portlet
Overrides:
processAction in class javax.portlet.GenericPortlet
Throws:
javax.portlet.PortletException
java.io.IOException

processRequest

protected void processRequest(javax.portlet.PortletRequest request,
                              javax.portlet.PortletResponse response,
                              java.lang.String requestType,
                              java.lang.String pageType)
                       throws javax.portlet.PortletException,
                              java.io.IOException
Throws:
javax.portlet.PortletException
java.io.IOException

processActionResponseState

protected void processActionResponseState(java.lang.String wicketURL,
                                          java.lang.String wicketFilterPath,
                                          java.lang.String wicketFilterQuery,
                                          javax.portlet.ActionRequest request,
                                          javax.portlet.ActionResponse response,
                                          WicketResponseState responseState)
                                   throws javax.portlet.PortletException,
                                          java.io.IOException
Throws:
javax.portlet.PortletException
java.io.IOException


Copyright © 2004-2010 Apache Software Foundation. All Rights Reserved.