Package com.liferay.portlet.test
Class MockLiferayPortletContext
Object
com.liferay.portlet.test.MockLiferayPortletContext
- All Implemented Interfaces:
com.liferay.portal.kernel.portlet.LiferayPortletContext,jakarta.portlet.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) intintgetInitParameter(String name) intgetMimeType(String path) intjakarta.portlet.PortletRequestDispatchergetNamedDispatcher(String name) com.liferay.portal.kernel.model.PortletgetRealPath(String path) jakarta.portlet.PortletRequestDispatchergetRequestDispatcher(String path) getResource(String path) getResourceAsStream(String path) getResourcePaths(String path) jakarta.servlet.ServletContextvoidvoidvoidremoveAttribute(String name) voidsetAttribute(String name, Object object)
-
Constructor Details
-
MockLiferayPortletContext
-
-
Method Details
-
getAttribute
- Specified by:
getAttributein interfacejakarta.portlet.PortletContext
-
getAttributeNames
- Specified by:
getAttributeNamesin interfacejakarta.portlet.PortletContext
-
getClassLoader
- Specified by:
getClassLoaderin interfacejakarta.portlet.PortletContext
-
getContainerRuntimeOptions
- Specified by:
getContainerRuntimeOptionsin interfacejakarta.portlet.PortletContext
-
getContextPath
- Specified by:
getContextPathin interfacejakarta.portlet.PortletContext
-
getEffectiveMajorVersion
public int getEffectiveMajorVersion()- Specified by:
getEffectiveMajorVersionin interfacejakarta.portlet.PortletContext
-
getEffectiveMinorVersion
public int getEffectiveMinorVersion()- Specified by:
getEffectiveMinorVersionin interfacejakarta.portlet.PortletContext
-
getInitParameter
- Specified by:
getInitParameterin interfacejakarta.portlet.PortletContext
-
getInitParameterNames
- Specified by:
getInitParameterNamesin interfacejakarta.portlet.PortletContext
-
getMajorVersion
public int getMajorVersion()- Specified by:
getMajorVersionin interfacejakarta.portlet.PortletContext
-
getMimeType
- Specified by:
getMimeTypein interfacejakarta.portlet.PortletContext
-
getMinorVersion
public int getMinorVersion()- Specified by:
getMinorVersionin interfacejakarta.portlet.PortletContext
-
getNamedDispatcher
- Specified by:
getNamedDispatcherin interfacejakarta.portlet.PortletContext
-
getPortlet
public com.liferay.portal.kernel.model.Portlet getPortlet()- Specified by:
getPortletin interfacecom.liferay.portal.kernel.portlet.LiferayPortletContext
-
getPortletContextName
- Specified by:
getPortletContextNamein interfacejakarta.portlet.PortletContext
-
getRealPath
- Specified by:
getRealPathin interfacejakarta.portlet.PortletContext
-
getRequestDispatcher
- Specified by:
getRequestDispatcherin interfacejakarta.portlet.PortletContext
-
getResource
- Specified by:
getResourcein interfacejakarta.portlet.PortletContext- Throws:
MalformedURLException
-
getResourceAsStream
- Specified by:
getResourceAsStreamin interfacejakarta.portlet.PortletContext
-
getResourcePaths
- Specified by:
getResourcePathsin interfacejakarta.portlet.PortletContext
-
getServerInfo
- Specified by:
getServerInfoin interfacejakarta.portlet.PortletContext
-
getServletContext
public jakarta.servlet.ServletContext getServletContext()- Specified by:
getServletContextin interfacecom.liferay.portal.kernel.portlet.LiferayPortletContext
-
log
- Specified by:
login interfacejakarta.portlet.PortletContext
-
log
- Specified by:
login interfacejakarta.portlet.PortletContext
-
removeAttribute
- Specified by:
removeAttributein interfacejakarta.portlet.PortletContext
-
setAttribute
- Specified by:
setAttributein interfacejakarta.portlet.PortletContext
-