org.cybergarage.http
Class HTTPServer
java.lang.Object
org.cybergarage.http.HTTPServer
- All Implemented Interfaces:
- java.lang.Runnable
public class HTTPServer
- extends java.lang.Object
- implements java.lang.Runnable
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
VERSION
public static final java.lang.String VERSION
- See Also:
- Constant Field Values
DEFAULT_PORT
public static final int DEFAULT_PORT
- See Also:
- Constant Field Values
HTTPServer
public HTTPServer()
getName
public static java.lang.String getName()
getServerSock
public java.net.ServerSocket getServerSock()
getBindAddress
public java.lang.String getBindAddress()
getBindPort
public int getBindPort()
open
public boolean open(java.lang.String addr,
int port)
close
public boolean close()
accept
public java.net.Socket accept()
isOpened
public boolean isOpened()
addRequestListener
public void addRequestListener(HTTPRequestListener listener)
removeRequestListener
public void removeRequestListener(HTTPRequestListener listener)
performRequestListener
public void performRequestListener(HTTPRequest httpReq)
run
public void run()
- Specified by:
run
in interface java.lang.Runnable
start
public boolean start()
stop
public boolean stop()