public class PortletContainerImpl extends Object implements PortletContainerObject
| Modifier and Type | Field and Description |
|---|---|
protected PortletApplicationImpl |
application
.
|
protected String |
className
The portlet implementation class name.
|
protected javax.portlet.PortletConfig |
config
The portlet config.
|
protected org.gatein.common.logging.Logger |
log
Logger.
|
protected javax.portlet.Portlet |
portlet
The portlet instance.
|
protected javax.portlet.PreferencesValidator |
preferencesValidator
The preference validator, this is not exposed as runtime meta data as it is only used by the JSR 168 portlet
container implementation.
|
protected LifeCycleStatus |
status
Are we started or not.
|
protected Set |
userDataConstraints
User data constraint.
|
protected org.gatein.common.concurrent.Valve |
valve
The invocation valve.
|
| Constructor and Description |
|---|
PortletContainerImpl(ContainerPortletInfo info) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPortletFilter(PortletFilter filter)
Add a filter.
|
void |
create()
Creates the portlet container.
|
void |
destroy()
Destroys the portlet container.
|
PortletInvocationResponse |
dispatch(PortletInvocation invocation)
Invoke the portlet container.
|
javax.portlet.PortletConfig |
getConfig() |
PortletContainerContext |
getContext()
Returns the context of the portlet container.
|
String |
getId()
Return the portlet container id, unique within the context of the parent application.
|
ContainerPortletInfo |
getInfo()
Returns the runtime meta data of the container.
|
javax.portlet.Portlet |
getPortlet() |
PortletApplication |
getPortletApplication()
Returns the wired application.
|
javax.portlet.Portlet |
getPortletInstance()
Returns the current instance held by the container.
|
javax.portlet.PreferencesValidator |
getPreferencesValidator() |
Set |
getUserDataConstraints() |
org.gatein.common.concurrent.Valve |
getValve() |
void |
removePortletFilter(PortletFilter filter)
Remove a filter.
|
void |
setContext(PortletContainerContext context)
Set/unset the portlet container context.
|
void |
setPortletApplication(PortletApplication application)
Set/unset the application.
|
void |
start()
Starts the portlet container.
|
void |
stop()
Stops the portlet container.
|
String |
toString() |
protected final org.gatein.common.logging.Logger log
protected PortletApplicationImpl application
protected String className
protected javax.portlet.PortletConfig config
protected javax.portlet.Portlet portlet
protected final org.gatein.common.concurrent.Valve valve
protected LifeCycleStatus status
protected Set userDataConstraints
protected javax.portlet.PreferencesValidator preferencesValidator
public PortletContainerImpl(ContainerPortletInfo info)
public void setContext(PortletContainerContext context)
PortletContainerObjectsetContext in interface PortletContainerObjectcontext - the contextpublic PortletContainerContext getContext()
PortletContainergetContext in interface PortletContainerpublic ContainerPortletInfo getInfo()
PortletContainergetInfo in interface PortletContainerpublic javax.portlet.Portlet getPortletInstance()
PortletContainerObjectgetPortletInstance in interface PortletContainerObjectpublic String getId()
PortletContainergetId in interface PortletContainerpublic void addPortletFilter(PortletFilter filter)
PortletContainerObjectaddPortletFilter in interface PortletContainerObjectfilter - the portlet filterpublic void removePortletFilter(PortletFilter filter)
PortletContainerObjectremovePortletFilter in interface PortletContainerObjectfilter - the portlet filterpublic void create()
throws Exception
PortletContainerObjectcreate in interface PortletContainerObjectException - any exception preventing the creationpublic void start()
throws Exception
PortletContainerObjectstart in interface PortletContainerObjectException - any exception preventing the startpublic void stop()
PortletContainerObjectstop in interface PortletContainerObjectpublic void destroy()
PortletContainerObjectdestroy in interface PortletContainerObjectpublic javax.portlet.PortletConfig getConfig()
public javax.portlet.Portlet getPortlet()
public PortletApplication getPortletApplication()
PortletContainergetPortletApplication in interface PortletContainerpublic void setPortletApplication(PortletApplication application)
PortletContainerObjectsetPortletApplication in interface PortletContainerObjectapplication - the related applicationpublic org.gatein.common.concurrent.Valve getValve()
public Set getUserDataConstraints()
public javax.portlet.PreferencesValidator getPreferencesValidator()
public PortletInvocationResponse dispatch(PortletInvocation invocation) throws PortletInvokerException, InvocationException
PortletContainerdispatch in interface PortletContainerinvocation - the portlet invocationPortletInvokerException - a portlet invoker exceptionInvocationException - an invocation exceptionCopyright © 2003-2021 GateIn. All Rights Reserved.