public class PortletServletContext extends Object implements javax.servlet.ServletContext
PortletContext as a ServletContext instance.
Clients accessing this context object will in fact operate on the
PortletContext object wrapped by this context object.| Constructor and Description |
|---|
PortletServletContext(javax.portlet.PortletContext portletContext) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getAttribute(String name) |
Enumeration |
getAttributeNames() |
javax.servlet.ServletContext |
getContext(String uripath) |
String |
getInitParameter(String name) |
Enumeration |
getInitParameterNames() |
int |
getMajorVersion() |
String |
getMimeType(String file) |
int |
getMinorVersion() |
javax.servlet.RequestDispatcher |
getNamedDispatcher(String name)
Returns a
PortletServletRequestDispatcher wrapping the PortletRequestDispatcher
as a RequestDispatcher instance. |
javax.portlet.PortletContext |
getPortletContext()
Get the wrapped
PortletContext instance. |
String |
getRealPath(String path) |
javax.servlet.RequestDispatcher |
getRequestDispatcher(String path)
Returns a
PortletServletRequestDispatcher wrapping the PortletRequestDispatcher
as a RequestDispatcher instance. |
URL |
getResource(String path) |
InputStream |
getResourceAsStream(String path) |
Set |
getResourcePaths(String path) |
String |
getServerInfo() |
javax.servlet.Servlet |
getServlet(String name) |
String |
getServletContextName() |
Enumeration |
getServletNames() |
Enumeration |
getServlets() |
void |
log(Exception exception,
String msg) |
void |
log(String msg) |
void |
log(String message,
Throwable throwable) |
void |
removeAttribute(String name) |
void |
setAttribute(String name,
Object object) |
public PortletServletContext(javax.portlet.PortletContext portletContext)
public Object getAttribute(String name)
getAttribute in interface javax.servlet.ServletContextpublic Enumeration getAttributeNames()
getAttributeNames in interface javax.servlet.ServletContextpublic javax.servlet.ServletContext getContext(String uripath)
getContext in interface javax.servlet.ServletContextIllegalStateException - Not supported in a portlet.ServletContext.getContext(java.lang.String)public String getInitParameter(String name)
getInitParameter in interface javax.servlet.ServletContextpublic Enumeration getInitParameterNames()
getInitParameterNames in interface javax.servlet.ServletContextpublic int getMajorVersion()
getMajorVersion in interface javax.servlet.ServletContextpublic String getMimeType(String file)
getMimeType in interface javax.servlet.ServletContextpublic int getMinorVersion()
getMinorVersion in interface javax.servlet.ServletContextpublic javax.servlet.RequestDispatcher getNamedDispatcher(String name)
PortletServletRequestDispatcher wrapping the PortletRequestDispatcher
as a RequestDispatcher instance.getNamedDispatcher in interface javax.servlet.ServletContextServletContext.getNamedDispatcher(java.lang.String)public String getRealPath(String path)
getRealPath in interface javax.servlet.ServletContextpublic javax.servlet.RequestDispatcher getRequestDispatcher(String path)
PortletServletRequestDispatcher wrapping the PortletRequestDispatcher
as a RequestDispatcher instance.getRequestDispatcher in interface javax.servlet.ServletContextServletContext.getNamedDispatcher(java.lang.String)public URL getResource(String path) throws MalformedURLException
getResource in interface javax.servlet.ServletContextMalformedURLExceptionpublic InputStream getResourceAsStream(String path)
getResourceAsStream in interface javax.servlet.ServletContextpublic Set getResourcePaths(String path)
getResourcePaths in interface javax.servlet.ServletContextpublic String getServerInfo()
getServerInfo in interface javax.servlet.ServletContextpublic javax.servlet.Servlet getServlet(String name) throws javax.servlet.ServletException
getServlet in interface javax.servlet.ServletContextIllegalStateException - Not supported in a portlet.javax.servlet.ServletExceptionServletContext.getServlet(java.lang.String)public String getServletContextName()
getServletContextName in interface javax.servlet.ServletContextpublic Enumeration getServletNames()
getServletNames in interface javax.servlet.ServletContextIllegalStateException - Not supported in a portlet.ServletContext.getServletNames()public Enumeration getServlets()
getServlets in interface javax.servlet.ServletContextIllegalStateException - Not supported in a portlet.ServletContext.getServlets()public void log(String msg)
log in interface javax.servlet.ServletContextpublic void log(Exception exception, String msg)
log in interface javax.servlet.ServletContextpublic void log(String message, Throwable throwable)
log in interface javax.servlet.ServletContextpublic void removeAttribute(String name)
removeAttribute in interface javax.servlet.ServletContextpublic void setAttribute(String name, Object object)
setAttribute in interface javax.servlet.ServletContextpublic javax.portlet.PortletContext getPortletContext()
PortletContext instance.PortletContext instance.Copyright © 2000–2019 Apache Software Foundation. All rights reserved.