Changeset 10 for src/main/java/geniusweb
- Timestamp:
- 02/13/20 16:30:54 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/geniusweb/runserver/RunNego.java
r8 r10 38 38 /** 39 39 * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse 40 * response). Returns 41 * <ul> 42 * <li>URL with websocket address to contact the now running party. 43 * <li>SC_NOT_FOUND (404) if attempt is made to access non-running 44 * party. 45 * <li>SC_SERVICE_UNAVAILABLE (503) if there are no free slots to run 46 * the party. 47 * <li>SC_EXPECTATION_FAILED (417) if something else goes wrong during 48 * instantiating the party (then see logs for more details) 49 * </ul> 40 * response). 41 * 42 * @return the ID of the new started run. Or SC_BAD_REQUEST if the request 43 * can not be processed. 50 44 */ 51 45 @Override … … 65 59 } 66 60 log.log(Level.INFO, "request to run Nego: " + settings); 67 RunningNego session= new RunningNego(settings,61 RunningNego running = new RunningNego(settings, 68 62 RunningNegotiationsRepo.instance(), log); 69 session.start();63 running.start(); 70 64 // set content type to prevent some browsers 71 65 // trying to parse this (eg as XML) 72 66 response.setContentType("application/json"); 73 response.getWriter().append( session.getID());67 response.getWriter().append(running.getID()); 74 68 } 75 69
Note:
See TracChangeset
for help on using the changeset viewer.