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


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

All known Subclasses:   org.mortbay.jetty.servlet.HashSessionManager,
AbstractSessionManager
abstract public class AbstractSessionManager extends AbstractLifeCycle 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.


author:
   Greg Wilkins (gregw)


Inner Class :public static class NullSessionContext implements HttpSessionContext
Inner Class :abstract public class Session implements HttpSession,Serializable

Field Summary
final public static  int__distantFuture
    
protected  ContextHandler.SContext_context
    
protected  int_dftMaxIdleSecs
    
protected  boolean_httpOnly
    
protected  ClassLoader_loader
    
protected  int_maxCookieAge
    
protected  int_maxSessions
    
protected  int_minSessions
    
protected  int_refreshCookieAge
    
protected  boolean_secureCookies
    
protected  Object_sessionAttributeListeners
    
protected  String_sessionCookie
    
protected  String_sessionDomain
    
protected  SessionHandler_sessionHandler
    
protected  SessionIdManager_sessionIdManager
    
protected  Object_sessionListeners
    
protected  String_sessionPath
    
protected  String_sessionURL
    
protected  String_sessionURLPrefix
    

Constructor Summary
public  AbstractSessionManager()
    

Method Summary
public  Cookieaccess(HttpSession session, boolean secure)
    
public  voidaddEventListener(EventListener listener)
    
abstract protected  voidaddSession(Session session)
    
protected  voidaddSession(Session session, boolean created)
    
public  voidclearEventListeners()
    
public  voidcomplete(HttpSession session)
    
public  voiddoStart()
    
public  voiddoStop()
    
public  booleangetHttpOnly()
    
public  HttpSessiongetHttpSession(String id)
    
public  SessionIdManagergetIdManager()
    
public  intgetMaxCookieAge()
    
public  intgetMaxInactiveInterval()
    
public  intgetMaxSessions()
    
public  SessionIdManagergetMetaManager()
    
public  intgetMinSessions()
    
public  intgetRefreshCookieAge()
    
public  booleangetSecureCookies()
    
abstract protected  SessiongetSession(String idInCluster)
     Get a known existingsession
Parameters:
  idInCluster - The session ID in the cluster, stripped of any worker name.
public  StringgetSessionCookie()
    
public  CookiegetSessionCookie(HttpSession session, String contextPath, boolean requestIsSecure)
    
public  StringgetSessionDomain()
    
public  SessionHandlergetSessionHandler()
    
abstract public  MapgetSessionMap()
     Need to review if it is needed.
public  StringgetSessionPath()
    
public  StringgetSessionURL()
    
public  StringgetSessionURLPrefix()
    
abstract public  intgetSessions()
    
abstract protected  voidinvalidateSessions()
    
public  booleanisUsingCookies()
    
public  booleanisValid(HttpSession session)
    
public  HttpSessionnewHttpSession(HttpServletRequest request)
    
abstract protected  SessionnewSession(HttpServletRequest request)
    
final protected  voidnewSessionMap()
    
public  voidremoveEventListener(EventListener listener)
    
protected  voidremoveSession(Session session, boolean invalidate)
    
abstract protected  voidremoveSession(String idInCluster)
    
public  voidresetStats()
    
public  voidsetHttpOnly(boolean httpOnly)
    
public  voidsetIdManager(SessionIdManager metaManager)
    
public  voidsetMaxCookieAge(int maxCookieAgeInSeconds)
    
public  voidsetMaxInactiveInterval(int seconds)
    
public  voidsetMetaManager(SessionIdManager metaManager)
    
public  voidsetRefreshCookieAge(int ageInSeconds)
    
public  voidsetSecureCookies(boolean secureCookies)
    
public  voidsetSessionCookie(String cookieName)
    
public  voidsetSessionDomain(String domain)
    
public  voidsetSessionHandler(SessionHandler sessionHandler)
    
public  voidsetSessionPath(String path)
    
public  voidsetSessionURL(String url)
    
public  voidsetUsingCookies(boolean usingCookies)
    

Field Detail
__distantFuture
final public static int __distantFuture(Code)



_context
protected ContextHandler.SContext _context(Code)



_dftMaxIdleSecs
protected int _dftMaxIdleSecs(Code)



_httpOnly
protected boolean _httpOnly(Code)



_loader
protected ClassLoader _loader(Code)



_maxCookieAge
protected int _maxCookieAge(Code)



_maxSessions
protected int _maxSessions(Code)



_minSessions
protected int _minSessions(Code)



_refreshCookieAge
protected int _refreshCookieAge(Code)



_secureCookies
protected boolean _secureCookies(Code)



_sessionAttributeListeners
protected Object _sessionAttributeListeners(Code)



_sessionCookie
protected String _sessionCookie(Code)



_sessionDomain
protected String _sessionDomain(Code)



_sessionHandler
protected SessionHandler _sessionHandler(Code)



_sessionIdManager
protected SessionIdManager _sessionIdManager(Code)



_sessionListeners
protected Object _sessionListeners(Code)



_sessionPath
protected String _sessionPath(Code)



_sessionURL
protected String _sessionURL(Code)



_sessionURLPrefix
protected String _sessionURLPrefix(Code)




Constructor Detail
AbstractSessionManager
public AbstractSessionManager()(Code)




Method Detail
access
public Cookie access(HttpSession session, boolean secure)(Code)



addEventListener
public void addEventListener(EventListener listener)(Code)



addSession
abstract protected void addSession(Session session)(Code)



addSession
protected void addSession(Session session, boolean created)(Code)
Add the session Registers the session with this manager and registers the session ID with the sessionIDManager;



clearEventListeners
public void clearEventListeners()(Code)



complete
public void complete(HttpSession session)(Code)



doStart
public void doStart() throws Exception(Code)



doStop
public void doStop() throws Exception(Code)



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



getHttpSession
public HttpSession getHttpSession(String id)(Code)



getIdManager
public SessionIdManager getIdManager()(Code)
Returns the metaManager used for cross context session management



getMaxCookieAge
public int getMaxCookieAge()(Code)



getMaxInactiveInterval
public int getMaxInactiveInterval()(Code)
seconds



getMaxSessions
public int getMaxSessions()(Code)



getMetaManager
public SessionIdManager getMetaManager()(Code)
AbstractSessionManager.getIdManager()



getMinSessions
public int getMinSessions()(Code)



getRefreshCookieAge
public int getRefreshCookieAge()(Code)



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



getSession
abstract protected Session getSession(String idInCluster)(Code)
Get a known existingsession
Parameters:
  idInCluster - The session ID in the cluster, stripped of any worker name. A Session or null if none exists.



getSessionCookie
public String getSessionCookie()(Code)



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



getSessionDomain
public String getSessionDomain()(Code)



getSessionHandler
public SessionHandler getSessionHandler()(Code)
Returns the sessionHandler.



getSessionMap
abstract public Map getSessionMap()(Code)
Need to review if it is needed.



getSessionPath
public String getSessionPath()(Code)



getSessionURL
public String getSessionURL()(Code)



getSessionURLPrefix
public String getSessionURLPrefix()(Code)



getSessions
abstract public int getSessions()(Code)



invalidateSessions
abstract protected void invalidateSessions()(Code)



isUsingCookies
public boolean isUsingCookies()(Code)
Returns the usingCookies.



isValid
public boolean isValid(HttpSession session)(Code)



newHttpSession
public HttpSession newHttpSession(HttpServletRequest request)(Code)
Create a new HttpSession for a request



newSession
abstract protected Session newSession(HttpServletRequest request)(Code)
Create a new session instance
Parameters:
  request -



newSessionMap
final protected void newSessionMap()(Code)



removeEventListener
public void removeEventListener(EventListener listener)(Code)



removeSession
protected void removeSession(Session session, boolean invalidate)(Code)
Remove session from manager
Parameters:
  session - The session to remove
Parameters:
  invalidate - True if HttpSessionListener.sessionDestroyed(HttpSessionEvent) andSessionIdManager.invalidateAll(String) should be called.



removeSession
abstract protected void removeSession(String idInCluster)(Code)



resetStats
public void resetStats()(Code)



setHttpOnly
public void setHttpOnly(boolean httpOnly)(Code)

Parameters:
  httpOnly - The httpOnly to set.



setIdManager
public void setIdManager(SessionIdManager metaManager)(Code)

Parameters:
  metaManager - The metaManager used for cross context session management.



setMaxCookieAge
public void setMaxCookieAge(int maxCookieAgeInSeconds)(Code)



setMaxInactiveInterval
public void setMaxInactiveInterval(int seconds)(Code)

Parameters:
  seconds -



setMetaManager
public void setMetaManager(SessionIdManager metaManager)(Code)
AbstractSessionManager.setIdManager(SessionIdManager)



setRefreshCookieAge
public void setRefreshCookieAge(int ageInSeconds)(Code)



setSecureCookies
public void setSecureCookies(boolean secureCookies)(Code)

Parameters:
  secureCookies - The secureCookies to set.



setSessionCookie
public void setSessionCookie(String cookieName)(Code)



setSessionDomain
public void setSessionDomain(String domain)(Code)



setSessionHandler
public void setSessionHandler(SessionHandler sessionHandler)(Code)

Parameters:
  sessionHandler - The sessionHandler to set.



setSessionPath
public void setSessionPath(String path)(Code)



setSessionURL
public void setSessionURL(String url)(Code)



setUsingCookies
public void setUsingCookies(boolean usingCookies)(Code)

Parameters:
  usingCookies - The usingCookies to set.



Methods inherited from org.mortbay.component.AbstractLifeCycle
protected void doStart() throws Exception(Code)(Java Doc)
protected void doStop() throws Exception(Code)(Java Doc)
public boolean isFailed()(Code)(Java Doc)
public boolean isRunning()(Code)(Java Doc)
public boolean isStarted()(Code)(Java Doc)
public boolean isStarting()(Code)(Java Doc)
public boolean isStopped()(Code)(Java Doc)
public boolean isStopping()(Code)(Java Doc)
final public void start() throws Exception(Code)(Java Doc)
final public void stop() throws Exception(Code)(Java Doc)

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.