org.openmobileis.embedded.webserver.WebServer Class Reference

List of all members.

Detailed Description

Definition at line 63 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


Member Function Documentation

java.lang.String org.openmobileis.embedded.webserver.WebServer.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.

Returns:
The name of the web application or null if no name has been declared in the deployment descriptor.
Since:
Servlet 2.3

Definition at line 613 of file WebServer.java.


The documentation for this class was generated from the following file:
Generated on Mon Dec 4 11:03:38 2006 for OpenMobileIS by  doxygen 1.5.1-p1