|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectContentOracle
HTTPServer
public class HTTPServer
A small embedded HTTP server that checks text. Returns XML, prints debugging to stdout/stderr.
| Field Summary | |
|---|---|
static int |
DEFAULT_PORT
The default port on which the server is running (8081). |
| Constructor Summary | |
|---|---|
HTTPServer()
Prepare a server - use run() to start it. |
|
HTTPServer(int port)
Prepare a server on the given port - use run() to start it. |
|
HTTPServer(int port,
boolean verbose)
Prepare a server on the given port - use run() to start it. |
|
| Method Summary | |
|---|---|
String |
demultiplex(Request connRequest,
Response connResponse)
|
static void |
main(String[] args)
Start the server from command line. |
void |
run()
Start the server. |
void |
stop()
Stop the server process. |
| Methods inherited from class ContentOracle |
|---|
getDelegatedOracle, Instance |
| Methods inherited from class Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_PORT
| Constructor Detail |
|---|
public HTTPServer()
public HTTPServer(int port)
public HTTPServer(int port,
boolean verbose)
verbose - if true, the text to check will be displayed in case
of exceptions (default: false)| Method Detail |
|---|
public void run()
public String demultiplex(Request connRequest,
Response connResponse)
demultiplex in class ContentOraclepublic void stop()
public static void main(String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||