|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mortbay.jetty.handler.ContextHandler.SContext
org.mortbay.jetty.servlet.Context.SContext
public class Context.SContext
| Constructor Summary | |
|---|---|
Context.SContext()
|
|
| Method Summary | |
|---|---|
RequestDispatcher |
getNamedDispatcher(java.lang.String name)
Returns a RequestDispatcher object that acts
as a wrapper for the named servlet. |
RequestDispatcher |
getRequestDispatcher(java.lang.String uriInContext)
Returns a RequestDispatcher object that acts
as a wrapper for the resource located at the given path. |
| Methods inherited from class org.mortbay.jetty.handler.ContextHandler.SContext |
|---|
getAttribute, getAttributeNames, getContext, getContextHandler, getContextPath, getInitParameter, getInitParameterNames, getMajorVersion, getMimeType, getMinorVersion, getRealPath, getResource, getResourceAsStream, getResourcePaths, getServerInfo, getServlet, getServletContextName, getServletNames, getServlets, log, log, log, removeAttribute, setAttribute, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Context.SContext()
| Method Detail |
|---|
public RequestDispatcher getNamedDispatcher(java.lang.String name)
ServletContextRequestDispatcher object that acts
as a wrapper for the named servlet.
Servlets (and JSP pages also) may be given names via server
administration or via a web application deployment descriptor.
A servlet instance can determine its name using
ServletConfig.getServletName().
This method returns null if the
ServletContext
cannot return a RequestDispatcher for any reason.
getNamedDispatcher in interface ServletContextgetNamedDispatcher in class ContextHandler.SContextname - a String specifying the name
of a servlet to wrap
RequestDispatcher object
that acts as a wrapper for the named servlet,
or null if the ServletContext
cannot return a RequestDispatcherRequestDispatcher,
ServletContext.getContext(java.lang.String),
ServletConfig.getServletName()public RequestDispatcher getRequestDispatcher(java.lang.String uriInContext)
ServletContextRequestDispatcher object that acts
as a wrapper for the resource located at the given path.
A RequestDispatcher object can be used to forward
a request to the resource or to include the resource in a response.
The resource can be dynamic or static.
The pathname must begin with a "/" and is interpreted as relative
to the current context root. Use getContext to obtain
a RequestDispatcher for resources in foreign contexts.
This method returns null if the ServletContext
cannot return a RequestDispatcher.
getRequestDispatcher in interface ServletContextgetRequestDispatcher in class ContextHandler.SContexturiInContext - a String specifying the pathname
to the resource
RequestDispatcher object
that acts as a wrapper for the resource
at the specified path, or null if
the ServletContext cannot return
a RequestDispatcherRequestDispatcher,
ServletContext.getContext(java.lang.String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||