Java Doc for SessionBean.java in  » Web-Framework » helma » helma » framework » core » 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 » Web Framework » helma » helma.framework.core 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   helma.framework.core.SessionBean

SessionBean
public class SessionBean implements Serializable(Code)
The SessionBean wraps a Session object and exposes it to the scripting framework.


Field Summary
 Sessionsession
    

Constructor Summary
public  SessionBean(Session session)
     Creates a new SessionBean around a Session object.

Method Summary
public  StringgetCookie()
     Returns the unique identifier for a session object (session cookie).
public  INodegetData()
     Get the cache/data node for this session.
public  DategetLastActive()
     Returns the time this session was last touched.
public  DategetLastModified()
     Gets the date at which the session was created or a login or logout was performed the last time.
public  StringgetMessage()
     Return the message that is to be displayed upon the next request within this session.
public  DategetOnSince()
     Returns a date object representing the time a user's session was started.
public  UploadStatusgetUploadStatus(String uploadId)
     Get an upload status for the current user session.
public  INodegetUser()
     Gets the user object for this session.
public  Stringget_id()
     Returns the unique identifier for a session object (session cookie).
public  DatelastActive()
     Returns the time this session was last touched.
public  booleanlogin(String username, String password)
     Attempts to log in a user with the given username/password credentials.
public  voidlogin(INode userNode)
     Directly associates the session with a user object without requiring a username/password pair.
public  voidlogout()
     Disassociate this session from any user object it may have been associated with.
public  DateonSince()
     Returns the time this session was created.
public  voidsetLastModified(Date date)
     Sets the date at which the session was created or a login or logout was performed the last time.
public  voidsetMessage(String msg)
     Set a message to be displayed to this session's user.
public  StringtoString()
    
public  voidtouch()
     Touching the session marks it as active, avoiding session timeout. Usually, sessions are touched when the user associated with it sends a request.

Field Detail
session
Session session(Code)




Constructor Detail
SessionBean
public SessionBean(Session session)(Code)
Creates a new SessionBean around a Session object.
Parameters:
  session - ...




Method Detail
getCookie
public String getCookie()(Code)
Returns the unique identifier for a session object (session cookie). ...



getData
public INode getData()(Code)
Get the cache/data node for this session. This object may be used to store transient per-session data. It is reflected to the scripting environment as session.data.



getLastActive
public Date getLastActive()(Code)
Returns the time this session was last touched. ...



getLastModified
public Date getLastModified()(Code)
Gets the date at which the session was created or a login or logout was performed the last time. ...



getMessage
public String getMessage()(Code)
Return the message that is to be displayed upon the next request within this session. the message, or null if none was set.



getOnSince
public Date getOnSince()(Code)
Returns a date object representing the time a user's session was started. ...



getUploadStatus
public UploadStatus getUploadStatus(String uploadId)(Code)
Get an upload status for the current user session.
Parameters:
  uploadId - the upload id the upload status



getUser
public INode getUser()(Code)
Gets the user object for this session. This method returns null unless one of the session.login methods was previously invoked. ...



get_id
public String get_id()(Code)
Returns the unique identifier for a session object (session cookie). ...



lastActive
public Date lastActive()(Code)
Returns the time this session was last touched. ...



login
public boolean login(String username, String password)(Code)
Attempts to log in a user with the given username/password credentials. If username and password match, the user node is associated with the session and bound to the session.user property.
Parameters:
  username - the username
Parameters:
  password - the password true if the user exists and the password matches the user's password property.



login
public void login(INode userNode)(Code)
Directly associates the session with a user object without requiring a username/password pair. This is for applications that use their own authentication mechanism.
Parameters:
  userNode - the HopObject node representing the user.



logout
public void logout()(Code)
Disassociate this session from any user object it may have been associated with.



onSince
public Date onSince()(Code)
Returns the time this session was created. ...



setLastModified
public void setLastModified(Date date)(Code)
Sets the date at which the session was created or a login or logout was performed the last time.
Parameters:
  date - ...



setMessage
public void setMessage(String msg)(Code)
Set a message to be displayed to this session's user. This can be used to save a message over to the next request when the current request can't be used to display a user visible message.
Parameters:
  msg -



toString
public String toString()(Code)
...



touch
public void touch()(Code)
Touching the session marks it as active, avoiding session timeout. Usually, sessions are touched when the user associated with it sends a request. This method may be used to artificially keep a session alive.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

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