|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.portal.coplet.adapter.impl.AbstractCopletAdapter
org.apache.cocoon.portal.coplet.adapter.impl.PortletAdapter
public class PortletAdapter
This is the adapter to use JSR-168 portlets as coplets.
| Field Summary | |
|---|---|
protected Context |
context
The avalon context |
protected org.apache.pluto.PortletContainer |
portletContainer
The Portlet Container |
protected PortletContainerEnvironmentImpl |
portletContainerEnvironment
The Portlet Container environment |
protected ServletConfig |
servletConfig
The servlet configuration for pluto |
| Fields inherited from class org.apache.cocoon.portal.coplet.adapter.impl.AbstractCopletAdapter |
|---|
manager |
| Fields inherited from interface org.apache.cocoon.portal.PortalManagerAspect |
|---|
ROLE |
| Fields inherited from interface org.apache.cocoon.portal.coplet.adapter.CopletAdapter |
|---|
ROLE |
| Constructor Summary | |
|---|---|
PortletAdapter()
|
|
| Method Summary | |
|---|---|
void |
contextualize(Context context)
|
void |
dispose()
|
org.apache.pluto.PortletContainer |
getPortletContainer()
Return the portlet container |
org.apache.pluto.services.PortletContainerEnvironment |
getPortletContainerEnvironment()
Return the portlet container environment |
protected String |
getResponse(CopletInstanceData instance,
HttpServletResponse response)
|
void |
inform(PortletURLProviderImpl event,
PortalService service)
|
void |
initContainer()
Initialize the container |
void |
initialize()
|
void |
login(CopletInstanceData coplet)
User logs in to a coplet This method is invoked when a user logs in for each coplet instance of the user |
void |
logout(CopletInstanceData coplet)
User logs out from a coplet This method is invoked when a user logs out for each coplet instance of this user. |
void |
prepare(PortalManagerAspectPrepareContext aspectContext,
PortalService service)
|
void |
render(PortalManagerAspectRenderContext aspectContext,
PortalService service,
ContentHandler ch,
Parameters parameters)
|
void |
service(ServiceManager manager)
|
void |
streamContent(CopletInstanceData coplet,
ContentHandler contentHandler)
Implement this and not toSAX() |
| Methods inherited from class org.apache.cocoon.portal.coplet.adapter.impl.AbstractCopletAdapter |
|---|
destroy, getConfiguration, getConfiguration, init, renderErrorContent, toSAX |
| Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
|---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Context context
protected ServletConfig servletConfig
protected org.apache.pluto.PortletContainer portletContainer
protected PortletContainerEnvironmentImpl portletContainerEnvironment
| Constructor Detail |
|---|
public PortletAdapter()
| Method Detail |
|---|
public void contextualize(Context context)
throws ContextException
contextualize in interface ContextualizableContextExceptionContextualizable.contextualize(org.apache.avalon.framework.context.Context)public void login(CopletInstanceData coplet)
CopletAdapter
login in interface CopletAdapterlogin in class AbstractCopletAdapterCopletAdapter.login(org.apache.cocoon.portal.coplet.CopletInstanceData)
public void streamContent(CopletInstanceData coplet,
ContentHandler contentHandler)
throws SAXException
AbstractCopletAdapter
streamContent in class AbstractCopletAdapterSAXExceptionAbstractCopletAdapter.streamContent(org.apache.cocoon.portal.coplet.CopletInstanceData, org.xml.sax.ContentHandler)public void logout(CopletInstanceData coplet)
CopletAdapter
logout in interface CopletAdapterlogout in class AbstractCopletAdapterCopletAdapter.logout(org.apache.cocoon.portal.coplet.CopletInstanceData)
public void service(ServiceManager manager)
throws ServiceException
service in interface Serviceableservice in class AbstractCopletAdapterServiceExceptionServiceable.service(org.apache.avalon.framework.service.ServiceManager)public void dispose()
dispose in interface DisposableDisposable.dispose()
public void initialize()
throws Exception
initialize in interface InitializableExceptionInitializable.initialize()public org.apache.pluto.PortletContainer getPortletContainer()
public org.apache.pluto.services.PortletContainerEnvironment getPortletContainerEnvironment()
public void initContainer()
throws Exception
Exception
public void inform(PortletURLProviderImpl event,
PortalService service)
Receiver
public void prepare(PortalManagerAspectPrepareContext aspectContext,
PortalService service)
throws ProcessingException
prepare in interface PortalManagerAspectProcessingExceptionPortalManagerAspect.prepare(org.apache.cocoon.portal.PortalManagerAspectPrepareContext, org.apache.cocoon.portal.PortalService)
public void render(PortalManagerAspectRenderContext aspectContext,
PortalService service,
ContentHandler ch,
Parameters parameters)
throws SAXException
render in interface PortalManagerAspectSAXExceptionPortalManagerAspect.render(org.apache.cocoon.portal.PortalManagerAspectRenderContext, org.apache.cocoon.portal.PortalService, org.xml.sax.ContentHandler, org.apache.avalon.framework.parameters.Parameters)
protected String getResponse(CopletInstanceData instance,
HttpServletResponse response)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||