|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnextapp.echoservlet.InstancePeer
nextapp.echoservlet.ThreadSafeInstancePeer
public class ThreadSafeInstancePeer
Thread safe decorator for the instance peer, throws ThreadSesitiveOperationException, when a method is called that can not be used in a multi-threaded environment.
Constructor Summary | |
---|---|
ThreadSafeInstancePeer(InstancePeer decorated)
|
Method Summary | |
---|---|
void |
exit(java.lang.String uri)
Exits the application, redirecting an available browser window to the specified URI. |
Id |
generateId()
Generates a unique (to the application) identifier. |
Id |
generateId(Component c)
|
ClientProperties |
getClientProperties()
Returns the "client properties" data collected about the client of this InstancePeer . |
PaneUI |
getContainingPane(ComponentPeer componentPeer)
Returns the PaneUI in which the given
ComponentPeer is contained. |
WindowUI |
getContainingWindow(ComponentPeer componentPeer)
Returns the WindowUI in which the given
ComponentPeer is contained. |
Service |
getController()
Returns this instance's Controller |
CookieManager |
getCookieManager()
Returns the CookieManager used by this instance. |
ImageRepository |
getImageRepository()
Returns the image repository. |
EchoInstance |
getInstance()
Returns the EchoInstance object this peer supports. |
ComponentPeer |
getPeer(Component c)
Returns the ComponentPeer that corresponds to the given Component. |
ComponentPeer |
getPeer(Id id)
Returns the ComponentPeer that corresponds to the given Id. |
StaticText |
getSafeInvokeService()
Returns the service that renders the script containing the safeInvoke() method. |
ServiceRegistry |
getServiceRegistry()
Returns the ServiceRegistry that is used by this instance
to hold all Service objects available to it. |
java.security.Principal |
getUserPrincipal()
Returns the principal (user) of this application. |
void |
propertyChange(java.beans.PropertyChangeEvent e)
Handler for PropertyChangeEvents. |
void |
redraw(ComponentPeer componentPeer)
Causes the service containing the given component to be re-rendered. |
void |
setTitle(WindowUI windowUI)
Causes the specified window's title to be updated on the client. |
void |
valueBound(javax.servlet.http.HttpSessionBindingEvent e)
Listener implementation of HttpSessionBindingListener . |
void |
valueUnbound(javax.servlet.http.HttpSessionBindingEvent e)
Listener implementation of Mcode>HttpSessionBindingListener. |
Methods inherited from class nextapp.echoservlet.InstancePeer |
---|
getInstancePeer, hasPeer, redraw |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ThreadSafeInstancePeer(InstancePeer decorated)
Method Detail |
---|
public ClientProperties getClientProperties()
InstancePeer
InstancePeer
. This data contains information such
as the browser name, version, and the clients screen resolution.
getClientProperties
in class InstancePeer
InstancePeer
.public void setTitle(WindowUI windowUI)
InstancePeer
setTitle
in class InstancePeer
windowUI
- The peer of the window whose title should be redrawn.public void exit(java.lang.String uri)
InstancePeer
exit
in class InstancePeer
uri
- The URI to redirect the browser window to.public Id generateId()
InstancePeer
generateId
in class InstancePeer
public Id generateId(Component c)
generateId
in class InstancePeer
public PaneUI getContainingPane(ComponentPeer componentPeer)
InstancePeer
PaneUI
in which the given
ComponentPeer
is contained.
getContainingPane
in class InstancePeer
componentPeer
- The ComponentPeer
whose containing
PaneUI
is to be returned.
PaneUI
containing the given
ComponentPeer
.public WindowUI getContainingWindow(ComponentPeer componentPeer)
InstancePeer
WindowUI
in which the given
ComponentPeer
is contained.
getContainingWindow
in class InstancePeer
componentPeer
- The ComponentPeer
whose containing
WindowUI
is to be returned.
WindowUI
containing the given
ComponentPeer
.public Service getController()
InstancePeer
Controller service.
- Overrides:
getController
in class InstancePeer
- Returns:
- This instance's
Controller service.
public CookieManager getCookieManager()
InstancePeer
CookieManager
used by this instance.
getCookieManager
in class InstancePeer
CookieManager
used by this instance.public ImageRepository getImageRepository()
InstancePeer
getImageRepository
in class InstancePeer
public EchoInstance getInstance()
InstancePeer
getInstance
in class InstancePeer
public ComponentPeer getPeer(Component c)
InstancePeer
getPeer
in class InstancePeer
c
- The component whose peer is to be retrieved.
public ComponentPeer getPeer(Id id)
InstancePeer
getPeer
in class InstancePeer
id
- The id of the peer to be retrieved.
public StaticText getSafeInvokeService()
InstancePeer
getSafeInvokeService
in class InstancePeer
public ServiceRegistry getServiceRegistry()
InstancePeer
ServiceRegistry
that is used by this instance
to hold all Service
objects available to it.
getServiceRegistry
in class InstancePeer
ServiceRegistry
.public java.security.Principal getUserPrincipal()
InstancePeer
HttpServletRequest.getUserPrincipal()
.
getUserPrincipal
in class InstancePeer
public void propertyChange(java.beans.PropertyChangeEvent e)
InstancePeer
EchoInstance
and its components such
that it can update the client browser to reflect the application's state.
propertyChange
in interface java.beans.PropertyChangeListener
propertyChange
in class InstancePeer
e
- A property change event describing a property change to the
application represented by this peer or one of its components.public void redraw(ComponentPeer componentPeer)
InstancePeer
redraw
in class InstancePeer
componentPeer
- A ComponentPeer
whose represented
Component
has changed and therefore needs to be
updated on the client browser.public void valueBound(javax.servlet.http.HttpSessionBindingEvent e)
InstancePeer
HttpSessionBindingListener
.
Stores reference to session when invoked.
valueBound
in interface javax.servlet.http.HttpSessionBindingListener
valueBound
in class InstancePeer
HttpSessionBindingListener.valueBound(HttpSessionBindingEvent)
public void valueUnbound(javax.servlet.http.HttpSessionBindingEvent e)
InstancePeer
valueUnbound
in interface javax.servlet.http.HttpSessionBindingListener
valueUnbound
in class InstancePeer
HttpSessionBindingListener.valueUnbound(HttpSessionBindingEvent)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |