|
|||||||||
| 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()
InstancePeerInstancePeer. This data contains information such
as the browser name, version, and the clients screen resolution.
getClientProperties in class InstancePeerInstancePeer.public void setTitle(WindowUI windowUI)
InstancePeer
setTitle in class InstancePeerwindowUI - The peer of the window whose title should be redrawn.public void exit(java.lang.String uri)
InstancePeer
exit in class InstancePeeruri - The URI to redirect the browser window to.public Id generateId()
InstancePeer
generateId in class InstancePeerpublic Id generateId(Component c)
generateId in class InstancePeerpublic PaneUI getContainingPane(ComponentPeer componentPeer)
InstancePeerPaneUI in which the given
ComponentPeer is contained.
getContainingPane in class InstancePeercomponentPeer - The ComponentPeer whose containing
PaneUI is to be returned.
PaneUI containing the given
ComponentPeer.public WindowUI getContainingWindow(ComponentPeer componentPeer)
InstancePeerWindowUI in which the given
ComponentPeer is contained.
getContainingWindow in class InstancePeercomponentPeer - The ComponentPeer whose containing
WindowUI is to be returned.
WindowUI containing the given
ComponentPeer.public Service getController()
InstancePeerController service.
- Overrides:
getController in class InstancePeer
- Returns:
- This instance's
Controller service.
public CookieManager getCookieManager()
InstancePeerCookieManager used by this instance.
getCookieManager in class InstancePeerCookieManager used by this instance.public ImageRepository getImageRepository()
InstancePeer
getImageRepository in class InstancePeerpublic EchoInstance getInstance()
InstancePeer
getInstance in class InstancePeerpublic ComponentPeer getPeer(Component c)
InstancePeer
getPeer in class InstancePeerc - The component whose peer is to be retrieved.
public ComponentPeer getPeer(Id id)
InstancePeer
getPeer in class InstancePeerid - The id of the peer to be retrieved.
public StaticText getSafeInvokeService()
InstancePeer
getSafeInvokeService in class InstancePeerpublic ServiceRegistry getServiceRegistry()
InstancePeerServiceRegistry that is used by this instance
to hold all Service objects available to it.
getServiceRegistry in class InstancePeerServiceRegistry.public java.security.Principal getUserPrincipal()
InstancePeerHttpServletRequest.getUserPrincipal().
getUserPrincipal in class InstancePeerpublic void propertyChange(java.beans.PropertyChangeEvent e)
InstancePeerEchoInstance and its components such
that it can update the client browser to reflect the application's state.
propertyChange in interface java.beans.PropertyChangeListenerpropertyChange in class InstancePeere - 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 InstancePeercomponentPeer - 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)
InstancePeerHttpSessionBindingListener.
Stores reference to session when invoked.
valueBound in interface javax.servlet.http.HttpSessionBindingListenervalueBound in class InstancePeerHttpSessionBindingListener.valueBound(HttpSessionBindingEvent)public void valueUnbound(javax.servlet.http.HttpSessionBindingEvent e)
InstancePeer
valueUnbound in interface javax.servlet.http.HttpSessionBindingListenervalueUnbound in class InstancePeerHttpSessionBindingListener.valueUnbound(HttpSessionBindingEvent)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||