|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectorg.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 |
getContextPath()
|
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 ServletContextpublic int getMajorVersion()
getMajorVersion in interface ServletContextpublic int getMinorVersion()
getMinorVersion in interface ServletContextpublic String getMimeType(String string)
getMimeType in interface ServletContextpublic Set getResourcePaths(String string)
getResourcePaths in interface ServletContext
public URL getResource(String string)
throws MalformedURLException
getResource in interface ServletContextMalformedURLExceptionpublic InputStream getResourceAsStream(String string)
getResourceAsStream in interface ServletContextpublic RequestDispatcher getRequestDispatcher(String string)
getRequestDispatcher in interface ServletContextpublic RequestDispatcher getNamedDispatcher(String string)
getNamedDispatcher in interface ServletContext
public Servlet getServlet(String string)
throws ServletException
getServlet in interface ServletContextServletExceptionpublic Enumeration getServlets()
getServlets in interface ServletContextpublic Enumeration getServletNames()
getServletNames in interface ServletContextpublic 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 ServletContextpublic String getRealPath(String string)
getRealPath in interface ServletContextpublic String getServerInfo()
getServerInfo in interface ServletContextpublic String getInitParameter(String string)
getInitParameter in interface ServletContextpublic Enumeration getInitParameterNames()
getInitParameterNames in interface ServletContextpublic Object getAttribute(String string)
getAttribute in interface ServletContextpublic Enumeration getAttributeNames()
getAttributeNames in interface ServletContext
public void setAttribute(String string,
Object object)
setAttribute in interface ServletContextpublic void removeAttribute(String string)
removeAttribute in interface ServletContextpublic String getServletContextName()
getServletContextName in interface ServletContextpublic String getContextPath()
getContextPath in interface ServletContext
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||