org.cybergarage.http
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_PORT |
static String |
NAME |
static String |
VERSION |
Constructor and Description |
---|
HTTPServer() |
Modifier and Type | Method and Description |
---|---|
Socket |
accept() |
void |
addRequestListener(HTTPRequestListener listener) |
boolean |
close() |
String |
getBindAddress() |
int |
getBindPort() |
static String |
getName() |
ServerSocket |
getServerSock() |
boolean |
isOpened() |
boolean |
open(String addr,
int port) |
void |
performRequestListener(HTTPRequest httpReq) |
void |
removeRequestListener(HTTPRequestListener listener) |
void |
run() |
boolean |
start() |
boolean |
stop() |
public static final String NAME
public static final String VERSION
public static final int DEFAULT_PORT
public static String getName()
public ServerSocket getServerSock()
public String getBindAddress()
public int getBindPort()
public boolean open(String addr, int port)
public boolean close()
public Socket accept()
public boolean isOpened()
public void addRequestListener(HTTPRequestListener listener)
public void removeRequestListener(HTTPRequestListener listener)
public void performRequestListener(HTTPRequest httpReq)
public boolean start()
public boolean stop()