openvidu-server: Token and Session getters and setters update

pull/550/head
pabloFuente 2020-10-05 19:04:12 +02:00
parent 4b2c50c8f2
commit ca915fa321
2 changed files with 12 additions and 0 deletions

View File

@ -192,6 +192,10 @@ public class Session implements SessionInterface {
return tokenObj; return tokenObj;
} }
public Iterator<Entry<String, Token>> getTokenIterator() {
return this.tokens.entrySet().iterator();
}
public void showTokens(String preMessage) { public void showTokens(String preMessage) {
log.info("{} { Session: {} | Tokens: {} }", preMessage, this.sessionId, this.tokens.keySet().toString()); log.info("{} { Session: {} | Tokens: {} }", preMessage, this.sessionId, this.tokens.keySet().toString());
} }

View File

@ -77,6 +77,14 @@ public class Token {
return connectionId; return connectionId;
} }
public void setRole(OpenViduRole role) {
this.role = role;
}
public void setRecord(boolean record) {
this.record = record;
}
@Override @Override
public String toString() { public String toString() {
if (this.role != null) if (this.role != null)