Changeset 1351 for trunk/autoquest-htmlmonitor
- Timestamp:
- 01/31/14 11:48:49 (11 years ago)
- Location:
- trunk/autoquest-htmlmonitor
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-htmlmonitor/pom.xml
r1344 r1351 43 43 </dependency> 44 44 <dependency> 45 <groupId>org.mortbay.jetty</groupId> 46 <artifactId>jetty</artifactId> 47 <version>6.1.22</version> 45 <groupId>org.eclipse.jetty</groupId> 46 <artifactId>jetty-server</artifactId> 47 <version>9.1.0.M0</version> 48 </dependency> 49 <dependency> 50 <groupId>org.eclipse.jetty</groupId> 51 <artifactId>jetty-servlet</artifactId> 52 <version>9.1.0.M0</version> 48 53 </dependency> 49 54 <dependency> 50 55 <groupId>org.eclipse.jetty</groupId> 51 56 <artifactId>jetty-servlets</artifactId> 52 <version> 8.1.7.v20120910</version>57 <version>9.1.0.M0</version> 53 58 </dependency> 54 59 <dependency> -
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.