Changeset 1351 for trunk/autoquest-htmlmonitor/src/main/java/de/ugoe/cs
- Timestamp:
- 01/31/14 11:48:49 (11 years ago)
- Location:
- trunk/autoquest-htmlmonitor/src/main/java/de/ugoe/cs/autoquest/htmlmonitor
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-htmlmonitor/src/main/java/de/ugoe/cs/autoquest/htmlmonitor/HtmlMonitorServer.java
r927 r1351 15 15 package de.ugoe.cs.autoquest.htmlmonitor; 16 16 17 import java.util.EnumSet; 18 19 import javax.servlet.DispatcherType; 20 21 import org.eclipse.jetty.server.Server; 22 import org.eclipse.jetty.servlet.FilterHolder; 23 import org.eclipse.jetty.servlet.ServletContextHandler; 24 import org.eclipse.jetty.servlet.ServletHolder; 17 25 import org.eclipse.jetty.servlets.CrossOriginFilter; 18 import org.mortbay.jetty.Handler;19 import org.mortbay.jetty.Server;20 import org.mortbay.jetty.servlet.Context;21 import org.mortbay.jetty.servlet.FilterHolder;22 import org.mortbay.jetty.servlet.ServletHolder;23 26 24 27 import de.ugoe.cs.util.console.Console; … … 90 93 server.addConnector(connector);*/ 91 94 92 Context root = new Context(server, "/", Context.SESSIONS);95 ServletContextHandler root = new ServletContextHandler(server, "/", ServletContextHandler.SESSIONS); 93 96 94 97 HtmlMonitorServlet servlet = new HtmlMonitorServlet(messageListener); … … 100 103 filterHolder.setInitParameter("allowedOrigins", "*"); 101 104 filterHolder.setInitParameter("allowedMethods", "GET,POST"); 102 root.addFilter(filterHolder, "/*", Handler.ALL);105 root.addFilter(filterHolder, "/*", EnumSet.allOf(DispatcherType.class)); 103 106 } 104 107 -
trunk/autoquest-htmlmonitor/src/main/java/de/ugoe/cs/autoquest/htmlmonitor/HtmlMonitorServlet.java
r1268 r1351 33 33 import javax.servlet.http.HttpServletResponse; 34 34 35 import org.eclipse.jetty.servlet.DefaultServlet; 35 36 import org.json.simple.JSONArray; 36 37 import org.json.simple.JSONObject; 37 38 import org.json.simple.JSONValue; 38 39 import org.json.simple.parser.ParseException; 39 import org.mortbay.jetty.servlet.DefaultServlet;40 40 41 41 import de.ugoe.cs.util.FileTools;
Note: See TracChangeset
for help on using the changeset viewer.