openvidu-server: Token and Session getters and setters update
This commit is contained in:
parent
4b2c50c8f2
commit
ca915fa321
@ -192,6 +192,10 @@ public class Session implements SessionInterface {
|
||||
return tokenObj;
|
||||
}
|
||||
|
||||
public Iterator<Entry<String, Token>> getTokenIterator() {
|
||||
return this.tokens.entrySet().iterator();
|
||||
}
|
||||
|
||||
public void showTokens(String preMessage) {
|
||||
log.info("{} { Session: {} | Tokens: {} }", preMessage, this.sessionId, this.tokens.keySet().toString());
|
||||
}
|
||||
|
||||
@ -77,6 +77,14 @@ public class Token {
|
||||
return connectionId;
|
||||
}
|
||||
|
||||
public void setRole(OpenViduRole role) {
|
||||
this.role = role;
|
||||
}
|
||||
|
||||
public void setRecord(boolean record) {
|
||||
this.record = record;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
if (this.role != null)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user