public class MapInformationProvider extends Object implements com.sun.net.httpserver.HttpHandler
Modifier and Type | Field and Description |
---|---|
private String |
configContext |
private String |
contentContext |
private static String |
HTML_TEMPLATE_INDEX |
private static String |
HTML_TEMPLATE_MAP |
private Logger |
log |
private static String |
LOG_SEP |
private static String |
NL |
private CommonSOMViewerStateData |
state |
private String |
templatePath |
Constructor and Description |
---|
MapInformationProvider(CommonSOMViewerStateData state,
String mapContentContext,
String configurationContext) |
Modifier and Type | Method and Description |
---|---|
private String |
basename(String path) |
private void |
downloadFile(com.sun.net.httpserver.HttpExchange t) |
void |
handle(com.sun.net.httpserver.HttpExchange t) |
private String |
parseFile(com.sun.net.httpserver.HttpExchange t,
File f) |
private String |
parseString(com.sun.net.httpserver.HttpExchange t,
String string) |
private void |
sendFile(com.sun.net.httpserver.HttpExchange t,
File f) |
private static final String LOG_SEP
private final CommonSOMViewerStateData state
private final String contentContext
private final String configContext
private final String templatePath
private static final String NL
private Logger log
private static final String HTML_TEMPLATE_INDEX
private static final String HTML_TEMPLATE_MAP
public MapInformationProvider(CommonSOMViewerStateData state, String mapContentContext, String configurationContext)
public void handle(com.sun.net.httpserver.HttpExchange t) throws IOException
handle
in interface com.sun.net.httpserver.HttpHandler
IOException
private void downloadFile(com.sun.net.httpserver.HttpExchange t) throws IOException
IOException
private void sendFile(com.sun.net.httpserver.HttpExchange t, File f) throws IOException
IOException
private String parseFile(com.sun.net.httpserver.HttpExchange t, File f) throws IOException
IOException