Changeset 5 for src/main/java
- Timestamp:
- 09/25/19 16:49:11 (5 years ago)
- Location:
- src/main/java/geniusweb/runserver
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/geniusweb/runserver/RunNego.java
r4 r5 65 65 RunningNego session = new RunningNego(settings, 66 66 RunningNegotiationsRepo.instance(), log); 67 RunningNegotiationsRepo.instance().put(session);67 session.start(); 68 68 // set content type to prevent some browsers 69 69 // trying to parse this (eg as XML) -
src/main/java/geniusweb/runserver/RunningNego.java
r1 r5 36 36 37 37 /** 38 * Create new session wth unique ID. 38 * Create new session wth unique ID. You should call {@link #start()} to 39 * actually start this. 39 40 * 40 41 * @param settings the settings to use for this session … … 48 49 Reporter logger) { 49 50 this.log = logger; 50 protocol = settings.getProtocol(logger);51 this.protocol = settings.getProtocol(logger); 51 52 this.sessionid = "" + protocol.getRef().getURI() + (negoNr++); 52 53 this.repo = repo; 54 } 55 56 public void start() { 53 57 System.out.println("new session. logging to " + logdir); 58 repo.put(this); 54 59 protocol.addListener(evt -> handle(evt)); 55 protocol.start(new PartyConnectionFactory(log ger));60 protocol.start(new PartyConnectionFactory(log)); 56 61 } 57 62
Note:
See TracChangeset
for help on using the changeset viewer.