|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.pluto.core.PortletContextManager
Manager used to cache the portlet configurations which have been previously parsed.
| Method Summary | |
void |
addPortletRegistryListener(PortletRegistryListener listener)
Add a listener which will recieve notifications of newly registered applications. |
protected static java.lang.String |
computeContextPath(javax.servlet.ServletContext context)
|
protected static java.lang.String |
getContextPath(javax.servlet.ServletContext context)
|
static PortletContextManager |
getManager()
Returns the singleton manager instance. |
org.apache.pluto.descriptors.portlet.PortletAppDD |
getPortletApplicationDescriptor(java.lang.String applicationId)
Retrieve the portlet descriptor for the specified portlet application. |
javax.portlet.PortletConfig |
getPortletConfig(java.lang.String applicationId,
java.lang.String portletName)
Retrieve the portlet configuration for the specified portlet |
static javax.servlet.ServletContext |
getPortletContext(javax.servlet.ServletContext portalContext,
java.lang.String portletContextPath)
|
javax.portlet.PortletContext |
getPortletContext(java.lang.String applicationId)
Retrieve the PortletContext for the specified applicationId |
org.apache.pluto.descriptors.portlet.PortletDD |
getPortletDescriptor(java.lang.String applicationId,
java.lang.String portletName)
Retreive the portlet descriptor for the given portlet. |
java.util.Iterator |
getRegisteredPortletApplicationIds()
Retrieve the ids of all registered applications. |
java.util.Iterator |
getRegisteredPortletApplications()
Retrieve an iterator of all PortletContext instances which exist within this application. |
java.lang.String |
register(javax.servlet.ServletConfig config)
Retrieves the PortletContext associated with the given ServletContext. |
InternalPortletContext |
register(javax.servlet.ServletContext servletContext)
Deprecated. Use register(ServletConfig) |
void |
remove(InternalPortletContext context)
|
void |
removePortletRegistryListener(PortletRegistryListener listener)
Remove a previously registered listener. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static PortletContextManager getManager()
public java.lang.String register(javax.servlet.ServletConfig config)
throws PortletContainerException
config - the servlet config.
PortletContainerException
public InternalPortletContext register(javax.servlet.ServletContext servletContext)
throws PortletContainerException
register(ServletConfig)
servletContext -
PortletContainerExceptionpublic void remove(InternalPortletContext context)
public java.util.Iterator getRegisteredPortletApplicationIds()
PortletRegistryService
getRegisteredPortletApplicationIds in interface PortletRegistryServicepublic java.util.Iterator getRegisteredPortletApplications()
getRegisteredPortletApplications in interface PortletRegistryService
public javax.portlet.PortletContext getPortletContext(java.lang.String applicationId)
throws PortletContainerException
PortletRegistryService
getPortletContext in interface PortletRegistryServiceapplicationId - context identifier
PortletContainerException - if internal error occurs
public javax.portlet.PortletConfig getPortletConfig(java.lang.String applicationId,
java.lang.String portletName)
PortletRegistryService
getPortletConfig in interface PortletRegistryServiceapplicationId - context identifierportletName - portlet name
public org.apache.pluto.descriptors.portlet.PortletDD getPortletDescriptor(java.lang.String applicationId,
java.lang.String portletName)
PortletRegistryService
getPortletDescriptor in interface PortletRegistryServiceapplicationId - context identifierportletName - portlet name
public org.apache.pluto.descriptors.portlet.PortletAppDD getPortletApplicationDescriptor(java.lang.String applicationId)
throws PortletContainerException
PortletRegistryService
getPortletApplicationDescriptor in interface PortletRegistryServiceapplicationId - the name of the portlet application.
PortletContainerException - if the descriptor
can not be found or if the portlet.xml can not be parsed.public void addPortletRegistryListener(PortletRegistryListener listener)
PortletRegistryService
addPortletRegistryListener in interface PortletRegistryServicelistener - the listener to addpublic void removePortletRegistryListener(PortletRegistryListener listener)
PortletRegistryService
removePortletRegistryListener in interface PortletRegistryServicelistener - the listener to remove
public static javax.servlet.ServletContext getPortletContext(javax.servlet.ServletContext portalContext,
java.lang.String portletContextPath)
protected static java.lang.String getContextPath(javax.servlet.ServletContext context)
protected static java.lang.String computeContextPath(javax.servlet.ServletContext context)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||