Package com.liferay.portlet.test
Class MockLiferayPortletContext
Object
com.liferay.portlet.test.MockLiferayPortletContext
- All Implemented Interfaces:
com.liferay.portal.kernel.portlet.LiferayPortletContext
,PortletContext
public class MockLiferayPortletContext
extends Object
implements com.liferay.portal.kernel.portlet.LiferayPortletContext
- Author:
- David Arques
- See Also:
-
PortletContextImpl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAttribute
(String name) int
int
getInitParameter
(String name) int
getMimeType
(String path) 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
void
void
void
removeAttribute
(String name) void
setAttribute
(String name, Object object)
-
Constructor Details
-
MockLiferayPortletContext
-
-
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
-
log
- Specified by:
log
in interfacePortletContext
-
log
- Specified by:
log
in interfacePortletContext
-
removeAttribute
- Specified by:
removeAttribute
in interfacePortletContext
-
setAttribute
- Specified by:
setAttribute
in interfacePortletContext
-