|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 Contextualizable
ContextException
Contextualizable.contextualize(org.apache.avalon.framework.context.Context)
public void login(CopletInstanceData coplet)
CopletAdapter
login
in interface CopletAdapter
login
in class AbstractCopletAdapter
CopletAdapter.login(org.apache.cocoon.portal.coplet.CopletInstanceData)
public void streamContent(CopletInstanceData coplet, ContentHandler contentHandler) throws SAXException
AbstractCopletAdapter
streamContent
in class AbstractCopletAdapter
SAXException
AbstractCopletAdapter.streamContent(org.apache.cocoon.portal.coplet.CopletInstanceData, org.xml.sax.ContentHandler)
public void logout(CopletInstanceData coplet)
CopletAdapter
logout
in interface CopletAdapter
logout
in class AbstractCopletAdapter
CopletAdapter.logout(org.apache.cocoon.portal.coplet.CopletInstanceData)
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
service
in class AbstractCopletAdapter
ServiceException
Serviceable.service(org.apache.avalon.framework.service.ServiceManager)
public void dispose()
dispose
in interface Disposable
Disposable.dispose()
public void initialize() throws Exception
initialize
in interface Initializable
Exception
Initializable.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 PortalManagerAspect
ProcessingException
PortalManagerAspect.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 PortalManagerAspect
SAXException
PortalManagerAspect.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 |