public class PocketSOMConfigProvider extends Object implements com.sun.net.httpserver.HttpHandler
Modifier and Type | Field and Description |
---|---|
private int |
connectorEndpointPort |
private static boolean |
DEBUG |
protected static String |
IMG |
private Logger |
log |
private static String |
LOG_SEP |
protected static String |
MAPPING |
private String |
musicContext |
private static String |
NL |
protected static String |
PSOM |
private CommonSOMViewerStateData |
state |
Constructor and Description |
---|
PocketSOMConfigProvider(CommonSOMViewerStateData state,
int port,
String mapContentContext) |
Modifier and Type | Method and Description |
---|---|
private void |
addServerHeaders(com.sun.net.httpserver.HttpExchange t) |
private String |
getClient(com.sun.net.httpserver.HttpExchange t) |
private String |
getPreferredCharSet(com.sun.net.httpserver.HttpExchange t,
StringBuilder response) |
void |
handle(com.sun.net.httpserver.HttpExchange t) |
private void |
printRequest(com.sun.net.httpserver.HttpExchange t) |
private void |
sendMapping(com.sun.net.httpserver.HttpExchange t) |
private void |
sendPsomFile(com.sun.net.httpserver.HttpExchange t) |
private void |
sendVisualisation(com.sun.net.httpserver.HttpExchange t) |
protected static final String PSOM
protected static final String IMG
protected static final String MAPPING
private static final String NL
private static final boolean DEBUG
private static final String LOG_SEP
private final Logger log
private final int connectorEndpointPort
private final String musicContext
private final CommonSOMViewerStateData state
public PocketSOMConfigProvider(CommonSOMViewerStateData state, int port, String mapContentContext)
public void handle(com.sun.net.httpserver.HttpExchange t) throws IOException
handle
in interface com.sun.net.httpserver.HttpHandler
IOException
private void sendMapping(com.sun.net.httpserver.HttpExchange t) throws IOException
IOException
private void sendVisualisation(com.sun.net.httpserver.HttpExchange t) throws IOException
IOException
private String getClient(com.sun.net.httpserver.HttpExchange t)
private void sendPsomFile(com.sun.net.httpserver.HttpExchange t) throws IOException
IOException
private String getPreferredCharSet(com.sun.net.httpserver.HttpExchange t, StringBuilder response)
private void addServerHeaders(com.sun.net.httpserver.HttpExchange t)
private void printRequest(com.sun.net.httpserver.HttpExchange t) throws IOException
IOException