Definition at line 62 of file WebServer.java.
Public Member Functions | |
WebServer () | |
Constructors. | |
WebServer (String pathToConfFile) | |
void | addServlet (String urlPat, String className) |
Register a Servlet by class name. Registration consists of a URL. | |
void | addServlet (String urlPat, String className, Hashtable initParams) |
void | addServlet (String urlPat, Servlet servlet) |
Register a Servlet. Registration consists of a URL pattern,. | |
void | addServlet (String urlPat, Servlet servlet, Hashtable initParams) |
Object[] | getServletByURLorClassName (String name) |
void | serve () throws IOException |
void | destroyAllServlets () |
Destroys all currently-loaded servlets. | |
void | freeResources () throws Exception |
Object | getAttribute (String name) |
Returns the value of the named attribute of the network service, or. | |
Enumeration | getAttributeNames () |
ServletContext | getContext (String uripath) |
String | getInitParameter (String param) |
Enumeration | getInitParameterNames () |
int | getMajorVersion () |
String | getMimeType (String file) |
Returns the MIME type of the specified file. | |
int | getMinorVersion () |
RequestDispatcher | getNamedDispatcher (String name) |
String | getRealPath (String path) |
RequestDispatcher | getRequestDispatcher (String path) |
URL | getResource (String path) throws MalformedURLException |
InputStream | getResourceAsStream (String path) |
java.util.Set | getResourcePaths (java.lang.String path) |
String | getServerInfo () |
Returns the name and version of the web server under which the servlet. | |
Servlet | getServlet (String name) |
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. | |
Enumeration | getServletNames () |
Enumerates the names of the servlets in this context (server). Only. | |
Enumeration | getServlets () |
void | log (Exception exception, String msg) |
void | log (String msg) |
void | log (String message, Throwable throwable) |
void | removeAttribute (String name) |
void | setAttribute (String name, Object object) |
void | forward (ServletRequest request, ServletResponse response) |
void | include (ServletRequest request, ServletResponse response) |
Static Public Attributes | |
static String | servletFile = "" |
static String | installPath = "" |
Protected Attributes | |
PathTreeDictionary | registry |
String | hostName |
int | port = DEFAULT_PORT |
Package Attributes | |
boolean | running = true |
|
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 595 of file WebServer.java. |