Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Eclipse Rich Ajax Platform
Release 1.2

org.eclipse.rwt
Class RWT


java.lang.Object
  extended by
org.eclipse.rwt.RWT

public final class RWT
extends Object

This class provides access to aspects of RWT which are not part of the SWT API as RAP needs some additions regarding the server and client communication. It is responsible for providing access to the ISessionStore and the HttpServletRequest.

Since:
1.0
See Also:
ILifeCycle, ISessionStore, IResourceManager, HttpServletRequest, HttpServletResponse

Nested Class Summary
static class RWT.NLS
          This utility class helps to provide a similar approach for compile safe native language support than NLS does.
 
Method Summary
static  ILifeCycle getLifeCycle ()
          Returns the instance of the life cycle which is currently processed.
static  Locale getLocale ()
          Returns the preferred Locale that the client will accept content in.
static HttpServletRequest getRequest ()
          Returns the HttpServletRequest that is currently processed.
static  IResourceManager getResourceManager ()
          Returns the instance of the currently available IResourceManager
static HttpServletResponse getResponse ()
          Returns the HttpServletResponse that is mapped to the currently processed request.
static  IServiceManager getServiceManager ()
          Returns a manager to add and remove IServiceHandlers.
static  IServiceStore getServiceStore ()
          Returns the IServiceStore that is mapped to the currently processed request.
static  ISessionStore getSessionStore ()
          Returns the ISessionStore of the HttpSession to which the currently processed request belongs.
static  ISettingStore getSettingStore ()
          Returns the setting store instance for this session.
static void setLocale ( Locale locale)
          Sets the preferred Locale that the client will accept content in to current session.
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getLifeCycle

public static 
ILifeCycle getLifeCycle()
Returns the instance of the life cycle which is currently processed.

Returns:
instance of ILifeCycle

getResourceManager

public static 
IResourceManager getResourceManager()
Returns the instance of the currently available IResourceManager

Returns:
instance of IResourceManager

getServiceManager

public static 
IServiceManager getServiceManager()
Returns a manager to add and remove IServiceHandlers.

Returns:
the IServiceManager

getSettingStore

public static 
ISettingStore getSettingStore()
Returns the setting store instance for this session.

Returns:
a ISettingStore; never null
Since:
1.1

getServiceStore

public static 
IServiceStore getServiceStore()
Returns the IServiceStore that is mapped to the currently processed request.

Returns:
IServiceStore

getSessionStore

public static 
ISessionStore getSessionStore()
Returns the ISessionStore of the HttpSession to which the currently processed request belongs.

Returns:
instance of ISessionStore

getRequest

public static HttpServletRequest getRequest()
Returns the HttpServletRequest that is currently processed.

Returns:
instance of HttpServletRequest

getResponse

public static HttpServletResponse getResponse()
Returns the HttpServletResponse that is mapped to the currently processed request.

Returns:
instance of HttpServletResponse

getLocale

public static 
Locale getLocale()
Returns the preferred Locale that the client will accept content in. This is eihter the Locale that was set in session-scope using the setLocale(Locale) method or the locale based on the Accept-Language HTTP header of the current request. If neither the Locale was set programmatically, nor the client request provides an Accept-Language header, this method returns the default locale for the server.

Returns:
the preferred Locale for the client.
See Also:
setLocale(Locale)

setLocale

public static void setLocale(
Locale locale)
Sets the preferred Locale that the client will accept content in to current session. The value set can be retrieved with the getLocale() method.

See Also:
getLocale()

Eclipse Rich Ajax Platform
Release 1.2

Copyright (c) Innoopract Informationssysteme GmbH and others 2002, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire