org.ka2ddo.yaac.webserver
Class MapPage
java.lang.Object
org.ka2ddo.yaac.webserver.PathHandler
org.ka2ddo.yaac.webserver.MapPage
public class MapPage
- extends PathHandler
This class dynamically generates a PNG image of the current map as seen on the YAAC GUI.
Note that this code is currently dependent on the AWT/Swing GUI implementation of images.
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MapPage
public MapPage()
processPage
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
- Given an inbound HTTP request, generate a page using its parameters.
- Specified by:
processPage
in class PathHandler
- Parameters:
hct
- 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
- Returns:
- the Content-Type header value to return to tell the remote browser how to interpret the page
- Throws:
java.io.IOException
- if the page could not be generated for some reason