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) int
int
getInitParameter
(String name) int
getMimeType
(String file) int
getNamedDispatcher
(String name) com.liferay.portal.kernel.model.Portlet
getRealPath
(String path) getRequestDispatcher
(String path) getResource
(String path) getResourceAsStream
(String path) getResourcePaths
(String path) javax.servlet.ServletContext
boolean
void
void
void
removeAttribute
(String name) void
setAttribute
(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:
getAttribute
in interfacePortletContext
-
getAttributeNames
- Specified by:
getAttributeNames
in interfacePortletContext
-
getClassLoader
- Specified by:
getClassLoader
in interfacePortletContext
-
getContainerRuntimeOptions
- Specified by:
getContainerRuntimeOptions
in interfacePortletContext
-
getContextPath
- Specified by:
getContextPath
in interfacePortletContext
-
getEffectiveMajorVersion
public int getEffectiveMajorVersion()- Specified by:
getEffectiveMajorVersion
in interfacePortletContext
-
getEffectiveMinorVersion
public int getEffectiveMinorVersion()- Specified by:
getEffectiveMinorVersion
in interfacePortletContext
-
getInitParameter
- Specified by:
getInitParameter
in interfacePortletContext
-
getInitParameterNames
- Specified by:
getInitParameterNames
in interfacePortletContext
-
getMajorVersion
public int getMajorVersion()- Specified by:
getMajorVersion
in interfacePortletContext
-
getMimeType
- Specified by:
getMimeType
in interfacePortletContext
-
getMinorVersion
public int getMinorVersion()- Specified by:
getMinorVersion
in interfacePortletContext
-
getNamedDispatcher
- Specified by:
getNamedDispatcher
in interfacePortletContext
-
getPortlet
public com.liferay.portal.kernel.model.Portlet getPortlet()- Specified by:
getPortlet
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletContext
-
getPortletContextName
- Specified by:
getPortletContextName
in interfacePortletContext
-
getRealPath
- Specified by:
getRealPath
in interfacePortletContext
-
getRequestDispatcher
- Specified by:
getRequestDispatcher
in interfacePortletContext
-
getResource
- Specified by:
getResource
in interfacePortletContext
- Throws:
MalformedURLException
-
getResourceAsStream
- Specified by:
getResourceAsStream
in interfacePortletContext
-
getResourcePaths
- Specified by:
getResourcePaths
in interfacePortletContext
-
getServerInfo
- Specified by:
getServerInfo
in interfacePortletContext
-
getServletContext
public javax.servlet.ServletContext getServletContext()- Specified by:
getServletContext
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletContext
-
isWARFile
public boolean isWARFile() -
log
- Specified by:
log
in interfacePortletContext
-
log
- Specified by:
log
in interfacePortletContext
-
removeAttribute
- Specified by:
removeAttribute
in interfacePortletContext
-
setAttribute
- Specified by:
setAttribute
in interfacePortletContext
-