com.prolixtech.jaminid
Class StreamingOracle
java.lang.Object
com.prolixtech.jaminid.ContentOracle
com.prolixtech.jaminid.StreamingOracle
public class StreamingOracle
- extends ContentOracle
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PATH_START
public static final java.lang.String PATH_START
- See Also:
- Constant Field Values
StreamingOracle
public StreamingOracle()
publishStream
public java.lang.String publishStream(StreamBundle a,
java.lang.String path)
Instance
public static ContentOracle Instance()
demultiplex
public java.lang.String demultiplex(Request cReqL,
Response cRepL)
- 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
getStreamInterval
public int getStreamInterval()
getNextBatch
public byte[] getNextBatch(Request cReqL,
Response cRepL)