Class BrowserTabSessionImpl
java.lang.Object
name.matthewgreet.strutscommons.action.BrowserTabSessionImpl
- All Implemented Interfaces:
javax.servlet.http.HttpSession,BrowserTabSession
Implementation of
BrowserTabSession.-
Constructor Summary
ConstructorsConstructorDescriptionBrowserTabSessionImpl(javax.servlet.http.HttpSession httpSession, String tabId) -
Method Summary
Modifier and TypeMethodDescriptionReturns ids of all browser tabs known to exist for the user.getAttribute(String name) Returns object bound to name, whether as private or shared attribute, or null if none.protected ObjectgetAttributeInternal(String name) Returns shallow copy of all attributes, whether private or shared.Returns an enumeration of all attribute names, whether private or shared.longjavax.servlet.http.HttpSessionReturns underlying request session.getId()longintReturns shallow copy of private, tab-specific attributes.Returns set of names of private, tab-specific attributes.javax.servlet.ServletContextjavax.servlet.http.HttpSessionContextReturns shallow copy of shared attributes.Returns set of names of shared attributes.getTabId()Returns id of browser tab.String[]voidbooleanisNew()protected voidpurgePrivateAttributes(String name) voidvoidremoveAttribute(String name) protected voidvoidremoveValue(String name) voidsetAttribute(String name, Object value) Binds an object to a name as a private, tab-specific attribute, replacing any existing value.protected voidsetAttributeInternal(String name, Object value) voidsetMaxInactiveInterval(int interval) voidsetSharedAttribute(String name, Object value) LikeBrowserTabSession.setAttribute(java.lang.String, java.lang.Object), binds an object to a name but as a shared attribute.
-
Constructor Details
-
BrowserTabSessionImpl
-
-
Method Details
-
getAttributeInternal
-
getGuaranteedPrivateMap
-
getPrivateAttributeNamesInternal
-
purgePrivateAttributes
-
removeAttributeInternal
-
setAttributeInternal
-
getAllTabIds
Description copied from interface:BrowserTabSessionReturns ids of all browser tabs known to exist for the user.- Specified by:
getAllTabIdsin interfaceBrowserTabSession
-
getAttribute
Description copied from interface:BrowserTabSessionReturns object bound to name, whether as private or shared attribute, or null if none.- Specified by:
getAttributein interfaceBrowserTabSession- Specified by:
getAttributein interfacejavax.servlet.http.HttpSession
-
getAttributeMap
Description copied from interface:BrowserTabSessionReturns shallow copy of all attributes, whether private or shared. Changing the map won't affect the session.- Specified by:
getAttributeMapin interfaceBrowserTabSession
-
getAttributeNames
Description copied from interface:BrowserTabSessionReturns an enumeration of all attribute names, whether private or shared.- Specified by:
getAttributeNamesin interfaceBrowserTabSession- Specified by:
getAttributeNamesin interfacejavax.servlet.http.HttpSession
-
getCreationTime
public long getCreationTime()- Specified by:
getCreationTimein interfacejavax.servlet.http.HttpSession
-
getHttpSession
public javax.servlet.http.HttpSession getHttpSession()Description copied from interface:BrowserTabSessionReturns underlying request session.- Specified by:
getHttpSessionin interfaceBrowserTabSession
-
getId
- Specified by:
getIdin interfacejavax.servlet.http.HttpSession
-
getLastAccessedTime
public long getLastAccessedTime()- Specified by:
getLastAccessedTimein interfacejavax.servlet.http.HttpSession
-
getMaxInactiveInterval
public int getMaxInactiveInterval()- Specified by:
getMaxInactiveIntervalin interfacejavax.servlet.http.HttpSession
-
getPrivateAttributeMap
Description copied from interface:BrowserTabSessionReturns shallow copy of private, tab-specific attributes. Changing the map won't affect the session.- Specified by:
getPrivateAttributeMapin interfaceBrowserTabSession
-
getPrivateAttributeNames
Description copied from interface:BrowserTabSessionReturns set of names of private, tab-specific attributes.- Specified by:
getPrivateAttributeNamesin interfaceBrowserTabSession
-
getServletContext
public javax.servlet.ServletContext getServletContext()- Specified by:
getServletContextin interfacejavax.servlet.http.HttpSession
-
getSessionContext
public javax.servlet.http.HttpSessionContext getSessionContext()- Specified by:
getSessionContextin interfacejavax.servlet.http.HttpSession
-
getTabId
Description copied from interface:BrowserTabSessionReturns id of browser tab.- Specified by:
getTabIdin interfaceBrowserTabSession
-
getValue
- Specified by:
getValuein interfacejavax.servlet.http.HttpSession
-
getValueNames
- Specified by:
getValueNamesin interfacejavax.servlet.http.HttpSession
-
invalidate
public void invalidate()- Specified by:
invalidatein interfacejavax.servlet.http.HttpSession
-
isNew
public boolean isNew()- Specified by:
isNewin interfacejavax.servlet.http.HttpSession
-
putValue
- Specified by:
putValuein interfacejavax.servlet.http.HttpSession
-
removeAttribute
- Specified by:
removeAttributein interfacejavax.servlet.http.HttpSession
-
removeValue
- Specified by:
removeValuein interfacejavax.servlet.http.HttpSession
-
setAttribute
Description copied from interface:BrowserTabSessionBinds an object to a name as a private, tab-specific attribute, replacing any existing value. If the attribute already exists and is shared, the attribute remains shared.- Specified by:
setAttributein interfaceBrowserTabSession- Specified by:
setAttributein interfacejavax.servlet.http.HttpSession
-
setMaxInactiveInterval
public void setMaxInactiveInterval(int interval) - Specified by:
setMaxInactiveIntervalin interfacejavax.servlet.http.HttpSession
-