com.prolixtech.jaminid_examples
Class SimpleServer

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

public class SimpleServer
extends ContentOracle

Author:
Constantinos Michael

Constructor Summary
SimpleServer()
           
 
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
 

Constructor Detail

SimpleServer

public SimpleServer()
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)