OBEROn SDK

com.oberon.client
Class ApplicationSession

java.lang.Object
  extended by com.oberon.client.ApplicationSession
All Implemented Interfaces:
javax.servlet.http.HttpSession

public final class ApplicationSession
extends java.lang.Object
implements javax.servlet.http.HttpSession

Provides a way to identify a user across more than one page request

Version:
5.0

Constructor Summary
ApplicationSession()
           
 
Method Summary
 java.lang.Object getAttribute(java.lang.String name)
          Returns the object bound with the specified name in this session, or null if no object is bound under the name.
 java.util.Enumeration<java.lang.String> getAttributeNames()
          Returns an Enumeration of String objects containing the names of all the objects bound to this session.
 long getCreationTime()
          Returns the time when this session was created, measured in milliseconds since midnight January 1, 1970 GMT
 java.lang.String getId()
          Returns empty string
 long getLastAccessedTime()
          Returns the creation time
 int getMaxInactiveInterval()
          Returns the maximum time interval, in seconds, that the servlet container will keep this session open between client accesses
 javax.servlet.ServletContext getServletContext()
          Returns null
 javax.servlet.http.HttpSessionContext getSessionContext()
          Returns null
 java.lang.Object getValue(java.lang.String name)
          Deprecated. 
 java.lang.String[] getValueNames()
          Deprecated. 
 void invalidate()
          Invalidates this session
 boolean isNew()
          Returns false
 void putValue(java.lang.String name, java.lang.Object value)
          Deprecated. 
 void removeAttribute(java.lang.String name)
          Removes the object bound with the specified name from this session.
 void removeValue(java.lang.String name)
          Deprecated. 
 void setAttribute(java.lang.String name, java.lang.Object object)
          Binds an object to this session, using the name specified.
 void setMaxInactiveInterval(int interval)
          Specifies the time, in seconds, between client requests before the servlet container will invalidate this session.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplicationSession

public ApplicationSession()
Method Detail

invalidate

public void invalidate()
Invalidates this session

Specified by:
invalidate in interface javax.servlet.http.HttpSession

isNew

public boolean isNew()
Returns false

Specified by:
isNew in interface javax.servlet.http.HttpSession

setAttribute

public void setAttribute(java.lang.String name,
                         java.lang.Object object)
Binds an object to this session, using the name specified.

Specified by:
setAttribute in interface javax.servlet.http.HttpSession
Parameters:
name - the name to which the object is bound; cannot be null
object - the object to be bound

setMaxInactiveInterval

public void setMaxInactiveInterval(int interval)
Specifies the time, in seconds, between client requests before the servlet container will invalidate this session.

Specified by:
setMaxInactiveInterval in interface javax.servlet.http.HttpSession

putValue

@Deprecated
public void putValue(java.lang.String name,
                                java.lang.Object value)
Deprecated. 

Binds an object to this session, using the name specified. this method is replaced by setAttribute(java.lang.String, java.lang.Object)

Specified by:
putValue in interface javax.servlet.http.HttpSession

removeAttribute

public void removeAttribute(java.lang.String name)
Removes the object bound with the specified name from this session.

Specified by:
removeAttribute in interface javax.servlet.http.HttpSession
Parameters:
name - the name to which the object is bound

removeValue

@Deprecated
public void removeValue(java.lang.String name)
Deprecated. 

Removes the object bound with the specified name from this session. this method is replaced by removeAttribute(java.lang.String)

Specified by:
removeValue in interface javax.servlet.http.HttpSession

getAttribute

public java.lang.Object getAttribute(java.lang.String name)
Returns the object bound with the specified name in this session, or null if no object is bound under the name.

Specified by:
getAttribute in interface javax.servlet.http.HttpSession
Parameters:
name - - a string specifying the name of the object

getAttributeNames

public java.util.Enumeration<java.lang.String> getAttributeNames()
Returns an Enumeration of String objects containing the names of all the objects bound to this session.

Specified by:
getAttributeNames in interface javax.servlet.http.HttpSession

getCreationTime

public long getCreationTime()
Returns the time when this session was created, measured in milliseconds since midnight January 1, 1970 GMT

Specified by:
getCreationTime in interface javax.servlet.http.HttpSession

getId

public java.lang.String getId()
Returns empty string

Specified by:
getId in interface javax.servlet.http.HttpSession

getLastAccessedTime

public long getLastAccessedTime()
Returns the creation time

Specified by:
getLastAccessedTime in interface javax.servlet.http.HttpSession

getMaxInactiveInterval

public int getMaxInactiveInterval()
Returns the maximum time interval, in seconds, that the servlet container will keep this session open between client accesses

Specified by:
getMaxInactiveInterval in interface javax.servlet.http.HttpSession

getServletContext

public javax.servlet.ServletContext getServletContext()
Returns null

Specified by:
getServletContext in interface javax.servlet.http.HttpSession

getSessionContext

public javax.servlet.http.HttpSessionContext getSessionContext()
Returns null

Specified by:
getSessionContext in interface javax.servlet.http.HttpSession

getValue

@Deprecated
public java.lang.Object getValue(java.lang.String name)
Deprecated. 

Returns the object bound with the specified name in this session, or null if no object is bound under the name. this method is replaced by getAttribute(java.lang.String)

Specified by:
getValue in interface javax.servlet.http.HttpSession

getValueNames

@Deprecated
public java.lang.String[] getValueNames()
Deprecated. 

Returns an array of String objects specifying the names of all the objects bound to this session this method is replaced by getAttributeNames()

Specified by:
getValueNames in interface javax.servlet.http.HttpSession

OBEROn SDK

Copyright © 2008-2014 Mirko Solazzi. All Rights Reserved.