org.apache.cocoon.environment.portlet
Class PortletContext
java.lang.Object
org.apache.cocoon.environment.impl.AbstractContext
org.apache.cocoon.environment.portlet.PortletContext
- All Implemented Interfaces:
- Context
- public final class PortletContext
- extends AbstractContext
Implements the Context
interface
for the JSR-168 (Portlet) environment.
- Version:
- $Id: PortletContext.java 326051 2005-10-18 08:19:11Z cziegeler $
Constructor Summary |
PortletContext(javax.portlet.PortletContext context)
Constructs a PortletContext object from a PortletContext object |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PortletContext
public PortletContext(javax.portlet.PortletContext context)
- Constructs a PortletContext object from a PortletContext object
getAttribute
public Object getAttribute(String name)
setAttribute
public void setAttribute(String name,
Object value)
removeAttribute
public void removeAttribute(String name)
getAttributeNames
public Enumeration getAttributeNames()
getResource
public URL getResource(String path)
throws MalformedURLException
- Throws:
MalformedURLException
getResourceAsStream
public InputStream getResourceAsStream(String path)
getRealPath
public String getRealPath(String path)
getMimeType
public String getMimeType(String file)
getInitParameter
public String getInitParameter(String name)
getInitParameterNames
public Enumeration getInitParameterNames()
getMajorVersion
public int getMajorVersion()
getMinorVersion
public int getMinorVersion()
getPortletContextName
public String getPortletContextName()
getServerInfo
public String getServerInfo()
Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.