public interface ItsNatAttachedClientEvent extends ItsNatEvent
ItsNatAttachedClientEventListener
objects
to notify the several phases of a remote control process using a timer or comet
to notify the client any document change.Modifier and Type | Field and Description |
---|---|
static int |
LOAD
Constant used to inform that a remote control client document is being loaded.
|
static int |
REFRESH
Constant used to inform that an event has been received to refresh (update)
the remote control client with any document change.
|
static int |
REQUEST
Constant used to inform that an event is a new request to
remote control a document.
|
static int |
UNLOAD
Constant used to inform that a remote control client document is being unloaded.
|
Modifier and Type | Method and Description |
---|---|
long |
getEventTimeout()
Returns the timeout in client of asynchronous AJAX/SCRIPT events used for remote control.
|
int |
getPhase()
Returns the life cycle phase/notification type of this event.
|
long |
getWaitDocTimeout()
Returns the maximum time in milliseconds the remote control request
will wait to the document to be bound if this document is not
in server yet.
|
boolean |
isAccepted()
Returns true if this event request is accepted.
|
boolean |
isReadOnly()
Returns true if this attached client cannot send events to the server (read only).
|
void |
setAccepted(boolean accepted)
Used to accept or deny a remote control request.
|
getClientDocument, getCommMode, getExtraParam, getExtraParamMultiple, getItsNatDocument, getItsNatEventListenerChain, getItsNatServletRequest, getItsNatServletResponse, setExtraParam
containsUserValueName, getUserValue, getUserValueNames, removeUserValue, setUserValue
static final int REQUEST
getPhase()
,
Constant Field Valuesstatic final int LOAD
getPhase()
,
Constant Field Valuesstatic final int REFRESH
getPhase()
,
Constant Field Valuesstatic final int UNLOAD
getPhase()
,
Constant Field Valuesint getPhase()
boolean isAccepted()
If this event is a new remote control
request (REQUEST
phase) by default returns false
otherwise returns true.
setAccepted(boolean)
void setAccepted(boolean accepted)
This method must be called with a true value to accept a new remote control request
(REQUEST
phase), because by default ItsNat does not accept new remote control requests.
If called with false informs ItsNat to deny a new remote control request or to end an already running remote control process.
accepted
- if set to false rejects or ends a new or existing remote control process.long getEventTimeout()
REQUEST
the returned value may be used to validate the remote control request.
Returned value is proposed initially by the client but can not change during the remote control life cycle.
setAccepted(boolean)
long getWaitDocTimeout()
This timeout only applies to <iframe>, <object> and <embed> elements with associated documents automatically bound to the parent.
boolean isReadOnly()
Copyright © 2007 Innowhere Software Services S.L. All Rights Reserved.