com.prolixtech.jaminid_examples

Class HelloWorldServer


public class HelloWorldServer
extends ContentOracle

Field Summary

static String
HELLO
static int
PORT

Fields inherited from class com.prolixtech.jaminid.ContentOracle

theInstance

Method Summary

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(String[] args)

Methods inherited from class com.prolixtech.jaminid.ContentOracle

Instance, demultiplex, getDelegatedOracle

Field Details

HELLO

public static String HELLO

PORT

public static final int PORT
Field Value:
80

Method Details

demultiplex

public 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. in this example, it is a static HTML, that is all we care about for now.
Overrides:
demultiplex in interface ContentOracle
Parameters:
connRequest -
connResponse -
Returns:
the output

main

public static void main(String[] args)