Class PortletContextImpl
- java.lang.Object
-
- org.gatein.pc.portlet.impl.jsr168.api.PortletContextImpl
-
- All Implemented Interfaces:
javax.portlet.PortletContext
public class PortletContextImpl extends Object implements javax.portlet.PortletContext
- Version:
- $Revision: 6713 $
- Author:
- Julien Viet
-
-
Constructor Summary
Constructors Constructor Description PortletContextImpl(javax.servlet.ServletContext servletContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetAttribute(String s)Enumeration<String>getAttributeNames()Enumeration<String>getContainerRuntimeOptions()StringgetInitParameter(String s)Enumeration<String>getInitParameterNames()intgetMajorVersion()StringgetMimeType(String s)intgetMinorVersion()javax.portlet.PortletRequestDispatchergetNamedDispatcher(String name)StringgetPortletContextName()StringgetRealPath(String s)javax.portlet.PortletRequestDispatchergetRequestDispatcher(String path)URLgetResource(String s)InputStreamgetResourceAsStream(String s)Set<String>getResourcePaths(String s)StringgetServerInfo()voidlog(String s)voidlog(String s, Throwable throwable)voidremoveAttribute(String s)voidsetAttribute(String s, Object o)
-
-
-
Method Detail
-
getServerInfo
public String getServerInfo()
- Specified by:
getServerInfoin interfacejavax.portlet.PortletContext
-
getRequestDispatcher
public javax.portlet.PortletRequestDispatcher getRequestDispatcher(String path)
- Specified by:
getRequestDispatcherin interfacejavax.portlet.PortletContext
-
getNamedDispatcher
public javax.portlet.PortletRequestDispatcher getNamedDispatcher(String name)
- Specified by:
getNamedDispatcherin interfacejavax.portlet.PortletContext
-
getResourceAsStream
public InputStream getResourceAsStream(String s)
- Specified by:
getResourceAsStreamin interfacejavax.portlet.PortletContext
-
getMajorVersion
public int getMajorVersion()
- Specified by:
getMajorVersionin interfacejavax.portlet.PortletContext
-
getMinorVersion
public int getMinorVersion()
- Specified by:
getMinorVersionin interfacejavax.portlet.PortletContext
-
getMimeType
public String getMimeType(String s)
- Specified by:
getMimeTypein interfacejavax.portlet.PortletContext
-
getRealPath
public String getRealPath(String s)
- Specified by:
getRealPathin interfacejavax.portlet.PortletContext
-
getResourcePaths
public Set<String> getResourcePaths(String s)
- Specified by:
getResourcePathsin interfacejavax.portlet.PortletContext
-
getResource
public URL getResource(String s) throws MalformedURLException
- Specified by:
getResourcein interfacejavax.portlet.PortletContext- Throws:
MalformedURLException
-
getAttribute
public Object getAttribute(String s)
- Specified by:
getAttributein interfacejavax.portlet.PortletContext
-
getAttributeNames
public Enumeration<String> getAttributeNames()
- Specified by:
getAttributeNamesin interfacejavax.portlet.PortletContext
-
getInitParameter
public String getInitParameter(String s)
- Specified by:
getInitParameterin interfacejavax.portlet.PortletContext
-
getInitParameterNames
public Enumeration<String> getInitParameterNames()
- Specified by:
getInitParameterNamesin interfacejavax.portlet.PortletContext
-
log
public void log(String s)
- Specified by:
login interfacejavax.portlet.PortletContext
-
log
public void log(String s, Throwable throwable)
- Specified by:
login interfacejavax.portlet.PortletContext
-
removeAttribute
public void removeAttribute(String s)
- Specified by:
removeAttributein interfacejavax.portlet.PortletContext
-
setAttribute
public void setAttribute(String s, Object o)
- Specified by:
setAttributein interfacejavax.portlet.PortletContext
-
getPortletContextName
public String getPortletContextName()
- Specified by:
getPortletContextNamein interfacejavax.portlet.PortletContext
-
getContainerRuntimeOptions
public Enumeration<String> getContainerRuntimeOptions()
- Specified by:
getContainerRuntimeOptionsin interfacejavax.portlet.PortletContext
-
-