Java Doc for AbstractSessionManager.java in  » J2EE » enhydra » org » mortbay » jetty » servlet » 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 » org.mortbay.jetty.servlet 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.mortbay.jetty.servlet.AbstractSessionManager

AbstractSessionManager
abstract public class AbstractSessionManager implements SessionManager(Code)
An Abstract implementation of SessionManager. The partial implementation of SessionManager interface provides the majority of the handling required to implement a SessionManager. Concrete implementations of SessionManager based on AbstractSessionManager need only implement the newSession method to return a specialized version of the Session inner class that provides an attribute Map.

If the property org.mortbay.jetty.servlet.AbstractSessionManager.23Notifications is set to true, the 2.3 servlet spec notification style will be used.


version:
   $Id: AbstractSessionManager.java,v 1.3 2005-08-30 08:10:34 draganr Exp $
author:
   Greg Wilkins (gregw)


Inner Class :class SessionScavenger extends Thread
Inner Class :abstract public class Session implements SessionManager.Session

Field Summary
protected static  MultiMap__allSessions
    
final public static  int__distantFuture
    
protected  boolean_crossContextSessionIDs
    
protected transient  ServletHandler_handler
    
protected  boolean_httpOnly
    
protected  boolean_invalidateGlobal
    
protected  int_maxSessions
    
protected  int_minSessions
    
protected transient  Random_random
    
protected  boolean_secureCookies
    
protected transient  ArrayList_sessionAttributeListeners
    
protected transient  ArrayList_sessionListeners
    
protected transient  Map_sessions
    

Constructor Summary
public  AbstractSessionManager()
    
public  AbstractSessionManager(Random random)
    

Method Summary
public  voidaddEventListener(EventListener listener)
    
public  booleangetCrossContextSessionIDs()
    
public  booleangetHttpOnly()
    
public  HttpSessiongetHttpSession(String id)
    
public  intgetMaxInactiveInterval()
    
public  intgetMaxSessions()
    
public  intgetMinSessions()
    
public  intgetScavengePeriod()
    
public  booleangetSecureCookies()
    
public  CookiegetSessionCookie(HttpSession session, boolean requestIsSecure)
    
public  MapgetSessionMap()
    
public  intgetSessions()
    
public  booleangetUseRequestedId()
    
public  StringgetWorkerName()
     Get the workname.
public  voidinitialize(ServletHandler handler)
    
public  booleanisInvalidateGlobal()
    
public  booleanisStarted()
    
public  HttpSessionnewHttpSession(HttpServletRequest request)
    
abstract protected  SessionnewSession(HttpServletRequest request)
    
public  voidremoveEventListener(EventListener listener)
    
public  voidresetStats()
    
public  voidsetCrossContextSessionIDs(boolean useRequestedId)
     Set Cross Context sessions IDs This option activates a mode where a requested session ID can be used to create a new session.
public  voidsetHttpOnly(boolean httpOnly)
    
public  voidsetInvalidateGlobal(boolean global)
    
public  voidsetMaxInactiveInterval(int seconds)
    
public  voidsetScavengePeriod(int seconds)
    
public  voidsetSecureCookies(boolean secureCookies)
    
public  voidsetUseRequestedId(boolean useRequestedId)
     Set Use Requested ID.
public  voidsetWorkerName(String workerName)
     Set the workname.
public  voidstart()
    
public  voidstop()
    

Field Detail
__allSessions
protected static MultiMap __allSessions(Code)



__distantFuture
final public static int __distantFuture(Code)



_crossContextSessionIDs
protected boolean _crossContextSessionIDs(Code)



_handler
protected transient ServletHandler _handler(Code)



_httpOnly
protected boolean _httpOnly(Code)



_invalidateGlobal
protected boolean _invalidateGlobal(Code)



_maxSessions
protected int _maxSessions(Code)



_minSessions
protected int _minSessions(Code)



_random
protected transient Random _random(Code)



_secureCookies
protected boolean _secureCookies(Code)



_sessionAttributeListeners
protected transient ArrayList _sessionAttributeListeners(Code)



_sessionListeners
protected transient ArrayList _sessionListeners(Code)



_sessions
protected transient Map _sessions(Code)




Constructor Detail
AbstractSessionManager
public AbstractSessionManager()(Code)



AbstractSessionManager
public AbstractSessionManager(Random random)(Code)




Method Detail
addEventListener
public void addEventListener(EventListener listener) throws IllegalArgumentException(Code)



getCrossContextSessionIDs
public boolean getCrossContextSessionIDs()(Code)
True if cross context session IDs are first considered for newsession IDs



getHttpOnly
public boolean getHttpOnly()(Code)
Returns the httpOnly.



getHttpSession
public HttpSession getHttpSession(String id)(Code)



getMaxInactiveInterval
public int getMaxInactiveInterval()(Code)
seconds



getMaxSessions
public int getMaxSessions()(Code)



getMinSessions
public int getMinSessions()(Code)



getScavengePeriod
public int getScavengePeriod()(Code)
seconds



getSecureCookies
public boolean getSecureCookies()(Code)
Returns the secureCookies.



getSessionCookie
public Cookie getSessionCookie(HttpSession session, boolean requestIsSecure)(Code)



getSessionMap
public Map getSessionMap()(Code)



getSessions
public int getSessions()(Code)



getUseRequestedId
public boolean getUseRequestedId()(Code)
True if requested session ID are first considered for new



getWorkerName
public String getWorkerName()(Code)
Get the workname. If set, the workername is dot appended to the session ID and can be used to assist session affinity in a load balancer. String or null



initialize
public void initialize(ServletHandler handler)(Code)



isInvalidateGlobal
public boolean isInvalidateGlobal()(Code)



isStarted
public boolean isStarted()(Code)



newHttpSession
public HttpSession newHttpSession(HttpServletRequest request)(Code)



newSession
abstract protected Session newSession(HttpServletRequest request)(Code)



removeEventListener
public void removeEventListener(EventListener listener)(Code)



resetStats
public void resetStats()(Code)



setCrossContextSessionIDs
public void setCrossContextSessionIDs(boolean useRequestedId)(Code)
Set Cross Context sessions IDs This option activates a mode where a requested session ID can be used to create a new session. This facilitates the sharing of session cookies when cross context dispatches use sessions.
Parameters:
  useRequestedId - True if cross context session ID are first considered for newsession IDs



setHttpOnly
public void setHttpOnly(boolean httpOnly)(Code)

Parameters:
  httpOnly - The httpOnly to set.



setInvalidateGlobal
public void setInvalidateGlobal(boolean global)(Code)

Parameters:
  global - True if session invalidation should be global.ie Sessions in other contexts with the same ID (linked by cross context dispatchor shared session cookie) are invalidated as a group.



setMaxInactiveInterval
public void setMaxInactiveInterval(int seconds)(Code)

Parameters:
  seconds -



setScavengePeriod
public void setScavengePeriod(int seconds)(Code)

Parameters:
  seconds -



setSecureCookies
public void setSecureCookies(boolean secureCookies)(Code)

Parameters:
  secureCookies - The secureCookies to set.



setUseRequestedId
public void setUseRequestedId(boolean useRequestedId)(Code)
Set Use Requested ID.
Parameters:
  useRequestedId - True if requested session ID are first considered for newsession IDs



setWorkerName
public void setWorkerName(String workerName)(Code)
Set the workname. If set, the workername is dot appended to the session ID and can be used to assist session affinity in a load balancer.
Parameters:
  workerName -



start
public void start() throws Exception(Code)



stop
public void stop()(Code)



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.