Definition at line 85 of file Serve.java.
Public Member Functions | |
Serve (Hashtable arguments, PrintStream logStream) | |
Constructor. | |
void | addServlet (String urlPat, String className) |
Register a Servlet by class name. Registration consists of a URL. | |
void | addServlet (String urlPat, Servlet servlet) |
Register a Servlet. Registration consists of a URL pattern,. | |
void | addDefaultServlets (String cgi) |
Register a standard set of Servlets. These will return. | |
void | addDefaultServlets (String cgi, String throttles) throws IOException |
Register a standard set of Servlets, with throttles. | |
Servlet | getServlet (String name) |
Gets a servlet by name. | |
Enumeration | getServlets () |
Enumerates the servlets in this context (server). Only servlets that. | |
Enumeration | getServletNames () |
Enumerates the names of the servlets in this context (server). Only. | |
void | destroyAllServlets () |
Destroys all currently-loaded servlets. | |
void | log (String message) |
Write information to the servlet log. | |
void | log (Exception exception, String message) |
Write a stack trace to the servlet log. | |
String | getRealPath (String path) |
Applies alias rules to the specified virtual path and returns the. | |
String | getMimeType (String file) |
Returns the MIME type of the specified file. | |
String | getServerInfo () |
Returns the name and version of the web server under which the servlet. | |
Object | getAttribute (String name) |
Returns the value of the named attribute of the network service, or. | |
java.util.Set | getResourcePaths (java.lang.String path) |
Returns a directory-like listing of all the paths to resources within the web application whose longest sub-path matches the supplied path argument. | |
java.lang.String | getServletContextName () |
Returns the name of this web application correponding to this ServletContext as specified in the deployment descriptor for this web application by the display-name element. | |
Static Public Member Functions | |
static void | main (String[] args) |
Main routine, if you want to run this directly as an application. | |
Classes | |
class | Identification |
interface | SocketFactory |
java.util.Set Acme.Serve.Serve.getResourcePaths | ( | java.lang.String | path | ) |
Returns a directory-like listing of all the paths to resources within the web application whose longest sub-path matches the supplied path argument.
Paths indicating subdirectory paths end with a '/'. The returned paths are all relative to the root of the web application and have a leading '/'. For example, for a web application containing
/welcome.html
/catalog/index.html
/catalog/products.html
/catalog/offers/books.html
/catalog/offers/music.html
/customer/login.jsp
/WEB-INF/web.xml
/WEB-INF/classes/com.acme.OrderServlet.class,
getResourcePaths("/") returns {"/welcome.html", "/catalog/", "/customer/", "/WEB-INF/"}
getResourcePaths("/catalog/") returns {"/catalog/index.html", "/catalog/products.html", "/catalog/offers/"}.
the | - partial path used to match the resources, which must start with a / |
Definition at line 882 of file Serve.java.
java.lang.String Acme.Serve.Serve.getServletContextName | ( | ) |
Returns the name of this web application correponding to this ServletContext as specified in the deployment descriptor for this web application by the display-name element.
Definition at line 893 of file Serve.java.