com.prolixtech.jaminid_examples
Class HelloWorldServer

java.lang.Object
  extended by com.prolixtech.jaminid.ContentOracle
      extended by com.prolixtech.jaminid_examples.HelloWorldServer

public class HelloWorldServer
extends ContentOracle

Author:
Constantinos Michael

Field Summary
static java.lang.String HELLO
           
static int PORT
           
 
Constructor Summary
HelloWorldServer()
           
 
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 com.prolixtech.jaminid.ContentOracle
getDelegatedOracle, Instance
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PORT

public static final int PORT
See Also:
Constant Field Values

HELLO

public static java.lang.String HELLO
Constructor Detail

HelloWorldServer

public HelloWorldServer()
Method Detail

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)