Class PortletContainerImpl
java.lang.Object
org.gatein.pc.portlet.impl.jsr168.PortletContainerImpl
- All Implemented Interfaces:
PortletContainerObject,PortletContainer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected PortletApplicationImpl.protected StringThe portlet implementation class name.protected javax.portlet.PortletConfigThe portlet config.protected final org.exoplatform.services.log.LogLogger.protected javax.portlet.PortletThe portlet instance.protected javax.portlet.PreferencesValidatorThe preference validator, this is not exposed as runtime meta data as it is only used by the JSR 168 portlet container implementation.protected LifeCycleStatusAre we started or not.protected SetUser data constraint.protected final org.gatein.common.concurrent.ValveThe invocation valve. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPortletFilter(PortletFilter filter) Add a filter.voidcreate()Creates the portlet container.voiddestroy()Destroys the portlet container.org.gatein.pc.api.invocation.response.PortletInvocationResponsedispatch(org.gatein.pc.api.invocation.PortletInvocation invocation) Invoke the portlet container.javax.portlet.PortletConfigReturns the context of the portlet container.getId()Return the portlet container id, unique within the context of the parent application.getInfo()Returns the runtime meta data of the container.javax.portlet.PortletReturns the wired application.javax.portlet.PortletReturns the current instance held by the container.javax.portlet.PreferencesValidatororg.gatein.common.concurrent.ValvegetValve()voidremovePortletFilter(PortletFilter filter) Remove a filter.voidsetContext(PortletContainerContext context) Set/unset the portlet container context.voidsetPortletApplication(PortletApplication application) Set/unset the application.voidstart()Starts the portlet container.voidstop()Stops the portlet container.toString()
-
Field Details
-
log
protected final org.exoplatform.services.log.Log logLogger. -
application
. -
className
The portlet implementation class name. -
config
protected javax.portlet.PortletConfig configThe portlet config. -
portlet
protected javax.portlet.Portlet portletThe portlet instance. -
valve
protected final org.gatein.common.concurrent.Valve valveThe invocation valve. -
status
Are we started or not. -
userDataConstraints
User data constraint. -
preferencesValidator
protected javax.portlet.PreferencesValidator preferencesValidatorThe preference validator, this is not exposed as runtime meta data as it is only used by the JSR 168 portlet container implementation.
-
-
Constructor Details
-
PortletContainerImpl
-
-
Method Details
-
setContext
Description copied from interface:PortletContainerObjectSet/unset the portlet container context.- Specified by:
setContextin interfacePortletContainerObject- Parameters:
context- the context
-
getContext
Description copied from interface:PortletContainerReturns the context of the portlet container.- Specified by:
getContextin interfacePortletContainer- Returns:
- the context
-
getInfo
Description copied from interface:PortletContainerReturns the runtime meta data of the container.- Specified by:
getInfoin interfacePortletContainer- Returns:
- the info
-
getPortletInstance
public javax.portlet.Portlet getPortletInstance()Description copied from interface:PortletContainerObjectReturns the current instance held by the container.- Specified by:
getPortletInstancein interfacePortletContainerObject- Returns:
- the instance
-
getId
Description copied from interface:PortletContainerReturn the portlet container id, unique within the context of the parent application.- Specified by:
getIdin interfacePortletContainer- Returns:
- the id
-
addPortletFilter
Description copied from interface:PortletContainerObjectAdd a filter.- Specified by:
addPortletFilterin interfacePortletContainerObject- Parameters:
filter- the portlet filter
-
removePortletFilter
Description copied from interface:PortletContainerObjectRemove a filter.- Specified by:
removePortletFilterin interfacePortletContainerObject- Parameters:
filter- the portlet filter
-
create
Description copied from interface:PortletContainerObjectCreates the portlet container.- Specified by:
createin interfacePortletContainerObject- Throws:
Exception- any exception preventing the creation
-
start
Description copied from interface:PortletContainerObjectStarts the portlet container.- Specified by:
startin interfacePortletContainerObject- Throws:
Exception- any exception preventing the start
-
stop
public void stop()Description copied from interface:PortletContainerObjectStops the portlet container.- Specified by:
stopin interfacePortletContainerObject
-
destroy
public void destroy()Description copied from interface:PortletContainerObjectDestroys the portlet container.- Specified by:
destroyin interfacePortletContainerObject
-
getConfig
public javax.portlet.PortletConfig getConfig() -
getPortlet
public javax.portlet.Portlet getPortlet() -
getPortletApplication
Description copied from interface:PortletContainerReturns the wired application.- Specified by:
getPortletApplicationin interfacePortletContainer- Returns:
- the application
-
setPortletApplication
Description copied from interface:PortletContainerObjectSet/unset the application.- Specified by:
setPortletApplicationin interfacePortletContainerObject- Parameters:
application- the related application
-
getValve
public org.gatein.common.concurrent.Valve getValve() -
getUserDataConstraints
-
getPreferencesValidator
public javax.portlet.PreferencesValidator getPreferencesValidator() -
toString
-
dispatch
public org.gatein.pc.api.invocation.response.PortletInvocationResponse dispatch(org.gatein.pc.api.invocation.PortletInvocation invocation) throws org.gatein.pc.api.PortletInvokerException, org.gatein.pc.api.invocation.InvocationException Description copied from interface:PortletContainerInvoke the portlet container.- Specified by:
dispatchin interfacePortletContainer- Parameters:
invocation- the portlet invocation- Returns:
- the portlet invocation response
- Throws:
org.gatein.pc.api.PortletInvokerException- a portlet invoker exceptionorg.gatein.pc.api.invocation.InvocationException- an invocation exception
-