|
Caplin SL4B SDK 4.5.4 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object
|
+--SL4B_AbstractRttpProvider
|
+--SL4B_AbstractJavaRttpProvider
SL4B_AppletRttpProvider
SL4B_AbstractRttpProvider
Abstract extension of SL4B_AbstractRttpProvider which should be used as the base
class for all Java implementations of the interface. It provides standard implementations for
the majority of the methods, allowing the sub class to focus primarily on the creation of the
applet itself (whether through an applet or an object tag).
| Field Summary | |
<final> String |
const_ALL_FIELDS
The string that is used to request or discard all fields if the the field list argument is omitted. |
| Constructor Summary | |
SL4B_AbstractJavaRttpProvider
()
Constructs a SL4B_AbstractJavaRttpProvider.
|
|
| Method Summary | |
void
|
appletCheckDownloadComplete()
Invoked after the GLOBALS.AppletCheckLoaded() method has been called.
|
void
|
appletCheckDownloadFailed()
Invoked if the AppletCheck download timeout period expires before the applet has been loaded. |
void
|
blockObjectListeners(<SL4B_AbstractSubscriber> l_oSubscriber, <String> l_sObjectList)
Stops the specified SL4B_AbstractSubscriber from receiving updates for the
specified objects.
|
void
|
clearObjectListeners(<SL4B_AbstractSubscriber> l_oSubscriber, <int> l_nDiscardTime)
Removes all the subscriptions for the specified SL4B_AbstractSubscriber.
|
void
|
connect()
Invoked when a connection to the Liberator needs to be established. |
void
|
contribObject(<SL4B_AbstractSubscriber> l_oSubscriber, <String> l_sObjectName, <SL4B_ContributionFieldData> l_oFieldData)
Contributes the specified field name/value data to the RTTP object with the specified name. |
boolean
|
createObject(<String> l_sObjectName, <String> l_sRttpType)
Attempts to create an RTTP object with the specified name and type on the Liberator. |
void
|
debug(<String> l_sLevelName, <String> l_sMessage)
Adds the specified debug message to the debug log provided the specified level is of equal or higher priority to the current debug level of the RTTP provider (see SL4B_AbstractRttpProvider.setDebugLevel()).
|
boolean
|
deleteObject(<String> l_sObjectName)
Attempts to delete the RTTP object with the specified name from the Liberator. |
void
|
dequeueUpdates()
Pops the first item from the update queue and invokes the doAllUpdates method on
it.
|
void
|
disableWTStatsTimeout(<int> l_nTime)
Disables the WTStats timeout for the specfied period of time. |
Object
|
getAppletParameterHtml()
Gets the HTML for the parameters that must be included in the RTTP applet tag in order for it to be configured correctly, according to the configuration that has been specified within the web page. |
String
|
getFieldNames()
Gets a comma separated list of the names of all the fields that are available from the Liberator. |
void
|
getObject(<SL4B_AbstractSubscriber> l_oSubscriber, <String> l_sObjectName, <String> l_sFieldList)
Requests the specified list of fields for the specified RTTP object from the Liberator. |
void
|
getObjects(<SL4B_AbstractSubscriber> l_oSubscriber, <String> l_sObjectList, <String> l_sFieldList)
Requests the specified list of fields for the specified RTTP objects from the Liberator. |
void
|
getObjectType(<SL4B_AbstractSubscriber> l_oSubscriber, <String> l_sObjectName)
Requests the specified type of the RTTP object from the Liberator. |
String
|
getRttpAppletId()
Gets the idendifier that must be given to the RTTP applet HTML element. |
String
|
getVersion()
Gets the version number of the RTTP provider. |
String
|
getVersionInfo()
Gets the full version details of the RTTP provider. |
void
|
login(<String> l_sUsername, <String> l_sPassword)
This method must be invoked by the SL4B_AbstractCredentialsProvider that was responsible
for getting the username and password to login to the Liberator.
|
void
|
logout()
Logs out of the Liberator. |
void
|
reconnect()
Invoked when a connection to the Liberator is lost and the user wants to attempt a reconnect. |
void
|
removeObject(<SL4B_AbstractSubscriber> l_oSubscriber, <String> l_sObjectName, <String> l_sFieldList)
Cancels the specified SL4B_AbstractSubscribers subscription for the list of fields
for the specified RTTP object.
|
void
|
removeObjects(<SL4B_AbstractSubscriber> l_oSubscriber, <String> l_sObjectList, <String> l_sFieldList)
Cancels the specified SL4B_AbstractSubscribers subscription for the list of fields
for the specified RTTP objects.
|
void
|
rttpAppletDownloadComplete()
Invoked after the GLOBALS.WTAppletLoaded() method has been called.
|
void
|
rttpAppletDownloadFailed()
Invoked if the RTTP applet download timeout period expires before the applet has been loaded. |
boolean
|
setDebugLevel(<String> l_sLevelName)
Sets the level that is used to determine whether or not a debug message is added to the debug log or not. |
void
|
setGlobalThrottle(<String> l_sThrottleLevel)
Sets the throttle level that will be applied to all the objects that the client subscribes to. |
void
|
setThrottleObject(<String> l_sObjectName, <String> l_sThrottleLevel)
Sets the throttle level for the specified RTTP object. |
void
|
setThrottleObjects(<String> l_sObjectList, <String> l_sThrottleLevel)
Sets the throttle level for all of the specified RTTP objects. |
void
|
startAppletCheckTimeout()
Starts the timeout for the AppletCheck applet. |
void
|
startRttpAppletTimeout()
Starts the timeout for the RTTP applet. |
void
|
unblockObjectListeners(<SL4B_AbstractSubscriber> l_oSubscriber, <String> l_sObjectList)
Allows the specified SL4B_AbstractSubscriber to start receiving updates for the
specified objects which had previously been blocked (see
SL4B_AbstractRttpProvider.blockObjectListeners()).
|
void
|
urlCheckDownloadFailed()
Invoked if the urlcheck.js file cannot be loaded from the Liberator. |
String
|
validateFieldList(<String> l_sFieldList)
Checks whether the field list has been defined or not, and returns the field list that must be requested from the Liberator accordingly. |
void
|
writeAppletToDocument(<String> l_sAppletHtml)
Writes the specified applet HTML to the document, wrapping it within DIV element to ensure that the applet is not visible within the web page. |
void
|
WTConnectionError(<String> l_sMessage)
Invoked by the RTTP applet when there is a problem with the connection, such as the connection being lost, or failing to connect. |
void
|
WTConnectionInfo(<String> l_sMessage)
Invoked by the RTTP applet to provide an informational message about the connection to the Liberator. |
void
|
WTConnectionOk(<String> l_sHostName, <int> l_nConnectionType, <int> l_nTime)
Invoked by the RTTP applet when a connection to the Liberator is established. |
void
|
WTMessage(<int> l_nRttpCode, <String> l_sMessage)
Invoked by the RTTP applet when a generic (non source/service) message is received from the Liberator. |
void
|
WTReconnect()
Invoked by the RTTP applet when it has lost its connection to the Liberator, and its attempts to reconnect have been unsuccessful. |
void
|
WTServiceMessage(<int> l_nRttpCode, <String> l_sServiceId, <String> l_sServiceName, <String> l_sMessage)
Invoked by the RTTP applet when a service message is received from the Liberator. |
void
|
WTSessionEjected(<int> l_nRttpCode, <String> l_sMessage)
Invoked by the RTTP applet when a session ejected message is received from the Liberator. |
void
|
WTSourceMessage(<int> l_nRttpCode, <int> l_nSourceNumber, <String> l_sSourceId, <String> l_sMessage)
Invoked by the RTTP applet when a source message is received from the Liberator. |
void
|
WTStats(<int> l_nNoopTime, <int> l_nNumItems, <int> l_nTime, <int> l_nBytes, <int> l_nQueueLength)
Invoked periodically by the RTTP applet to provide statistics about the clients connection to the Liberator, and other related information. |
| Field Detail |
<final> String const_ALL_FIELDS
| Constructor Detail |
SL4B_AbstractJavaRttpProvider()
SL4B_AbstractJavaRttpProvider.
| Method Detail |
void appletCheckDownloadComplete()
GLOBALS.AppletCheckLoaded() method has been called. Since the
AppletCheck applet has successfully been loaded, this method cancels the download timeout.void appletCheckDownloadFailed()
.class) files from being loaded.void blockObjectListeners(<SL4B_AbstractSubscriber> l_oSubscriber, <String> l_sObjectList)
SL4B_AbstractSubscriber from receiving updates for the
specified objects. The Liberator will continue to send the updates, however they are not passed
onto the subscriber.l_oSubscriber - The SL4B_AbstractSubscriber that will have updates to its requested objects blocked.
l_sObjectList - [optional] A space separated list of the names of the RTTP objects to be have their updates blocked. If omitted, all the objects that the SL4B_AbstractSubscriber has subscribed to will have their updates blocked.
void clearObjectListeners(<SL4B_AbstractSubscriber> l_oSubscriber, <int> l_nDiscardTime)
SL4B_AbstractSubscriber.l_oSubscriber - The SL4B_AbstractSubscriber that will have all its object requests discarded.
l_nDiscardTime - [optional] The length of time (in milliseconds) to wait before discarding the subscriptions from the Liberator. If this is omitted, a value of 10000 is used.
void connect()
SL4B_AbstractRttpProvider subclass to know when it can safely invoke this
method.
SL4B_AbstractRttpProvider must have an
implementation for this method.void contribObject(<SL4B_AbstractSubscriber> l_oSubscriber, <String> l_sObjectName, <SL4B_ContributionFieldData> l_oFieldData)
SL4B_AbstractSubscriber will be informed if the contribution is
successful or not.l_oSubscriber - The SL4B_AbstractSubscriber that will be informed whether the contribution was successful or not.
l_sObjectName - The name of the RTTP object the specified data will be contributed to.
l_oFieldData - The field name/value pair data to be contributed.
SL4B_Exception If the specified contribution field data object is null or empty. boolean createObject(<String> l_sObjectName, <String> l_sRttpType)
l_sObjectName - The name of the RTTP object to be created on the Liberator.
l_sRttpType - The type of object to be created. The SL4B_ObjectType singleton defines the possible values.
true if the object was successfully created, otherwise false.
void debug(<String> l_sLevelName, <String> l_sMessage)
SL4B_AbstractRttpProvider.setDebugLevel()).
SL4B_DebugLevel defines all the available debug levels.l_sLevelName - The name of the debug level at which the message should be output to the debug log.
l_sMessage - The message to be output to the debug log.
boolean deleteObject(<String> l_sObjectName)
l_sObjectName - The name of the RTTP object to be deleted.
true if the object was successfully deleted, otherwise false.
void dequeueUpdates()
doAllUpdates method on
it.
void disableWTStatsTimeout(<int> l_nTime)
l_nTime - The number of milliseconds the WTStats timeout will be disabled for.
Object getAppletParameterHtml()
String getFieldNames()
void getObject(<SL4B_AbstractSubscriber> l_oSubscriber, <String> l_sObjectName, <String> l_sFieldList)
SL4B_AbstractSubscriber.l_oSubscriber - The SL4B_AbstractSubscriber that will be informed of updates to the specified object.
l_sObjectName - The name of the RTTP object to be requested from the Liberator.
l_sFieldList - [optional] A comma separated list of the fields to be requested for the specified object. If this argument is omitted, all the fields will be requested.
void getObjects(<SL4B_AbstractSubscriber> l_oSubscriber, <String> l_sObjectList, <String> l_sFieldList)
SL4B_AbstractSubscriber.l_oSubscriber - The SL4B_AbstractSubscriber that will be informed of updates to the specified objects.
l_sObjectList - A space separated list of the names of the RTTP objects to be requested from the Liberator.
l_sFieldList - [optional] A comma separated list of the fields to be requested for the specified objects. If this argument is omitted, all the fields will be requested.
void getObjectType(<SL4B_AbstractSubscriber> l_oSubscriber, <String> l_sObjectName)
SL4B_AbstractSubscriber will be notified of the objects type.l_oSubscriber - The SL4B_AbstractSubscriber that will be informed of the specified objects type.
l_sObjectName - The name of the RTTP object to be requested from the Liberator.
String getRttpAppletId()
String getVersion()
String getVersionInfo()
void login(<String> l_sUsername, <String> l_sPassword)
SL4B_AbstractCredentialsProvider that was responsible
for getting the username and password to login to the Liberator. Once the credentials have been
validated, the SL4B_SubscriptionManager.ready() method should be invoked.l_sUsername - The username to use to login to the Liberator.
l_sPassword - The password (or token) to use to login to the Liberator.
void logout()
SL4B_AbstractRttpProvider.stop() method instead.void reconnect()
SL4B_AbstractRttpProvider subclass to know when
it can safely invoke this method.
SL4B_AbstractRttpProvider must have an
implementation for this method.void removeObject(<SL4B_AbstractSubscriber> l_oSubscriber, <String> l_sObjectName, <String> l_sFieldList)
SL4B_AbstractSubscribers subscription for the list of fields
for the specified RTTP object. This can be used to discard a subset of the fields that have
previously been requested for the object.l_oSubscriber - The SL4B_AbstractSubscriber that will cease to be informed of updates to the specified object.
l_sObjectName - The name of the RTTP object to be discarded from the Liberator.
l_sFieldList - [optional] A comma separated list of the fields to be discarded for the specified object. If this argument is omitted, all the fields will be discarded.
void removeObjects(<SL4B_AbstractSubscriber> l_oSubscriber, <String> l_sObjectList, <String> l_sFieldList)
SL4B_AbstractSubscribers subscription for the list of fields
for the specified RTTP objects. This can be used to discard a subset of the fields that have
previously been requested for these objects.l_oSubscriber - The SL4B_AbstractSubscriber that will cease to be informed of updates to the specified objects.
l_sObjectList - A space separated list of the names of the RTTP objects to be discarded from the Liberator.
l_sFieldList - [optional] A comma separated list of the fields to be discarded for the specified objects. If this argument is omitted, all the fields will be discarded.
void rttpAppletDownloadComplete()
GLOBALS.WTAppletLoaded() method has been called. Since the RTTP applet
has successfully been loaded, this method cancels the download timeout. It then gets a reference
to the RTTP applet element from the DOM and invokes the
SL4B_AbstractJavaRttpProvider.setRttpApplet() method.void rttpAppletDownloadFailed()
.jar) files from being loaded, or that they have a very slow connection.boolean setDebugLevel(<String> l_sLevelName)
SL4B_DebugLevel defines all the available debug levels.l_sLevelName - The name of the debug level to be set.
true if the specified level was successfully set, false otherwise.
void setGlobalThrottle(<String> l_sThrottleLevel)
SL4B_AbstractRttpProvider.setThrottleObject() or
SL4B_AbstractRttpProvider.setThrottleObjects(). To call any of those methods on the
AbstractRttpProvider get an instance of it from SL4B_Accessor.getRttpProvider().
SL4B_ThrottleLevel defines all the available throttle levels.l_sThrottleLevel - The throttle level to be applied to for all requested objects.
void setThrottleObject(<String> l_sObjectName, <String> l_sThrottleLevel)
SL4B_ThrottleLevel defines all the available throttle levels.
Call this methods on an instance of AbstractRttpProvider, which you can get from
SL4B_Accessor.getRttpProvider().l_sObjectName - The name of the RTTP object to be throttled.
l_sThrottleLevel - The throttle level to be applied to the specified object.
void setThrottleObjects(<String> l_sObjectList, <String> l_sThrottleLevel)
SL4B_ThrottleLevel defines all the available throttle levels.
Call this methods on an instance of AbstractRttpProvider, which you can get from
SL4B_Accessor.getRttpProvider().l_sObjectList - A space separated list of the names of the RTTP objects to be throttled.
l_sThrottleLevel - The throttle level to be applied to the specified objects.
void startAppletCheckTimeout()
SL4B_Configuration.getAppletCheckTimeout() method. If the AppletCheck applet fails to load
within this period of time the SL4B_AbstractJavaRttpProvider.appletCheckDownloadFailed()
method will be invoked.void startRttpAppletTimeout()
SL4B_Configuration.getRttpAppletTimeout() method. If the RTTP applet fails to load within
this period of time the SL4B_AbstractJavaRttpProvider.rttpAppletDownloadFailed() method
will be invoked.void unblockObjectListeners(<SL4B_AbstractSubscriber> l_oSubscriber, <String> l_sObjectList)
SL4B_AbstractSubscriber to start receiving updates for the
specified objects which had previously been blocked (see
SL4B_AbstractRttpProvider.blockObjectListeners()).l_oSubscriber - The SL4B_AbstractSubscriber that will have updates to its requested objects unblocked.
l_sObjectList - [optional] A space separated list of the names of the RTTP objects to be have their updates unblocked. If omitted, all the objects that the SL4B_AbstractSubscriber has subscribed to will have their updates unblocked.
void urlCheckDownloadFailed()
String validateFieldList(<String> l_sFieldList)
l_sFieldList - The list of fields to be requested or discarded.
SL4B_AbstractJavaRttpProvider.const_ALL_FIELDS if the specified field list is null or undefined, otherwise it returns l_sFieldList.
void writeAppletToDocument(<String> l_sAppletHtml)
l_sAppletHtml - The HTML of the applet to be written out to the document.
void WTConnectionError(<String> l_sMessage)
SL4B_AbstractRttpProvider.notifyConnectionListeners() method on a setTimeout (using the
C_CallbackQueue singleton) with the relevant arguments.l_sMessage - A brief description of the connection error.
void WTConnectionInfo(<String> l_sMessage)
SL4B_AbstractRttpProvider.notifyConnectionListeners()
method on a setTimeout (using the C_CallbackQueue singleton) with the relevant
arguments.l_sMessage - An informational message about the connection.
void WTConnectionOk(<String> l_sHostName, <int> l_nConnectionType, <int> l_nTime)
SL4B_AbstractRttpProvider.notifyConnectionListeners() method on a setTimeout (using the
C_CallbackQueue singleton) with the relevant arguments.l_sHostName - The name of the Liberator host machine.
l_nConnectionType - The type of connection that has been established: type 1 (a direct socket connection), type 2 (a tunnelled HTTP(S) connection), or type 3 (a polling refresh connection).
l_nTime - The timestamp associated with the the connection, sent from the Liberator.
void WTMessage(<int> l_nRttpCode, <String> l_sMessage)
SL4B_AbstractRttpProvider.notifyConnectionListeners()
method on a setTimeout (using the C_CallbackQueue singleton) with the relevant arguments.l_nRttpCode - The RTTP code specified for the message.
l_sMessage - The message.
void WTReconnect()
SL4B_AbstractRttpProvider.notifyConnectionListeners() method on a setTimeout (using the
C_CallbackQueue singleton) with the relevant arguments.void WTServiceMessage(<int> l_nRttpCode, <String> l_sServiceId, <String> l_sServiceName, <String> l_sMessage)
SL4B_AbstractRttpProvider.notifyConnectionListeners() method on a
setTimeout with the relevant arguments.l_nRttpCode - The RTTP code specified for the service message.
l_sServiceId - The unique identifier for the service.
l_sServiceName - The name of the service.
l_sMessage - A brief message describing the state of the service.
void WTSessionEjected(<int> l_nRttpCode, <String> l_sMessage)
SL4B_AbstractRttpProvider.notifyConnectionListeners() method on a
setTimeout with the relevant arguments.l_nRttpCode - The RTTP code specified for the session eject.
l_sMessage - A brief description of why the session was ejected.
void WTSourceMessage(<int> l_nRttpCode, <int> l_nSourceNumber, <String> l_sSourceId, <String> l_sMessage)
SL4B_AbstractRttpProvider.notifyConnectionListeners() method on a
setTimeout with the relevant arguments.l_nRttpCode - The RTTP code specified for the source message.
l_nSourceNumber - The unique DataSource number of the source.
l_sSourceId - The name of the source.
l_sMessage - A brief message describing the state of the source.
void WTStats(<int> l_nNoopTime, <int> l_nNumItems, <int> l_nTime, <int> l_nBytes, <int> l_nQueueLength)
SL4B_AbstractRttpProvider.notifyConnectionListeners() method on a setTimeout (using the
C_CallbackQueue singleton) with the relevant arguments.l_nNoopTime - The round trip time taken by the last NOOP that was sent to the Liberator.
l_nNumItems - The number of RTTP objects that the client has subscribed to.
l_nTime - The length of time since the count for the number of bytes that have been read was reset.
l_nBytes - The number of bytes that have been read (since the last time the count was reset).
l_nQueueLength - The number of updates that have been received, but have not been sent onto the relevant subscribers yet.
|
Caplin SL4B SDK 4.5.4 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||