OpenAPI 1.0

com.aquafold.openapi
Interface AQSession


public interface AQSession

Provides a way to identify a user across more than one page request or visit to a Web site and to store information about that user.


Method Summary
 Object getAttribute(String name)
          Returns the object bound with the specified name in this session, or null if no object is bound under the name.
 DateFormat getDateFormat()
          Obtains DateFormat for formatting date objects.
 DateFormat getDateTimeFormat()
          Obtains DateFormat for formatting date-time objects.
 String getId()
          Returns a string containing the unique identifier assigned to this session.
 Locale getLocale()
          Returns the session locale.
 NumberFormat getNumberFormat()
          Obtains DecimalFormat for formatting numbers.
 DateFormat getTimeFormat()
          Obtains DateFormat for formatting time objects.
 void invalidate()
          Invalidates this session and unbinds any objects bound to it.
 void removeAttribute(String name)
          Removes the object bound with the specified name from this session.
 void setAttribute(String name, Object value)
          Binds an object to this session, using the name specified.
 

Method Detail

getAttribute

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

Parameters:
name - Object name.

setAttribute

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

Parameters:
name - Object name.
value - Object value.

removeAttribute

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

Parameters:
name - Object name.

getId

String getId()
Returns a string containing the unique identifier assigned to this session.


invalidate

void invalidate()
Invalidates this session and unbinds any objects bound to it.


getLocale

Locale getLocale()
Returns the session locale. This method returns default locale if none was specified.


getDateTimeFormat

DateFormat getDateTimeFormat()
Obtains DateFormat for formatting date-time objects.


getDateFormat

DateFormat getDateFormat()
Obtains DateFormat for formatting date objects.


getTimeFormat

DateFormat getTimeFormat()
Obtains DateFormat for formatting time objects.


getNumberFormat

NumberFormat getNumberFormat()
Obtains DecimalFormat for formatting numbers.


OpenAPI 1.0


Copyright © 2010 AquaFold, Inc. All Rights Reserved. Use is subject to license terms.