Java Doc for SessionManager.java in  » J2EE » Enhydra-Application-Framework » com » lutris » appserver » server » session » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » J2EE » Enhydra Application Framework » com.lutris.appserver.server.session 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.lutris.appserver.server.session.SessionManager

All known Subclasses:   com.lutris.appserver.server.sessionEnhydra.StandardSessionManager,  com.lutris.appserver.server.sessionContainerAdapter.ContainerAdapterSessionManager,
SessionManager
public interface SessionManager (Code)
The session management object interface. This class implementing this interface manage the session state for currently active users of one or more applications. It allocates sessions and maintains the mapping between session keys and Session objects.
version:
   $Revision: 1.4 $
author:
   Shawn McMurdo
author:
   Mark Diekhans


Field Summary
final public static  StringENCODE_URL_ALWAYS
     Indicates that url encoding of session ids is always preformed.
final public static  StringENCODE_URL_AUTO
     Indicates that url encoding of session ids is preformed only when cookies are disabled on the client browser.
final public static  StringENCODE_URL_NEVER
     Indicates that url encoding of session ids is never preformed.


Method Summary
public  intactiveSessionCount()
     Gets the number of currently active sessions.
public  SessioncreateSession()
     Create a new Session object and an associated unique random key.
public  SessioncreateSession(String ipPortToken)
     Create a new Session object and an associated unique random key.
public  SessioncreateSession(HttpPresentationComms comms)
     Create a new Session object and an associated unique random key.
public  voiddeleteSession(Session session)
     Removes a session from the session manager.
public  voiddeleteSession(String sessionKey)
     Removes a session from the manager.
public  booleangetEmptySessionPath()
    
public  booleangetEncodeFirstUrl()
     Returns the url encoding rule for the first application page (true/false).
public  StringgetEncodeUrlState()
     Returns the url encoding state.
public  SessiongetSession(String sessionKey)
     Returns the Session object associated with the specified session key.
public  SessiongetSession(Thread thread, String sessionKey)
     Returns the Session object associated with the specified session key.
public  SessiongetSession(Thread thread, String sessionKey, HttpPresentationComms comms)
     Returns the Session object associated with the specified session key.
public  EnumerationgetSessionKeys(User user)
     Lookup active sessions keys for a user.
public  EnumerationgetSessionKeys()
     Get an enumeration of all session keys.
public  intmaxSessionCount()
     Gets the maximum number of concurent sessions that existed at any time since this object was created, or resetMaxSessionCount() was called.
public  DatemaxSessionCountDate()
     Gets the time when the maximum refered to by maxSessionCount() occured.
public  voidpassivateSession(Thread thread, String sessionKey)
     Puts a session into the 'passive' state.
public  voidresetMaxSessionCount()
     Reset the maximum session count.
public  booleansessionExists(String sessionKey)
     Returns whether the Session object associated with the specified session key exists.
Parameters:
  sessionKey - The String used to reference a Session object.
public  voidshutdown()
     Shutdown this session manager as required.

Field Detail
ENCODE_URL_ALWAYS
final public static String ENCODE_URL_ALWAYS(Code)
Indicates that url encoding of session ids is always preformed.
See Also:   SessionManager.getEncodeUrlState



ENCODE_URL_AUTO
final public static String ENCODE_URL_AUTO(Code)
Indicates that url encoding of session ids is preformed only when cookies are disabled on the client browser. This is automatically detected.
See Also:   SessionManager.getEncodeUrlState



ENCODE_URL_NEVER
final public static String ENCODE_URL_NEVER(Code)
Indicates that url encoding of session ids is never preformed.
See Also:   SessionManager.getEncodeUrlState





Method Detail
activeSessionCount
public int activeSessionCount() throws SessionException(Code)
Gets the number of currently active sessions. The number of currently active sessions.
exception:
  SessionException - if the active session count cannot be determined.



createSession
public Session createSession() throws SessionException(Code)
Create a new Session object and an associated unique random key. No User object is initially associated with the session (getUser() returns null). session The new Session object.
exception:
  SessionException - if the session cannot be created.
See Also:   Session



createSession
public Session createSession(String ipPortToken) throws SessionException(Code)
Create a new Session object and an associated unique random key. No User object is initially associated with the session (getUser() returns null).
Parameters:
  ipPortToken - The base64 encoded IP and Port number to include in sessionkey session The new Session object.
exception:
  SessionException - if the session cannot be created.
See Also:   Session



createSession
public Session createSession(HttpPresentationComms comms) throws SessionException(Code)
Create a new Session object and an associated unique random key. No User object is initially associated with the session (getUser() returns null).
Parameters:
  comms - The presentations manager comms object with allrequest/response information in it. session The new Session object.
exception:
  SessionException - if the session cannot be created.
See Also:   Session



deleteSession
public void deleteSession(Session session) throws SessionException(Code)
Removes a session from the session manager.
Parameters:
  session - The session object to delete.
exception:
  SessionException - if the session cannot be deleted.



deleteSession
public void deleteSession(String sessionKey) throws SessionException(Code)
Removes a session from the manager.
Parameters:
  sessionKey - the session key.
exception:
  SessionException - if the session cannot be deleted.



getEmptySessionPath
public boolean getEmptySessionPath()(Code)
Return value determins whether to use empty path (/) as session cookie path attribute value! Whether to use empty path for session cookies



getEncodeFirstUrl
public boolean getEncodeFirstUrl()(Code)
Returns the url encoding rule for the first application page (true/false).



getEncodeUrlState
public String getEncodeUrlState()(Code)
Returns the url encoding state. Either Never Always Auto



getSession
public Session getSession(String sessionKey) throws SessionException(Code)
Returns the Session object associated with the specified session key. The session is put in the 'active' state. If no Session object is associated with the key then this method returns null.
Parameters:
  sessionKey - The String used to reference a Session object. If the key is associated with an active session, then thecorresponding Session object is returned.Otherwise null is returned.
See Also:   Session
exception:
  SessionException - if the session cannot be retrieved.



getSession
public Session getSession(Thread thread, String sessionKey) throws SessionException(Code)
Returns the Session object associated with the specified session key. The session is put in the 'active' state. If no Session object is associated with the key then this method returns null.
Parameters:
  thread - the thread that should be associated with the session. Onlythis thread can subsequently put the session into the passivestate.
Parameters:
  sessionKey - The String used to reference a Session object. If the key is associated with an active session, then thecorresponding Session object is returned.Otherwise null is returned.
See Also:   Session
exception:
  SessionException - if the session cannot be retrieved.



getSession
public Session getSession(Thread thread, String sessionKey, HttpPresentationComms comms) throws SessionException(Code)
Returns the Session object associated with the specified session key. The session is put in the 'active' state. If no Session object is associated with the key then this method returns null.
Parameters:
  thread - the thread that should be associated with the session. Onlythis thread can subsequently put the session into the passivestate.
Parameters:
  comms - The presentations manager comms object with allrequest/response information in it.
Parameters:
  sessionKey - The String used to reference a Session object. If the key is associated with an active session, then thecorresponding Session object is returned.Otherwise null is returned.
See Also:   Session
exception:
  SessionException - if the session cannot be retrieved.



getSessionKeys
public Enumeration getSessionKeys(User user) throws SessionException(Code)
Lookup active sessions keys for a user. A given user may have multiple sessions associated with it.
Parameters:
  user - The user to search for. An enumeration of the active sessions keys for the user.
exception:
  SessionException - if the sessions cannot be retrieved.



getSessionKeys
public Enumeration getSessionKeys() throws SessionException(Code)
Get an enumeration of all session keys. An enumeration of the session keys.
exception:
  SessionException - if the session keys cannot be retrieved.



maxSessionCount
public int maxSessionCount()(Code)
Gets the maximum number of concurent sessions that existed at any time since this object was created, or resetMaxSessionCount() was called. This is a historical highwater mark. If you do not implement this feature, return -1. The highwater mark for number of sessions, or -1.



maxSessionCountDate
public Date maxSessionCountDate()(Code)
Gets the time when the maximum refered to by maxSessionCount() occured. The Date of when the maximum number of sessions occured.



passivateSession
public void passivateSession(Thread thread, String sessionKey) throws SessionException(Code)
Puts a session into the 'passive' state. A 'passive' session may be made persistent.
Parameters:
  thread - the thread currently associate with the the session.
Parameters:
  sessionKey - the session key for the session that will be made persistent.
exception:
  SessionException - if the session cannot be put into the passive state..



resetMaxSessionCount
public void resetMaxSessionCount() throws SessionException(Code)
Reset the maximum session count. See maxSessionCount(). The highwater mark should be reset to the current number of sessions.
exception:
  SessionException - if the max session count cannot be reset.



sessionExists
public boolean sessionExists(String sessionKey) throws SessionException(Code)
Returns whether the Session object associated with the specified session key exists.
Parameters:
  sessionKey - The String used to reference a Session object. If the key is associated with an active session, then returntrue, otherwise return false.
exception:
  SessionException - if the existence of the session cannot be determined.



shutdown
public void shutdown()(Code)
Shutdown this session manager as required. The session manager should not be used after this method has been called



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.