org.apache.cocoon.environment.portlet
Class PortletContext

java.lang.Object
  extended byorg.apache.cocoon.environment.impl.AbstractContext
      extended byorg.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
 
Method Summary
 Object getAttribute(String name)
           
 Enumeration getAttributeNames()
           
 String getInitParameter(String name)
           
 Enumeration getInitParameterNames()
           
 int getMajorVersion()
           
 String getMimeType(String file)
           
 int getMinorVersion()
           
 String getPortletContextName()
           
 String getRealPath(String path)
           
 URL getResource(String path)
           
 InputStream getResourceAsStream(String path)
           
 String getServerInfo()
           
 void removeAttribute(String name)
           
 void setAttribute(String name, Object value)
           
 
Methods inherited from class org.apache.cocoon.environment.impl.AbstractContext
getAttributes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortletContext

public PortletContext(javax.portlet.PortletContext context)
Constructs a PortletContext object from a PortletContext object

Method Detail

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.