Package org.ka2ddo.yaac.webserver
Class MessagesPage
java.lang.Object
org.ka2ddo.yaac.webserver.PathHandler
org.ka2ddo.yaac.webserver.MessagesPage
This generates an HTML page representing the Messages view in YAAC.
- Author:
- Andrew Pavlin, KA2DDO
-
Field Summary
Fields inherited from class org.ka2ddo.yaac.webserver.PathHandler
httpServer, MINUTES_15, MINUTES_30, PURPLE, TEXT_HTML_CHARSET_UTF_8
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprocessPage
(HttpConnectionThread hct, LinkedHashMap<String, String> requestHeaders, DataInput in, OutputStream out, String path) Given an inbound HTTP request, generate a page using its parameters.Methods inherited from class org.ka2ddo.yaac.webserver.PathHandler
escPrint, escPrint, getHttpServer, outputFooterLinks, setHttpServer
-
Constructor Details
-
MessagesPage
public MessagesPage()
-
-
Method Details
-
processPage
public String processPage(HttpConnectionThread hct, LinkedHashMap<String, String> requestHeaders, DataInput in, OutputStream out, String path) throws IOExceptionGiven an inbound HTTP request, generate a page using its parameters.- Specified by:
processPage
in classPathHandler
- Parameters:
hct
- HttpConnectionThread issuing the callrequestHeaders
- the HTTP request headers the browser sentin
- DataInput 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- Returns:
- the Content-Type header value to return to tell the remote browser how to interpret the page
- Throws:
IOException
- if the page could not be generated for some reason
-