|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ka2ddo.yaac.webserver.PathHandler
org.ka2ddo.yaac.webserver.IndexPage
public class IndexPage
This class generates the home page for the mini webserver inside YAAC.
| Field Summary |
|---|
| Fields inherited from class org.ka2ddo.yaac.webserver.PathHandler |
|---|
httpServer, TEXT_HTML_CHARSET_UTF_8 |
| Constructor Summary | |
|---|---|
IndexPage()
|
|
| Method Summary | |
|---|---|
java.lang.String |
processPage(HttpConnectionThread hct,
java.util.LinkedHashMap<java.lang.String,java.lang.String> requestHeaders,
java.io.DataInputStream in,
java.io.OutputStream out,
java.lang.String path)
Given an inbound HTTP request, generate a page using its parameters. |
| Methods inherited from class org.ka2ddo.yaac.webserver.PathHandler |
|---|
escPrint, getHttpServer, setHttpServer |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IndexPage()
| Method Detail |
|---|
public java.lang.String processPage(HttpConnectionThread hct,
java.util.LinkedHashMap<java.lang.String,java.lang.String> requestHeaders,
java.io.DataInputStream in,
java.io.OutputStream out,
java.lang.String path)
throws java.io.IOException
processPage in class PathHandlerhct - HttpConnectionThread issuing the callrequestHeaders - the HTTP request headers the browser sentin - DataInputStream for reading the body of the HTTP requestout - OutputStream to write the generated page topath - the remainder of the URL following the prefix identifying this particular page, in case the user is providing parameters to the page
java.io.IOException - if the page could not be generated for some reason
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||