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 ([email protected])
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidend()Ends the session, no further modifications should be allowed.booleanReturns the client id associated with this session.longReturns creation time in milliseconds.Returns the directory used to store session resources.Returns the session's identifier.inthashCode()booleanisActive()Returns the active state of the session.voidreset()Resets a specified set of internal parameters.voidsetClientId(String clientId) Sets the associated client id.voidsetDestinationDirectory(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:ISessionReturns creation time in milliseconds.- Specified by:
getCreatedin interfaceISession- Returns:
- creation time
-
getSessionId
Description copied from interface:ISessionReturns the session's identifier.- Specified by:
getSessionIdin interfaceISession- Returns:
- session id
-
reset
public void reset()Description copied from interface:ISessionResets a specified set of internal parameters. -
isActive
public boolean isActive()Description copied from interface:ISessionReturns the active state of the session. -
end
public void end()Description copied from interface:ISessionEnds the session, no further modifications should be allowed. -
getClientId
Description copied from interface:ISessionReturns the client id associated with this session.- Specified by:
getClientIdin interfaceISession- Returns:
- client id
-
setClientId
Description copied from interface:ISessionSets the associated client id.- Specified by:
setClientIdin interfaceISession- Parameters:
clientId- client id
-
setDestinationDirectory
Description copied from interface:ISessionSets where session resources will be located if persisted to disk.- Specified by:
setDestinationDirectoryin interfaceISession- Parameters:
destinationDirectory- destination directory
-
getDestinationDirectory
Description copied from interface:ISessionReturns the directory used to store session resources.- Specified by:
getDestinationDirectoryin interfaceISession- Returns:
- destination directory
-
hashCode
public int hashCode() -
equals
-