|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.red5.server.session.Session
public class Session
Represents the most basic type of "Session", loosely modeled after the HTTP Session used in J2EE applications.
Field Summary | |
---|---|
protected boolean |
active
|
protected String |
clientId
|
protected long |
created
|
protected String |
destinationDirectory
|
protected String |
sessionId
|
Constructor Summary | |
---|---|
Session()
|
|
Session(String sessionId)
|
Method Summary | |
---|---|
void |
end()
Ends the session, no further modifications should be allowed. |
boolean |
equals(Object obj)
|
String |
getClientId()
Returns the client id associated with this session. |
long |
getCreated()
Returns creation time in milliseconds. |
String |
getDestinationDirectory()
Returns the directory used to store session resources. |
String |
getSessionId()
Returns the session's identifier. |
int |
hashCode()
|
boolean |
isActive()
Returns the active state of the session. |
void |
reset()
Resets a specified set of internal parameters. |
void |
setClientId(String clientId)
Sets the associated client id. |
void |
setDestinationDirectory(String destinationDirectory)
Sets where session resources will be located if persisted to disk. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected long created
protected boolean active
protected String sessionId
protected String destinationDirectory
protected String clientId
Constructor Detail |
---|
public Session()
public Session(String sessionId)
Method Detail |
---|
public long getCreated()
ISession
getCreated
in interface ISession
public String getSessionId()
ISession
getSessionId
in interface ISession
public void reset()
ISession
reset
in interface ISession
public boolean isActive()
ISession
isActive
in interface ISession
public void end()
ISession
end
in interface ISession
public String getClientId()
ISession
getClientId
in interface ISession
public void setClientId(String clientId)
ISession
setClientId
in interface ISession
clientId
- client idpublic void setDestinationDirectory(String destinationDirectory)
ISession
setDestinationDirectory
in interface ISession
destinationDirectory
- destination directorypublic String getDestinationDirectory()
ISession
getDestinationDirectory
in interface ISession
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |