com.prolixtech.jaminid_examples
Class HelloWorldServer
java.lang.Object
com.prolixtech.jaminid.ContentOracle
com.prolixtech.jaminid_examples.HelloWorldServer
public class HelloWorldServer
- extends ContentOracle
- Author:
- Constantinos Michael
Field Summary |
static java.lang.String |
HELLO
|
static int |
PORT
|
Method Summary |
java.lang.String |
demultiplex(Request connRequest,
Response connResponse)
the main function of the oracle, is to demux the request and produce an
output that is relative to the request. |
static void |
main(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PORT
public static final int PORT
- See Also:
- Constant Field Values
HELLO
public static java.lang.String HELLO
HelloWorldServer
public HelloWorldServer()
demultiplex
public java.lang.String demultiplex(Request connRequest,
Response connResponse)
- Description copied from class:
ContentOracle
- the main function of the oracle, is to demux the request and produce an
output that is relative to the request.
in this example, it is a static HTML, that is all we care about for now.
- Overrides:
demultiplex
in class ContentOracle
- Returns:
- the output
main
public static void main(java.lang.String[] args)