|
Eclipse Rich Ajax Platform Release 1.3 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.rwt.RWT
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
.
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 IBrowserHistory |
getBrowserHistory()
Returns an instance if IBrowserHistory that provides support
for the browser's history. |
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 IServiceHandler s. |
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 |
requestThreadExec(Runnable runnable)
Executes the run method of the given runnable on the
request thread. |
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 |
public static ILifeCycle getLifeCycle()
ILifeCycle
public static IResourceManager getResourceManager()
IResourceManager
IResourceManager
public static IServiceManager getServiceManager()
IServiceHandler
s.
IServiceManager
public static ISettingStore getSettingStore()
ISettingStore
; never null
public static IServiceStore getServiceStore()
IServiceStore
that is mapped
to the currently processed request.
IServiceStore
public static ISessionStore getSessionStore()
ISessionStore
of the HttpSession
to which the currently processed request belongs.
ISessionStore
public static HttpServletRequest getRequest()
HttpServletRequest
that is currently
processed.
HttpServletRequest
public static HttpServletResponse getResponse()
HttpServletResponse
that is mapped
to the currently processed request.
HttpServletResponse
public static Locale getLocale()
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.
Locale
for the client.setLocale(Locale)
public static void setLocale(Locale locale)
Locale
that the client will accept
content in to current session. The value set can be retrieved with
the getLocale()
method.
getLocale()
public static IBrowserHistory getBrowserHistory()
IBrowserHistory
that provides support
for the browser's history.
IBrowserHistory
public static void requestThreadExec(Runnable runnable)
runnable
on the
request thread. This method may only be called from the UI thread.
NOTE: This API is provisional and may change without further notice.
runnable
- the code to be executed on the request thread
SWTException
-
|
Eclipse Rich Ajax Platform Release 1.3 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) Innoopract Informationssysteme GmbH and others 2002, 2009. All rights reserved.