org.apache.xindice.server.services
Class HTTPServer
java.lang.Object
|
+--org.apache.xindice.util.SimpleConfigurable
|
+--org.apache.xindice.server.services.SocketServer
|
+--org.apache.xindice.server.services.HTTPServer
- All Implemented Interfaces:
- Configurable, KernelAccess, Named, java.lang.Runnable, Service
- public final class HTTPServer
- extends SocketServer
HTTPServer is as close to an HTTP/1.1 implementation as you can get
in a script-based web server. Except for localization functionality, nearly
every element of the HTTP/1.1 specification is supported.
TODO:
Optimization - translatePath could use a good beating
Optimization - Header Parsing could be sped up by removing generic
routines and using inline code instead.
Method Summary |
java.lang.String |
getProtocol()
|
int |
initialize()
initialize will initialize the Service based on its current
configuration. |
void |
run()
|
void |
setConfig(Configuration config)
setConfig sets the configuration information for the Configurable
object instance. |
Methods inherited from class org.apache.xindice.server.services.SocketServer |
getHostname, getName, getPort, resume, setKernel, start, status, statusMessage, stop, suspend, uninitialize |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HTTPServer
public HTTPServer()
setConfig
public void setConfig(Configuration config)
throws XindiceException
- Description copied from interface:
Configurable
- setConfig sets the configuration information for the Configurable
object instance.
- Overrides:
setConfig
in class SocketServer
- Following copied from interface:
org.apache.xindice.util.Configurable
- Parameters:
config
- The configuration Node
getProtocol
public java.lang.String getProtocol()
- Overrides:
getProtocol
in class SocketServer
initialize
public int initialize()
- Description copied from interface:
Service
- initialize will initialize the Service based on its current
configuration. RESULT_INVALID will be returned if the Service's
configuration is invalid.
- Overrides:
initialize
in class SocketServer
- Following copied from interface:
org.apache.xindice.server.Service
- Returns:
- The initialization status
run
public void run()
- Overrides:
run
in class SocketServer
Copyright (c) 1999-2001 The Apache Software Foundation