at.tuwien.ifs.somtoolbox.apps.viewer.controls.psomserver.httphandler
Class MapInformationProvider
java.lang.Object
at.tuwien.ifs.somtoolbox.apps.viewer.controls.psomserver.httphandler.MapInformationProvider
- All Implemented Interfaces:
- com.sun.net.httpserver.HttpHandler
public class MapInformationProvider
- extends java.lang.Object
- implements com.sun.net.httpserver.HttpHandler
Provides useful information about the current map.
- Author:
- Jakob Frank
Method Summary |
private java.lang.String |
basename(java.lang.String path)
|
private void |
downloadFile(com.sun.net.httpserver.HttpExchange t)
|
void |
handle(com.sun.net.httpserver.HttpExchange t)
|
private java.lang.String |
parseFile(com.sun.net.httpserver.HttpExchange t,
java.io.File f)
|
private java.lang.String |
parseString(com.sun.net.httpserver.HttpExchange t,
java.lang.String string)
|
private void |
sendFile(com.sun.net.httpserver.HttpExchange t,
java.io.File f)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG_SEP
private static final java.lang.String LOG_SEP
- See Also:
- Constant Field Values
state
private final CommonSOMViewerStateData state
contentContext
private final java.lang.String contentContext
configContext
private final java.lang.String configContext
templatePath
private final java.lang.String templatePath
NL
private static final java.lang.String NL
- See Also:
- Constant Field Values
log
private java.util.logging.Logger log
HTML_TEMPLATE_INDEX
private static final java.lang.String HTML_TEMPLATE_INDEX
- See Also:
- Constant Field Values
HTML_TEMPLATE_MAP
private static final java.lang.String HTML_TEMPLATE_MAP
- See Also:
- Constant Field Values
MapInformationProvider
public MapInformationProvider(CommonSOMViewerStateData state,
java.lang.String mapContentContext,
java.lang.String configurationContext)
handle
public void handle(com.sun.net.httpserver.HttpExchange t)
throws java.io.IOException
- Specified by:
handle
in interface com.sun.net.httpserver.HttpHandler
- Throws:
java.io.IOException
downloadFile
private void downloadFile(com.sun.net.httpserver.HttpExchange t)
throws java.io.IOException
- Throws:
java.io.IOException
sendFile
private void sendFile(com.sun.net.httpserver.HttpExchange t,
java.io.File f)
throws java.io.IOException
- Throws:
java.io.IOException
parseFile
private java.lang.String parseFile(com.sun.net.httpserver.HttpExchange t,
java.io.File f)
throws java.io.IOException
- Throws:
java.io.IOException
parseString
private java.lang.String parseString(com.sun.net.httpserver.HttpExchange t,
java.lang.String string)
basename
private java.lang.String basename(java.lang.String path)