Liferay 6.0.5

com.liferay.portlet
Class PortletContextImpl

java.lang.Object
  extended by com.liferay.portlet.PortletContextImpl
All Implemented Interfaces:
PortletContext

public class PortletContextImpl
extends Object
implements PortletContext


Constructor Summary
PortletContextImpl(Portlet portlet, javax.servlet.ServletContext servletContext)
           
 
Method Summary
 Object getAttribute(String name)
           
 Enumeration<String> getAttributeNames()
           
 Enumeration<String> getContainerRuntimeOptions()
           
 String getInitParameter(String name)
           
 Enumeration<String> getInitParameterNames()
           
 int getMajorVersion()
           
 String getMimeType(String file)
           
 int getMinorVersion()
           
 PortletRequestDispatcher getNamedDispatcher(String name)
           
 Portlet getPortlet()
           
 String getPortletContextName()
           
 String getRealPath(String path)
           
 PortletRequestDispatcher getRequestDispatcher(String path)
           
 URL getResource(String path)
           
 InputStream getResourceAsStream(String path)
           
 Set<String> getResourcePaths(String path)
           
 String getServerInfo()
           
 javax.servlet.ServletContext getServletContext()
           
 boolean isWARFile()
           
 void log(String msg)
           
 void log(String msg, Throwable throwable)
           
 void removeAttribute(String name)
           
 void setAttribute(String name, Object obj)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortletContextImpl

public PortletContextImpl(Portlet portlet,
                          javax.servlet.ServletContext servletContext)
Method Detail

getAttribute

public Object getAttribute(String name)
Specified by:
getAttribute in interface PortletContext

getAttributeNames

public Enumeration<String> getAttributeNames()
Specified by:
getAttributeNames in interface PortletContext

getContainerRuntimeOptions

public Enumeration<String> getContainerRuntimeOptions()
Specified by:
getContainerRuntimeOptions in interface PortletContext

getInitParameter

public String getInitParameter(String name)
Specified by:
getInitParameter in interface PortletContext

getInitParameterNames

public Enumeration<String> getInitParameterNames()
Specified by:
getInitParameterNames in interface PortletContext

getMajorVersion

public int getMajorVersion()
Specified by:
getMajorVersion in interface PortletContext

getMimeType

public String getMimeType(String file)
Specified by:
getMimeType in interface PortletContext

getMinorVersion

public int getMinorVersion()
Specified by:
getMinorVersion in interface PortletContext

getNamedDispatcher

public PortletRequestDispatcher getNamedDispatcher(String name)
Specified by:
getNamedDispatcher in interface PortletContext

getPortlet

public Portlet getPortlet()

getPortletContextName

public String getPortletContextName()
Specified by:
getPortletContextName in interface PortletContext

getRealPath

public String getRealPath(String path)
Specified by:
getRealPath in interface PortletContext

getRequestDispatcher

public PortletRequestDispatcher getRequestDispatcher(String path)
Specified by:
getRequestDispatcher in interface PortletContext

getResource

public URL getResource(String path)
                throws MalformedURLException
Specified by:
getResource in interface PortletContext
Throws:
MalformedURLException

getResourceAsStream

public InputStream getResourceAsStream(String path)
Specified by:
getResourceAsStream in interface PortletContext

getResourcePaths

public Set<String> getResourcePaths(String path)
Specified by:
getResourcePaths in interface PortletContext

getServerInfo

public String getServerInfo()
Specified by:
getServerInfo in interface PortletContext

getServletContext

public javax.servlet.ServletContext getServletContext()

isWARFile

public boolean isWARFile()

log

public void log(String msg)
Specified by:
log in interface PortletContext

log

public void log(String msg,
                Throwable throwable)
Specified by:
log in interface PortletContext

removeAttribute

public void removeAttribute(String name)
Specified by:
removeAttribute in interface PortletContext

setAttribute

public void setAttribute(String name,
                         Object obj)
Specified by:
setAttribute in interface PortletContext

Liferay 6.0.5