org.apache.tapestry.portlet
Class PortletWebContext
java.lang.Object
org.apache.tapestry.portlet.PortletWebContext
- All Implemented Interfaces:
- org.apache.tapestry.web.AttributeHolder, org.apache.tapestry.describe.Describable, org.apache.tapestry.web.InitializationParameterHolder, org.apache.tapestry.web.WebContext
- public class PortletWebContext
- extends java.lang.Object
- implements org.apache.tapestry.web.WebContext
Adapts PortletContext
as WebContext
.
- Since:
- 4.0
- Author:
- Howard M. Lewis Ship
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PortletWebContext
public PortletWebContext(javax.portlet.PortletContext portletContext)
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
getRealPath
public java.lang.String getRealPath(java.lang.String path)
- Specified by:
getRealPath
in interface org.apache.tapestry.web.WebContext
getResourceAsStream
public java.io.InputStream getResourceAsStream(java.lang.String path)
- Specified by:
getResourceAsStream
in interface org.apache.tapestry.web.WebContext
getResourcePaths
public java.util.Set getResourcePaths(java.lang.String path)
- Specified by:
getResourcePaths
in interface org.apache.tapestry.web.WebContext