|
||||||||||
| 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 ISessionpublic String getSessionId()
ISession
getSessionId in interface ISessionpublic void reset()
ISession
reset in interface ISessionpublic boolean isActive()
ISession
isActive in interface ISessionpublic void end()
ISession
end in interface ISessionpublic String getClientId()
ISession
getClientId in interface ISessionpublic void setClientId(String clientId)
ISession
setClientId in interface ISessionclientId - client idpublic void setDestinationDirectory(String destinationDirectory)
ISession
setDestinationDirectory in interface ISessiondestinationDirectory - destination directorypublic String getDestinationDirectory()
ISession
getDestinationDirectory in interface ISessionpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||