Java Doc for SessionManager.java in  » Sevlet-Container » jetty-modules » org » mortbay » jetty » 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 » Sevlet Container » jetty modules » org.mortbay.jetty 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.mortbay.jetty.SessionManager

All known Subclasses:   org.mortbay.jetty.servlet.AbstractSessionManager,
SessionManager
public interface SessionManager extends LifeCycle(Code)
Session Manager. The API required to manage sessions for a servlet context.
author:
   Greg Wilkins


Field Summary
final public static  String__DefaultSessionCookie
    
final public static  String__DefaultSessionDomain
    
final public static  String__DefaultSessionURL
    
final public static  String__MaxAgeProperty
     Session Max Age. If this property is set as a ServletContext InitParam, then it is used as the max age for the session cookie.
final public static  String__SessionCookieProperty
     Session cookie name.
final public static  String__SessionDomainProperty
     Session Domain. If this property is set as a ServletContext InitParam, then it is used as the domain for session cookies.
final public static  String__SessionPathProperty
     Session Path. If this property is set as a ServletContext InitParam, then it is used as the path for the session cookie.
final public static  String__SessionURLProperty
     Session URL parameter name.


Method Summary
public  Cookieaccess(HttpSession session, boolean secure)
    
public  voidaddEventListener(EventListener listener)
     Add an event listener.
Parameters:
  listener - An Event Listener.
public  voidclearEventListeners()
    
public  voidcomplete(HttpSession session)
     Called by the SessionHandler when a reqeuest is not longer handling a session.
public  booleangetHttpOnly()
    
public  HttpSessiongetHttpSession(String id)
    
public  intgetMaxCookieAge()
    
public  intgetMaxInactiveInterval()
    
public  SessionIdManagergetMetaManager()
    
public  booleangetSecureCookies()
    
public  CookiegetSessionCookie(HttpSession session, String contextPath, boolean requestIsSecure)
     Get a Cookie for a session.
Parameters:
  session - The session to which the cookie should refer.
Parameters:
  contextPath - The context to which the cookie should be linked.
public  StringgetSessionCookie()
    
public  StringgetSessionDomain()
    
public  StringgetSessionPath()
    
public  StringgetSessionURL()
    
public  StringgetSessionURLPrefix()
    
public  booleanisValid(HttpSession session)
    
public  HttpSessionnewHttpSession(HttpServletRequest request)
    
public  voidremoveEventListener(EventListener listener)
    
public  voidsetIdManager(SessionIdManager meta)
    
public  voidsetMaxCookieAge(int maxCookieAgeInSeconds)
    
public  voidsetMaxInactiveInterval(int seconds)
    
public  voidsetSessionCookie(String cookieName)
    
public  voidsetSessionDomain(String domain)
    
public  voidsetSessionHandler(SessionHandler handler)
    
public  voidsetSessionPath(String path)
    
public  voidsetSessionURL(String url)
    

Field Detail
__DefaultSessionCookie
final public static String __DefaultSessionCookie(Code)



__DefaultSessionDomain
final public static String __DefaultSessionDomain(Code)



__DefaultSessionURL
final public static String __DefaultSessionURL(Code)



__MaxAgeProperty
final public static String __MaxAgeProperty(Code)
Session Max Age. If this property is set as a ServletContext InitParam, then it is used as the max age for the session cookie. If it is not set, then a max age of -1 is used.



__SessionCookieProperty
final public static String __SessionCookieProperty(Code)
Session cookie name. Defaults to JSESSIONID, but can be set with the org.mortbay.jetty.servlet.SessionCookie system property.



__SessionDomainProperty
final public static String __SessionDomainProperty(Code)
Session Domain. If this property is set as a ServletContext InitParam, then it is used as the domain for session cookies. If it is not set, then no domain is specified for the session cookie.



__SessionPathProperty
final public static String __SessionPathProperty(Code)
Session Path. If this property is set as a ServletContext InitParam, then it is used as the path for the session cookie. If it is not set, then the context path is used as the path for the cookie.



__SessionURLProperty
final public static String __SessionURLProperty(Code)
Session URL parameter name. Defaults to jsessionid, but can be set with the org.mortbay.jetty.servlet.SessionURL system property.





Method Detail
access
public Cookie access(HttpSession session, boolean secure)(Code)
Called by the SessionHandler when a session is access by a request Cookie If non null, this cookie should be set on the response to either migrate the session or to refresh a cookie that may expire.



addEventListener
public void addEventListener(EventListener listener)(Code)
Add an event listener.
Parameters:
  listener - An Event Listener. Individual SessionManagersimplemetations may accept arbitrary listener types, but theyare expected to at least handleHttpSessionActivationListener,HttpSessionAttributeListener,HttpSessionBindingListener,HttpSessionListener



clearEventListeners
public void clearEventListeners()(Code)



complete
public void complete(HttpSession session)(Code)
Called by the SessionHandler when a reqeuest is not longer handling a session. Not this includes new sessions, so there may not be a matching call to SessionManager.access(HttpSession) .



getHttpOnly
public boolean getHttpOnly()(Code)
true if session cookies should be httponly (microsoft extension)



getHttpSession
public HttpSession getHttpSession(String id)(Code)



getMaxCookieAge
public int getMaxCookieAge()(Code)



getMaxInactiveInterval
public int getMaxInactiveInterval()(Code)



getMetaManager
public SessionIdManager getMetaManager()(Code)
the cross context session meta manager.



getSecureCookies
public boolean getSecureCookies()(Code)
true if session cookies should be secure



getSessionCookie
public Cookie getSessionCookie(HttpSession session, String contextPath, boolean requestIsSecure)(Code)
Get a Cookie for a session.
Parameters:
  session - The session to which the cookie should refer.
Parameters:
  contextPath - The context to which the cookie should be linked. The client will only send the cookie valuewhen requesting resources under this path.
Parameters:
  requestIsSecure - Whether the client is accessing the server over a secure protocol (i.e. HTTPS). If this SessionManager uses cookies, then this method will return a new Cookie cookie object that should be set on the client in order to link future HTTP requestswith the session. If cookies are not in use, this method returns null.



getSessionCookie
public String getSessionCookie()(Code)



getSessionDomain
public String getSessionDomain()(Code)



getSessionPath
public String getSessionPath()(Code)



getSessionURL
public String getSessionURL()(Code)



getSessionURLPrefix
public String getSessionURLPrefix()(Code)



isValid
public boolean isValid(HttpSession session)(Code)



newHttpSession
public HttpSession newHttpSession(HttpServletRequest request)(Code)



removeEventListener
public void removeEventListener(EventListener listener)(Code)



setIdManager
public void setIdManager(SessionIdManager meta)(Code)

Parameters:
  meta - the cross context session meta manager.



setMaxCookieAge
public void setMaxCookieAge(int maxCookieAgeInSeconds)(Code)



setMaxInactiveInterval
public void setMaxInactiveInterval(int seconds)(Code)



setSessionCookie
public void setSessionCookie(String cookieName)(Code)



setSessionDomain
public void setSessionDomain(String domain)(Code)



setSessionHandler
public void setSessionHandler(SessionHandler handler)(Code)



setSessionPath
public void setSessionPath(String path)(Code)



setSessionURL
public void setSessionURL(String url)(Code)



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