|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Thread
edu.ucsb.cs.jicos.services.external.services.Collector
edu.ucsb.cs.jicos.services.external.services.CollectorHttp
public class CollectorHttp
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
static int |
DEFAULT_PORT
Default port for the CollectorHttp. |
static int |
DELAY
Number of seconds to delay until the answer HTML page will refresh. |
static java.lang.String |
PROPERTY_PortNumber
System property that specifies the port number. |
| Fields inherited from class edu.ucsb.cs.jicos.services.external.services.Collector |
|---|
host, hsp, port |
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
CollectorHttp()
Default, no argument, constructor. |
|
CollectorHttp(edu.ucsb.cs.jicos.services.ClientToHsp hsp)
Construct a CollectorHttp associated with a particular HSP. |
|
CollectorHttp(edu.ucsb.cs.jicos.services.ClientToHsp hsp,
int port)
Construct a CollectorHttp associated with a particular HSP on a particular port. |
|
| Method Summary | |
|---|---|
static java.lang.String |
createResponseSelect(java.lang.String[] respondOptions)
Create HTML for the "respond by" box. |
static java.lang.String |
htmlUnMangle(java.lang.String mangled)
Unmangle a value from HTTP (translating all the %xx --> characters). |
static java.lang.String |
jicosHtmlFooter()
Create the traditional Jicos footer for a web page. |
static java.lang.String |
jicosHtmlHeader()
Create the traditional Jicos header for a dynamically created web page. |
void |
run()
Start up this thread. |
java.lang.String |
toHtml(ExternalRequestId externalRequestId)
Convert an external result identifier to HTML page that will allow the client browser to request the answer. |
java.lang.String |
unknownRequestId()
Create a "requestid unknown" HTML page. |
| Methods inherited from class edu.ucsb.cs.jicos.services.external.services.Collector |
|---|
getHost, getHostPort, getHsp, getPort, setHost, setHsp, setPort |
| Methods inherited from class java.lang.Thread |
|---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_PORT
public static final java.lang.String PROPERTY_PortNumber
public static final int DELAY
| Constructor Detail |
|---|
public CollectorHttp()
public CollectorHttp(edu.ucsb.cs.jicos.services.ClientToHsp hsp)
hsp - The HSP
public CollectorHttp(edu.ucsb.cs.jicos.services.ClientToHsp hsp,
int port)
hsp - The HSPport - The port to bind to.| Method Detail |
|---|
public void run()
run in interface java.lang.Runnablerun in class Collectorpublic java.lang.String toHtml(ExternalRequestId externalRequestId)
externalRequestId - The external request id.
java.lang.NullPointerException - If argument is null.public java.lang.String unknownRequestId()
public static java.lang.String htmlUnMangle(java.lang.String mangled)
mangled - The Mangled string.
public static java.lang.String createResponseSelect(java.lang.String[] respondOptions)
respondOptions - An array of possible options.
public static java.lang.String jicosHtmlHeader()
public static java.lang.String jicosHtmlFooter()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||