|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tiles.web.util.ServletContextAdapter
public class ServletContextAdapter
Adapts a servlet config and a servlet context to become a unique servlet context.
Constructor Summary | |
---|---|
ServletContextAdapter(ServletConfig config)
Constructor. |
Method Summary | |
---|---|
Object |
getAttribute(String string)
|
Enumeration |
getAttributeNames()
|
ServletContext |
getContext(String string)
|
String |
getInitParameter(String string)
|
Enumeration |
getInitParameterNames()
|
int |
getMajorVersion()
|
String |
getMimeType(String string)
|
int |
getMinorVersion()
|
RequestDispatcher |
getNamedDispatcher(String string)
|
String |
getRealPath(String string)
|
RequestDispatcher |
getRequestDispatcher(String string)
|
URL |
getResource(String string)
|
InputStream |
getResourceAsStream(String string)
|
Set |
getResourcePaths(String string)
|
String |
getServerInfo()
|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServletContextAdapter(ServletConfig config)
config
- The servlet configuration object.Method Detail |
---|
public ServletContext getContext(String string)
getContext
in interface ServletContext
public int getMajorVersion()
getMajorVersion
in interface ServletContext
public int getMinorVersion()
getMinorVersion
in interface ServletContext
public String getMimeType(String string)
getMimeType
in interface ServletContext
public Set getResourcePaths(String string)
getResourcePaths
in interface ServletContext
public URL getResource(String string) throws MalformedURLException
getResource
in interface ServletContext
MalformedURLException
public InputStream getResourceAsStream(String string)
getResourceAsStream
in interface ServletContext
public RequestDispatcher getRequestDispatcher(String string)
getRequestDispatcher
in interface ServletContext
public RequestDispatcher getNamedDispatcher(String string)
getNamedDispatcher
in interface ServletContext
public Servlet getServlet(String string) throws ServletException
getServlet
in interface ServletContext
ServletException
public Enumeration getServlets()
getServlets
in interface ServletContext
public Enumeration getServletNames()
getServletNames
in interface ServletContext
public void log(String string)
log
in interface ServletContext
public void log(Exception exception, String string)
log
in interface ServletContext
public void log(String string, Throwable throwable)
log
in interface ServletContext
public String getRealPath(String string)
getRealPath
in interface ServletContext
public String getServerInfo()
getServerInfo
in interface ServletContext
public String getInitParameter(String string)
getInitParameter
in interface ServletContext
public Enumeration getInitParameterNames()
getInitParameterNames
in interface ServletContext
public Object getAttribute(String string)
getAttribute
in interface ServletContext
public Enumeration getAttributeNames()
getAttributeNames
in interface ServletContext
public void setAttribute(String string, Object object)
setAttribute
in interface ServletContext
public void removeAttribute(String string)
removeAttribute
in interface ServletContext
public String getServletContextName()
getServletContextName
in interface ServletContext
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |