This class identifies an HTTP over TCP server
The server must be initialized iether by the HTTPServer#open(InetAddress, int)
or the HTTPServer#open(String, int)
method.
Optionally a set of HTTPRequestListener
may be set
The server then can be started or stopped by the method HTTPServer#start()
and HTTPServer#stop()
- Author
- Satoshi "skonno" Konno
-
Stefano "Kismet" Lenzi
- Version
- 1.8
◆ HTTPServer()
org.cybergarage.http.HTTPServer.HTTPServer |
( |
| ) |
|
|
inline |
◆ accept()
Socket org.cybergarage.http.HTTPServer.accept |
( |
| ) |
|
|
inline |
◆ addRequestListener()
◆ close()
boolean org.cybergarage.http.HTTPServer.close |
( |
| ) |
|
|
inline |
◆ getBindAddress()
String org.cybergarage.http.HTTPServer.getBindAddress |
( |
| ) |
|
|
inline |
◆ getBindPort()
int org.cybergarage.http.HTTPServer.getBindPort |
( |
| ) |
|
|
inline |
◆ getName()
static String org.cybergarage.http.HTTPServer.getName |
( |
| ) |
|
|
inlinestatic |
◆ getServerSock()
ServerSocket org.cybergarage.http.HTTPServer.getServerSock |
( |
| ) |
|
|
inline |
◆ getTimeout()
synchronized int org.cybergarage.http.HTTPServer.getTimeout |
( |
| ) |
|
|
inline |
Get the current socket timeout
- Since
- 1.8
◆ isOpened()
boolean org.cybergarage.http.HTTPServer.isOpened |
( |
| ) |
|
|
inline |
◆ open() [1/2]
boolean org.cybergarage.http.HTTPServer.open |
( |
InetAddress | addr, |
|
|
int | port ) |
|
inline |
◆ open() [2/2]
boolean org.cybergarage.http.HTTPServer.open |
( |
String | addr, |
|
|
int | port ) |
|
inline |
◆ performRequestListener()
void org.cybergarage.http.HTTPServer.performRequestListener |
( |
HTTPRequest | httpReq | ) |
|
|
inline |
◆ removeRequestListener()
◆ run()
void org.cybergarage.http.HTTPServer.run |
( |
| ) |
|
|
inline |
◆ setTimeout()
synchronized void org.cybergarage.http.HTTPServer.setTimeout |
( |
int | timeout | ) |
|
|
inline |
Set the current socket timeout
- Parameters
-
- Since
- 1.8
◆ start()
boolean org.cybergarage.http.HTTPServer.start |
( |
| ) |
|
|
inline |
◆ stop()
boolean org.cybergarage.http.HTTPServer.stop |
( |
| ) |
|
|
inline |
◆ bindAddr
InetAddress org.cybergarage.http.HTTPServer.bindAddr = null |
|
private |
◆ bindPort
int org.cybergarage.http.HTTPServer.bindPort = 0 |
|
private |
◆ DEFAULT_PORT
final int org.cybergarage.http.HTTPServer.DEFAULT_PORT = 80 |
|
static |
◆ DEFAULT_TIMEOUT
final int org.cybergarage.http.HTTPServer.DEFAULT_TIMEOUT = DEFAULT_PORT * 1000 |
|
static |
Default timeout connection for HTTP comunication
- Since
- 1.8
◆ httpRequestListenerList
◆ httpServerThread
Thread org.cybergarage.http.HTTPServer.httpServerThread = null |
|
private |
◆ NAME
final String org.cybergarage.http.HTTPServer.NAME = "CyberHTTP" |
|
static |
◆ serverSock
ServerSocket org.cybergarage.http.HTTPServer.serverSock = null |
|
private |
◆ timeout
Store the current TCP timeout value The variable should be accessed by getter and setter metho
◆ VERSION
final String org.cybergarage.http.HTTPServer.VERSION = "1.0" |
|
static |
The documentation for this class was generated from the following file: