org.apache.jetspeed.container
Class JetspeedPortletContext
java.lang.Object
org.apache.jetspeed.container.JetspeedPortletContext
- All Implemented Interfaces:
- javax.portlet.PortletContext, InternalPortletContext
public class JetspeedPortletContext
- extends java.lang.Object
- implements javax.portlet.PortletContext, InternalPortletContext
Implements the Portlet API Portlet Context class
TODO: on LOCAL apps, we need to merge in web.xml props. See PLT 10.3
- Version:
- $Id: JetspeedPortletContext.java 516448 2007-03-09 16:25:47Z ate $
- Author:
- David Sean Taylor
Field Summary |
static java.lang.String |
LOCAL_PA_ROOT
The path to the Local Portlet Apps directory |
Constructor Summary |
JetspeedPortletContext(javax.servlet.ServletContext servletContext,
org.apache.pluto.om.portlet.PortletApplicationDefinition application)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOCAL_PA_ROOT
public static final java.lang.String LOCAL_PA_ROOT
- The path to the Local Portlet Apps directory
- See Also:
- Constant Field Values
JetspeedPortletContext
public JetspeedPortletContext(javax.servlet.ServletContext servletContext,
org.apache.pluto.om.portlet.PortletApplicationDefinition application)
getMajorVersion
public int getMajorVersion()
- Specified by:
getMajorVersion
in interface javax.portlet.PortletContext
getMinorVersion
public int getMinorVersion()
- Specified by:
getMinorVersion
in interface javax.portlet.PortletContext
getResourcePaths
public java.util.Set getResourcePaths(java.lang.String path)
- Specified by:
getResourcePaths
in interface javax.portlet.PortletContext
getRequestDispatcher
public javax.portlet.PortletRequestDispatcher getRequestDispatcher(java.lang.String path)
- Specified by:
getRequestDispatcher
in interface javax.portlet.PortletContext
getNamedDispatcher
public javax.portlet.PortletRequestDispatcher getNamedDispatcher(java.lang.String name)
- Specified by:
getNamedDispatcher
in interface javax.portlet.PortletContext
getMimeType
public java.lang.String getMimeType(java.lang.String file)
- Specified by:
getMimeType
in interface javax.portlet.PortletContext
getResourceAsStream
public java.io.InputStream getResourceAsStream(java.lang.String path)
- Specified by:
getResourceAsStream
in interface javax.portlet.PortletContext
getAttribute
public java.lang.Object getAttribute(java.lang.String name)
- Specified by:
getAttribute
in interface javax.portlet.PortletContext
log
public void log(java.lang.String msg)
- Specified by:
log
in interface javax.portlet.PortletContext
log
public void log(java.lang.String message,
java.lang.Throwable throwable)
- Specified by:
log
in interface javax.portlet.PortletContext
getRealPath
public java.lang.String getRealPath(java.lang.String path)
- Specified by:
getRealPath
in interface javax.portlet.PortletContext
getResource
public java.net.URL getResource(java.lang.String path)
throws java.net.MalformedURLException
- Specified by:
getResource
in interface javax.portlet.PortletContext
- Throws:
java.net.MalformedURLException
getAttributeNames
public java.util.Enumeration getAttributeNames()
- Specified by:
getAttributeNames
in interface javax.portlet.PortletContext
getInitParameter
public java.lang.String getInitParameter(java.lang.String name)
- Specified by:
getInitParameter
in interface javax.portlet.PortletContext
getInitParameterNames
public java.util.Enumeration getInitParameterNames()
- Specified by:
getInitParameterNames
in interface javax.portlet.PortletContext
removeAttribute
public void removeAttribute(java.lang.String name)
- Specified by:
removeAttribute
in interface javax.portlet.PortletContext
setAttribute
public void setAttribute(java.lang.String name,
java.lang.Object object)
- Specified by:
setAttribute
in interface javax.portlet.PortletContext
getServerInfo
public java.lang.String getServerInfo()
- Specified by:
getServerInfo
in interface javax.portlet.PortletContext
getServletContext
public javax.servlet.ServletContext getServletContext()
- Specified by:
getServletContext
in interface InternalPortletContext
getApplication
public org.apache.pluto.om.portlet.PortletApplicationDefinition getApplication()
- Specified by:
getApplication
in interface InternalPortletContext
- See Also:
InternalPortletContext.getApplication()
getPortletContextName
public java.lang.String getPortletContextName()
- Specified by:
getPortletContextName
in interface javax.portlet.PortletContext
Copyright © 1999-2009 Apache Software Foundation. All Rights Reserved.