Package com.liferay.portlet.internal
Class PortletContextImpl
Object
com.liferay.portlet.internal.PortletContextImpl
- All Implemented Interfaces:
com.liferay.portal.kernel.portlet.LiferayPortletContext,PortletContext
public class PortletContextImpl
extends Object
implements com.liferay.portal.kernel.portlet.LiferayPortletContext
- Author:
- Brian Wing Shun Chan, Brett Randall, Neil Griffin
-
Constructor Summary
ConstructorsConstructorDescriptionPortletContextImpl(com.liferay.portal.kernel.model.Portlet portlet, javax.servlet.ServletContext servletContext) -
Method Summary
Modifier and TypeMethodDescriptiongetAttribute(String name) intintgetInitParameter(String name) intgetMimeType(String file) intgetNamedDispatcher(String name) com.liferay.portal.kernel.model.PortletgetRealPath(String path) getRequestDispatcher(String path) getResource(String path) getResourceAsStream(String path) getResourcePaths(String path) javax.servlet.ServletContextbooleanvoidvoidvoidremoveAttribute(String name) voidsetAttribute(String name, Object object)
-
Constructor Details
-
PortletContextImpl
public PortletContextImpl(com.liferay.portal.kernel.model.Portlet portlet, javax.servlet.ServletContext servletContext)
-
-
Method Details
-
getAttribute
- Specified by:
getAttributein interfacePortletContext
-
getAttributeNames
- Specified by:
getAttributeNamesin interfacePortletContext
-
getClassLoader
- Specified by:
getClassLoaderin interfacePortletContext
-
getContainerRuntimeOptions
- Specified by:
getContainerRuntimeOptionsin interfacePortletContext
-
getContextPath
- Specified by:
getContextPathin interfacePortletContext
-
getEffectiveMajorVersion
public int getEffectiveMajorVersion()- Specified by:
getEffectiveMajorVersionin interfacePortletContext
-
getEffectiveMinorVersion
public int getEffectiveMinorVersion()- Specified by:
getEffectiveMinorVersionin interfacePortletContext
-
getInitParameter
- Specified by:
getInitParameterin interfacePortletContext
-
getInitParameterNames
- Specified by:
getInitParameterNamesin interfacePortletContext
-
getMajorVersion
public int getMajorVersion()- Specified by:
getMajorVersionin interfacePortletContext
-
getMimeType
- Specified by:
getMimeTypein interfacePortletContext
-
getMinorVersion
public int getMinorVersion()- Specified by:
getMinorVersionin interfacePortletContext
-
getNamedDispatcher
- Specified by:
getNamedDispatcherin interfacePortletContext
-
getPortlet
public com.liferay.portal.kernel.model.Portlet getPortlet()- Specified by:
getPortletin interfacecom.liferay.portal.kernel.portlet.LiferayPortletContext
-
getPortletContextName
- Specified by:
getPortletContextNamein interfacePortletContext
-
getRealPath
- Specified by:
getRealPathin interfacePortletContext
-
getRequestDispatcher
- Specified by:
getRequestDispatcherin interfacePortletContext
-
getResource
- Specified by:
getResourcein interfacePortletContext- Throws:
MalformedURLException
-
getResourceAsStream
- Specified by:
getResourceAsStreamin interfacePortletContext
-
getResourcePaths
- Specified by:
getResourcePathsin interfacePortletContext
-
getServerInfo
- Specified by:
getServerInfoin interfacePortletContext
-
getServletContext
public javax.servlet.ServletContext getServletContext()- Specified by:
getServletContextin interfacecom.liferay.portal.kernel.portlet.LiferayPortletContext
-
isWARFile
public boolean isWARFile() -
log
- Specified by:
login interfacePortletContext
-
log
- Specified by:
login interfacePortletContext
-
removeAttribute
- Specified by:
removeAttributein interfacePortletContext
-
setAttribute
- Specified by:
setAttributein interfacePortletContext
-