public class PortletContextImpl
extends Object
implements com.liferay.portal.kernel.portlet.LiferayPortletContext
Constructor and Description |
---|
PortletContextImpl(com.liferay.portal.kernel.model.Portlet portlet,
javax.servlet.ServletContext servletContext) |
Modifier and Type | Method and Description |
---|---|
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) |
com.liferay.portal.kernel.model.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) |
public PortletContextImpl(com.liferay.portal.kernel.model.Portlet portlet, javax.servlet.ServletContext servletContext)
public Object getAttribute(String name)
getAttribute
in interface PortletContext
public Enumeration<String> getAttributeNames()
getAttributeNames
in interface PortletContext
public Enumeration<String> getContainerRuntimeOptions()
getContainerRuntimeOptions
in interface PortletContext
public String getInitParameter(String name)
getInitParameter
in interface PortletContext
public Enumeration<String> getInitParameterNames()
getInitParameterNames
in interface PortletContext
public int getMajorVersion()
getMajorVersion
in interface PortletContext
public String getMimeType(String file)
getMimeType
in interface PortletContext
public int getMinorVersion()
getMinorVersion
in interface PortletContext
public PortletRequestDispatcher getNamedDispatcher(String name)
getNamedDispatcher
in interface PortletContext
public com.liferay.portal.kernel.model.Portlet getPortlet()
getPortlet
in interface com.liferay.portal.kernel.portlet.LiferayPortletContext
public String getPortletContextName()
getPortletContextName
in interface PortletContext
public String getRealPath(String path)
getRealPath
in interface PortletContext
public PortletRequestDispatcher getRequestDispatcher(String path)
getRequestDispatcher
in interface PortletContext
public URL getResource(String path) throws MalformedURLException
getResource
in interface PortletContext
MalformedURLException
public InputStream getResourceAsStream(String path)
getResourceAsStream
in interface PortletContext
public Set<String> getResourcePaths(String path)
getResourcePaths
in interface PortletContext
public String getServerInfo()
getServerInfo
in interface PortletContext
public javax.servlet.ServletContext getServletContext()
getServletContext
in interface com.liferay.portal.kernel.portlet.LiferayPortletContext
public boolean isWARFile()
public void log(String msg)
log
in interface PortletContext
public void log(String msg, Throwable throwable)
log
in interface PortletContext
public void removeAttribute(String name)
removeAttribute
in interface PortletContext
public void setAttribute(String name, Object obj)
setAttribute
in interface PortletContext