org.ow2.opensuit.core.session
Class OpenSuitSession

java.lang.Object
  extended by org.ow2.opensuit.core.session.OpenSuitSession
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
OpenSuitSessionImpl

public abstract class OpenSuitSession
extends java.lang.Object
implements java.io.Serializable

This class gives access to user session in open SUIT.
Main notions managed by the open SUIT session are:

See Also:
Serialized Form

Field Summary
protected static java.lang.ThreadLocal<org.ow2.opensuit.xml.base.Application> CURRENT_APP
           
protected static java.lang.ThreadLocal<javax.servlet.http.HttpServletRequest> CURRENT_REQ
           
protected static java.lang.ThreadLocal<javax.servlet.http.HttpServletResponse> CURRENT_RESP
           
 
Constructor Summary
OpenSuitSession()
           
 
Method Summary
abstract  java.lang.Object getAttribute(java.lang.String iName)
           
abstract  java.util.Set<java.lang.String> getAttributeNames()
           
static org.ow2.opensuit.xml.base.Application getCurrentApplication()
          Returns the current Open Suit Application.
abstract  PageContext getCurrentPageContext()
          Returns the current page context.
static javax.servlet.http.HttpServletRequest getCurrentRequest()
          Returns the current http request.
static javax.servlet.http.HttpServletResponse getCurrentResponse()
          Returns the current http response.
static OpenSuitSession getCurrentSession()
          Returns the current Open Suit Session.
abstract  java.util.Locale getLocale()
          Returns the current user's locale.
abstract  ILocaleConfig getLocaleConfig()
          Returns the current user's locale configuration.
static OpenSuitSession getSession(javax.servlet.http.HttpServletRequest iRequest)
          Returns the user's open SUIT session associated to the given http request.
abstract  void removeAttribute(java.lang.String iName)
           
abstract  void setAttribute(java.lang.String iName, java.lang.Object iValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CURRENT_APP

protected static final java.lang.ThreadLocal<org.ow2.opensuit.xml.base.Application> CURRENT_APP

CURRENT_REQ

protected static final java.lang.ThreadLocal<javax.servlet.http.HttpServletRequest> CURRENT_REQ

CURRENT_RESP

protected static final java.lang.ThreadLocal<javax.servlet.http.HttpServletResponse> CURRENT_RESP
Constructor Detail

OpenSuitSession

public OpenSuitSession()
Method Detail

getCurrentRequest

public static javax.servlet.http.HttpServletRequest getCurrentRequest()
Returns the current http request.


getCurrentResponse

public static javax.servlet.http.HttpServletResponse getCurrentResponse()
Returns the current http response.


getCurrentApplication

public static org.ow2.opensuit.xml.base.Application getCurrentApplication()
Returns the current Open Suit Application.


getCurrentSession

public static OpenSuitSession getCurrentSession()
Returns the current Open Suit Session.


getSession

public static OpenSuitSession getSession(javax.servlet.http.HttpServletRequest iRequest)
Returns the user's open SUIT session associated to the given http request.

Parameters:
iRequest - The current http request.

getLocale

public abstract java.util.Locale getLocale()
Returns the current user's locale.


getLocaleConfig

public abstract ILocaleConfig getLocaleConfig()
Returns the current user's locale configuration.


setAttribute

public abstract void setAttribute(java.lang.String iName,
                                  java.lang.Object iValue)

getAttribute

public abstract java.lang.Object getAttribute(java.lang.String iName)

removeAttribute

public abstract void removeAttribute(java.lang.String iName)

getAttributeNames

public abstract java.util.Set<java.lang.String> getAttributeNames()

getCurrentPageContext

public abstract PageContext getCurrentPageContext()
Returns the current page context.



Copyright © 2008-2012 OW2 Consortium. All Rights Reserved.