|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pluto.core.PortletContextManager
public class 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. |
PortletAppDD |
getPortletApplicationDescriptor(java.lang.String applicationId)
Retrieve the portlet descriptor for the specified portlet application. |
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)
|
PortletContext |
getPortletContext(java.lang.String applicationId)
Retrieve the PortletContext for the specified applicationId |
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
-
PortletContainerException
public void remove(InternalPortletContext context)
public java.util.Iterator getRegisteredPortletApplicationIds()
PortletRegistryService
getRegisteredPortletApplicationIds
in interface PortletRegistryService
public java.util.Iterator getRegisteredPortletApplications()
getRegisteredPortletApplications
in interface PortletRegistryService
public PortletContext getPortletContext(java.lang.String applicationId) throws PortletContainerException
PortletRegistryService
getPortletContext
in interface PortletRegistryService
applicationId
- context identifier
PortletContainerException
- if internal error occurspublic PortletConfig getPortletConfig(java.lang.String applicationId, java.lang.String portletName)
PortletRegistryService
getPortletConfig
in interface PortletRegistryService
applicationId
- context identifierportletName
- portlet name
public PortletDD getPortletDescriptor(java.lang.String applicationId, java.lang.String portletName)
PortletRegistryService
getPortletDescriptor
in interface PortletRegistryService
applicationId
- context identifierportletName
- portlet name
public PortletAppDD getPortletApplicationDescriptor(java.lang.String applicationId) throws PortletContainerException
PortletRegistryService
getPortletApplicationDescriptor
in interface PortletRegistryService
applicationId
- 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 PortletRegistryService
listener
- the listener to addpublic void removePortletRegistryListener(PortletRegistryListener listener)
PortletRegistryService
removePortletRegistryListener
in interface PortletRegistryService
listener
- the listener to removepublic 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 |