com.prolixtech.jaminid
Class ContentOracle
java.lang.Object
com.prolixtech.jaminid.ContentOracle
public class ContentOracle
extends java.lang.Object
The content oracle is a very special class. It completely allows us to
delegate the computation of
Instance
public static ContentOracle Instance()
pertains to the singleton DESIGN PATTERN
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.
connRequest
- connResponse
-
getDelegatedOracle
public ContentOracle getDelegatedOracle(Request serviceRequest)
- the oracle that will handle the request