org.apache.tapestry.portlet
Class PortletWebContext

java.lang.Object
  extended by org.apache.tapestry.portlet.PortletWebContext
All Implemented Interfaces:
org.apache.tapestry.describe.Describable, org.apache.tapestry.web.AttributeHolder, org.apache.tapestry.web.InitializationParameterHolder, org.apache.tapestry.web.WebContext

public class PortletWebContext
extends java.lang.Object
implements org.apache.tapestry.web.WebContext

Adapts PortletContextas WebContext.

Since:
4.0
Author:
Howard M. Lewis Ship

Constructor Summary
PortletWebContext(javax.portlet.PortletContext portletContext)
           
 
Method Summary
 void describeTo(org.apache.tapestry.describe.DescriptionReceiver receiver)
           
 java.lang.Object getAttribute(java.lang.String name)
           
 java.util.List getAttributeNames()
           
 java.util.List getInitParameterNames()
           
 java.lang.String getInitParameterValue(java.lang.String name)
           
 java.lang.String getMimeType(java.lang.String resourcePath)
           
 java.net.URL getResource(java.lang.String path)
           
 void setAttribute(java.lang.String name, java.lang.Object attribute)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortletWebContext

public PortletWebContext(javax.portlet.PortletContext portletContext)
Method Detail

getResource

public java.net.URL getResource(java.lang.String path)
Specified by:
getResource in interface org.apache.tapestry.web.WebContext

getAttributeNames

public java.util.List getAttributeNames()
Specified by:
getAttributeNames in interface org.apache.tapestry.web.AttributeHolder

getAttribute

public java.lang.Object getAttribute(java.lang.String name)
Specified by:
getAttribute in interface org.apache.tapestry.web.AttributeHolder

setAttribute

public void setAttribute(java.lang.String name,
                         java.lang.Object attribute)
Specified by:
setAttribute in interface org.apache.tapestry.web.AttributeHolder

getInitParameterNames

public java.util.List getInitParameterNames()
Specified by:
getInitParameterNames in interface org.apache.tapestry.web.InitializationParameterHolder

getInitParameterValue

public java.lang.String getInitParameterValue(java.lang.String name)
Specified by:
getInitParameterValue in interface org.apache.tapestry.web.InitializationParameterHolder

getMimeType

public java.lang.String getMimeType(java.lang.String resourcePath)
Specified by:
getMimeType in interface org.apache.tapestry.web.WebContext

describeTo

public void describeTo(org.apache.tapestry.describe.DescriptionReceiver receiver)
Specified by:
describeTo in interface org.apache.tapestry.describe.Describable