Package org.red5.server.session
Class Session
java.lang.Object
org.red5.server.session.Session
- All Implemented Interfaces:
Serializable
,ISession
Represents the most basic type of "Session", loosely modeled after the HTTP Session used in J2EE applications.
- Author:
- The Red5 Project, Paul Gregoire (mondain@gmail.com)
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
end()
Ends the session, no further modifications should be allowed.boolean
Returns the client id associated with this session.long
Returns creation time in milliseconds.Returns the directory used to store session resources.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.
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
created
protected long created -
active
protected boolean active -
sessionId
-
destinationDirectory
-
clientId
-
-
Constructor Details
-
Session
public Session() -
Session
-
-
Method Details
-
getCreated
public long getCreated()Description copied from interface:ISession
Returns creation time in milliseconds.- Specified by:
getCreated
in interfaceISession
- Returns:
- creation time
-
getSessionId
Description copied from interface:ISession
Returns the session's identifier.- Specified by:
getSessionId
in interfaceISession
- Returns:
- session id
-
reset
public void reset()Description copied from interface:ISession
Resets a specified set of internal parameters. -
isActive
public boolean isActive()Description copied from interface:ISession
Returns the active state of the session. -
end
public void end()Description copied from interface:ISession
Ends the session, no further modifications should be allowed. -
getClientId
Description copied from interface:ISession
Returns the client id associated with this session.- Specified by:
getClientId
in interfaceISession
- Returns:
- client id
-
setClientId
Description copied from interface:ISession
Sets the associated client id.- Specified by:
setClientId
in interfaceISession
- Parameters:
clientId
- client id
-
setDestinationDirectory
Description copied from interface:ISession
Sets where session resources will be located if persisted to disk.- Specified by:
setDestinationDirectory
in interfaceISession
- Parameters:
destinationDirectory
- destination directory
-
getDestinationDirectory
Description copied from interface:ISession
Returns the directory used to store session resources.- Specified by:
getDestinationDirectory
in interfaceISession
- Returns:
- destination directory
-
hashCode
public int hashCode() -
equals
-