@@ -995,6 +995,7 @@ public void handle(HttpExchange httpExchange) throws IOException {
995995 setHttpExchangeResponseHeaders (httpExchange );
996996
997997 if (!this .contextRoot .equals (httpExchange .getRequestURI ().getRawPath ())) {
998+ System .out .println ("Can't find " + httpExchange .getRequestURI ().getRawPath ());
998999 String response = "URI " + httpExchange .getRequestURI ().getRawPath () + " not handled" ;
9991000 httpExchange .getResponseHeaders ().add ("Content-type" , "text/plain" );
10001001 httpExchange .sendResponseHeaders (HTTP_NOT_FOUND , response .length ());
@@ -1785,17 +1786,25 @@ public void run(Optional<Pair<String,String>> basicAuth,
17851786 withAuth (server .createContext (uriContext +"/semgrex" , new SemgrexHandler (authenticator , callback )), basicAuth );
17861787 withAuth (server .createContext (uriContext +"/tregex" , new TregexHandler (authenticator , callback )), basicAuth );
17871788 withAuth (server .createContext (uriContext +"/scenegraph" , new SceneGraphHandler (authenticator )), basicAuth );
1789+
17881790 withAuth (server .createContext (uriContext +"/corenlp-brat.js" , new FileHandler ("edu/stanford/nlp/pipeline/demo/corenlp-brat.js" , "application/javascript" )), basicAuth );
17891791 withAuth (server .createContext (uriContext +"/corenlp-brat.cs" , new FileHandler ("edu/stanford/nlp/pipeline/demo/corenlp-brat.css" , "text/css" )), basicAuth );
17901792 withAuth (server .createContext (uriContext +"/corenlp-parseviewer.js" , new FileHandler ("edu/stanford/nlp/pipeline/demo/corenlp-parseviewer.js" , "application/javascript" )), basicAuth );
1793+
17911794 withAuth (server .createContext (uriContext +"/static/fonts/Astloch-Bold.ttf" , new BytesFileHandler ("edu/stanford/nlp/pipeline/demo/Astloch-Bold.ttf" , "font/ttfx" )), basicAuth );
17921795 withAuth (server .createContext (uriContext +"/static/fonts/Liberation_Sans-Regular.ttf" , new BytesFileHandler ("edu/stanford/nlp/pipeline/demo/LiberationSans-Regular.ttf" , "font/ttf" )), basicAuth );
17931796 withAuth (server .createContext (uriContext +"/static/fonts/PT_Sans-Caption-Web-Regular.ttf" , new BytesFileHandler ("edu/stanford/nlp/pipeline/demo/PTSansCaption-Regular.ttf" , "font/ttf" )), basicAuth );
1797+
1798+ withAuth (server .createContext (uriContext +"/annotation_log.js" , new BytesFileHandler ("edu/stanford/nlp/pipeline/demo/annotation_log.js" , "application/javascript" )), basicAuth );
17941799 withAuth (server .createContext (uriContext +"/configuration.js" , new BytesFileHandler ("edu/stanford/nlp/pipeline/demo/configuration.js" , "application/javascript" )), basicAuth );
17951800 withAuth (server .createContext (uriContext +"/dispatcher.js" , new BytesFileHandler ("edu/stanford/nlp/pipeline/demo/dispatcher.js" , "application/javascript" )), basicAuth );
1796- withAuth (server .createContext (uriContext +"/util.js" , new BytesFileHandler ("edu/stanford/nlp/pipeline/demo/util.js" , "application/javascript" )), basicAuth );
1801+ withAuth (server .createContext (uriContext +"/jquery.svg.min.js" , new BytesFileHandler ("edu/stanford/nlp/pipeline/demo/jquery.svg.min.js" , "application/javascript" )), basicAuth );
1802+ withAuth (server .createContext (uriContext +"/jquery.svgdom.min.js" , new BytesFileHandler ("edu/stanford/nlp/pipeline/demo/jquery.svg.min.js" , "application/javascript" )), basicAuth );
17971803 withAuth (server .createContext (uriContext +"/url_monitor.js" , new BytesFileHandler ("edu/stanford/nlp/pipeline/demo/url_monitor.js" , "application/javascript" )), basicAuth );
1804+ withAuth (server .createContext (uriContext +"/util.js" , new BytesFileHandler ("edu/stanford/nlp/pipeline/demo/util.js" , "application/javascript" )), basicAuth );
17981805 withAuth (server .createContext (uriContext +"/visualizer.js" , new BytesFileHandler ("edu/stanford/nlp/pipeline/demo/visualizer.js" , "application/javascript" )), basicAuth );
1806+ withAuth (server .createContext (uriContext +"/webfont.js" , new BytesFileHandler ("edu/stanford/nlp/pipeline/demo/webfont.js" , "application/javascript" )), basicAuth );
1807+
17991808 withAuth (server .createContext (uriContext +"/img/corenlp-title.png" , new BytesFileHandler ("edu/stanford/nlp/pipeline/demo/corenlp-title.png" , "image/png" )), basicAuth );
18001809 withAuth (server .createContext (uriContext +"/ping" , new PingHandler ()), Optional .empty ());
18011810 withAuth (server .createContext (uriContext +"/shutdown" , new ShutdownHandler ()), basicAuth );
0 commit comments