public class ServletContextAdapter extends Object implements javax.servlet.ServletContext
Constructor and Description |
---|
ServletContextAdapter(javax.servlet.ServletConfig config)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Object |
getAttribute(String string) |
Enumeration |
getAttributeNames() |
javax.servlet.ServletContext |
getContext(String string) |
String |
getContextPath() |
String |
getInitParameter(String string) |
Enumeration |
getInitParameterNames() |
int |
getMajorVersion() |
String |
getMimeType(String string) |
int |
getMinorVersion() |
javax.servlet.RequestDispatcher |
getNamedDispatcher(String string) |
String |
getRealPath(String string) |
javax.servlet.RequestDispatcher |
getRequestDispatcher(String string) |
URL |
getResource(String string) |
InputStream |
getResourceAsStream(String string) |
Set |
getResourcePaths(String string) |
String |
getServerInfo() |
javax.servlet.Servlet |
getServlet(String string) |
String |
getServletContextName() |
Enumeration |
getServletNames() |
Enumeration |
getServlets() |
void |
log(Exception exception,
String string) |
void |
log(String string) |
void |
log(String string,
Throwable throwable) |
void |
removeAttribute(String string) |
void |
setAttribute(String string,
Object object) |
public ServletContextAdapter(javax.servlet.ServletConfig config)
config
- The servlet configuration object.public javax.servlet.ServletContext getContext(String string)
getContext
in interface javax.servlet.ServletContext
public int getMajorVersion()
getMajorVersion
in interface javax.servlet.ServletContext
public int getMinorVersion()
getMinorVersion
in interface javax.servlet.ServletContext
public String getMimeType(String string)
getMimeType
in interface javax.servlet.ServletContext
public Set getResourcePaths(String string)
getResourcePaths
in interface javax.servlet.ServletContext
public URL getResource(String string) throws MalformedURLException
getResource
in interface javax.servlet.ServletContext
MalformedURLException
public InputStream getResourceAsStream(String string)
getResourceAsStream
in interface javax.servlet.ServletContext
public javax.servlet.RequestDispatcher getRequestDispatcher(String string)
getRequestDispatcher
in interface javax.servlet.ServletContext
public javax.servlet.RequestDispatcher getNamedDispatcher(String string)
getNamedDispatcher
in interface javax.servlet.ServletContext
public javax.servlet.Servlet getServlet(String string) throws javax.servlet.ServletException
getServlet
in interface javax.servlet.ServletContext
javax.servlet.ServletException
public Enumeration getServlets()
getServlets
in interface javax.servlet.ServletContext
public Enumeration getServletNames()
getServletNames
in interface javax.servlet.ServletContext
public void log(String string)
log
in interface javax.servlet.ServletContext
public void log(Exception exception, String string)
log
in interface javax.servlet.ServletContext
public void log(String string, Throwable throwable)
log
in interface javax.servlet.ServletContext
public String getRealPath(String string)
getRealPath
in interface javax.servlet.ServletContext
public String getServerInfo()
getServerInfo
in interface javax.servlet.ServletContext
public String getInitParameter(String string)
getInitParameter
in interface javax.servlet.ServletContext
public Enumeration getInitParameterNames()
getInitParameterNames
in interface javax.servlet.ServletContext
public Object getAttribute(String string)
getAttribute
in interface javax.servlet.ServletContext
public Enumeration getAttributeNames()
getAttributeNames
in interface javax.servlet.ServletContext
public void setAttribute(String string, Object object)
setAttribute
in interface javax.servlet.ServletContext
public void removeAttribute(String string)
removeAttribute
in interface javax.servlet.ServletContext
public String getServletContextName()
getServletContextName
in interface javax.servlet.ServletContext
public String getContextPath()
getContextPath
in interface javax.servlet.ServletContext
Copyright © 2001-2017 The Apache Software Foundation. All Rights Reserved.