Caplin SL4B SDK 4.5.4

Class SL4B_AbstractRttpProvider

Object
   |
   +--SL4B_AbstractRttpProvider
Direct Known Subclasses:
SL4B_FailoverRttpProvider, SL4B_AbstractObjectRttpProvider, SL4B_JavaScriptRttpProvider, SL4B_TestRttpProvider, SL4B_AbstractJavaRttpProvider, SL4B_SlaveFrameRttpProvider

class SL4B_AbstractRttpProvider


Base class that should be extended by any class that provides access to a Liberator. An implementation will ususally wrap another object, such as an applet, or an XmlHttpRequest which is responsible for actually connecting to, and communicating with, the Liberator.

This class provides a standard interface for communicating with a Liberator, regardless of how the underlying object actually handles it.

The implementation of the SL4B_AbstractRttpProvider that is used is automatically created according to the librarys configuration. To get access to this object, the SL4B_Accessor.getRttpProvider() method should be used.

The SL4B_ContributionFieldData class should be used to define the field name/value pairs that are to be contributed for a specific RTTP object using the SL4B_AbstractRttpProvider.contribObject() method.

The SL4B_ObjectType, SL4B_ThrottleLevel and SL4B_DebugLevel singleton classes define the possible values for the object type, throttle level and debug level respectively.

The SL4B_ConnectionListener interface should be implemented by any classes that are interested in receiving notifications about the RTTP providers connection to the Liberator.


Field Summary
<static>  String const_OBJECT_NAME_DELIMITER
          The delimiter character that is used to separate object names in requests for multiple objects.
 
Constructor Summary
SL4B_AbstractRttpProvider ()
            Constructs an SL4B_AbstractRttpProvider.
 
Method Summary
 void addConnectionListener(<SL4B_ConnectionListener> l_oConnectionListener)
           Adds the specified SL4B_ConnectionListener to the collection of connection listeners that will be notified when a connection event occurs.
 void blockObjectListeners(<SL4B_AbstractSubscriber> l_oSubscriber, <String> l_sObjectList)
           Stops the specified SL4B_AbstractSubscriber from receiving updates for the specified objects.
 void clearContainerWindow(<Object> l_oContainerKey)
           Clears the container window.
 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 connected()
           This method must be invoked when a connection to the Liberator has been 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.
 Object createFieldListForAutoDirectory(<String> l_sFilter, <boolean> l_bIsUpdateFilter, <String> l_sFieldList)
           Creates a field list that contains the automatic subscription fields, a filter (if specified) and the specified field list.
 Object createFieldListForContainer(l_sUniqueId, l_sFieldList, l_nWindowStart, l_nWindowEnd)
          
 boolean createObject(<String> l_sObjectName, <String> l_sRttpType)
           Attempts to create an RTTP object with the specified name and type on the Liberator.
 void credentialsRetrieved()
           This method must be invoked once the credentials that will be used to log into the Liberator have been retrieved, but before the login message is sent.
 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 deregisterSlave(<String> l_sSlaveFrameId, <SL4B_SlaveFrameRttpProvider> l_oSlaveFrameRttpProvider, <SL4B_SubscriptionManager> l_oSlaveFrameSubscriptionManager)
           Invoked when a SL4B_SlaveFrameRttpProvider wants to deregister itself with the master frames RTTP provider.
 void disableWTStatsTimeout(<int> l_nTime)
           Disables the WTStats timeout for the specfied period of time.
 void getAutoDirectory(<SL4B_AbstractSubscriber> l_oSubscriber, <String> l_sDirectoryName, <String> l_sFieldList, <String> l_sFilter, <boolean> l_bIsUpdateFilter)
           Requests the specified directory from the Liberator.
 Object getContainer(<SL4B_AbstractSubscriber> l_oSubscriber, <String> l_sContainerName, <String> l_sFieldList, <int> l_nWindowStart, <int> l_nWindowEnd)
           Requests the specified container from the Liberator.
 String getFieldNames()
           Gets a comma separated list of the names of all the fields that are available from the Liberator.
 void getFilteredNewsHeadline(<SL4B_AbstractSubscriber> l_oSubscriber, <String> l_sObjectName, <String> l_sFilter)
           Requests the specified RTTP news headline object, with the specified filter, from the Liberator.
 void getFilteredNewsHeadlines(<SL4B_AbstractSubscriber> l_oSubscriber, <String> l_sObjectList, <String> l_sFilter)
           Requests the specified RTTP news headline objects, with the specified filter, from the Liberator.
 void getFilteredObject(<SL4B_AbstractSubscriber> l_oSubscriber, <String> l_sObjectName, <String> l_sFilter, <boolean> l_bIsUpdateFilter, <String> l_sFieldList)
           Requests the specified list of fields for the specified RTTP object, using the specified filter, from the Liberator.
 void getFilteredObjects(<SL4B_AbstractSubscriber> l_oSubscriber, <String> l_sObjectList, <String> l_sFilter, <boolean> l_bIsUpdateFilter, <String> l_sFieldList)
           Requests the specified list of fields for the specified RTTP objects, using the specified filter, from the Liberator.
 Object getLiberatorConfiguration()
          
 String getListener(<SL4B_AbstractSubscriber> l_oSubscriber)
           Gets the listener string that will be used by the RTTP provider to uniquely indentify the SL4B_AbstractSubscriber that will be notified of updates.
 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 getVersion()
           Gets the version number of the RTTP provider.
 String getVersionInfo()
           Gets the full version details of the RTTP provider.
 void initialise()
           Invoked immediately after the concrete SL4B_AbstractRttpProvider has been set.
 void loggedIn()
           This method must be invoked when the RTTP provider has successfully logged into a Liberator.
 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 registerSlave(<String> l_sSlaveFrameId, <SL4B_SlaveFrameRttpProvider> l_oSlaveFrameRttpProvider, <SL4B_SubscriptionManager> l_oSlaveFrameSubscriptionManager)
           Invoked when a SL4B_SlaveFrameRttpProvider wants to register itself with the master frames RTTP provider.
 void removeAutoDirectory(<SL4B_AbstractSubscriber> l_oSubscriber, <String> l_sDirectoryName, <String> l_sFieldList, <String> l_sFilter, <boolean> l_bIsUpdateFilter)
           Cancels the specified SL4B_AbstractSubscribers subscription for the given directory
 boolean removeConnectionListener(<SL4B_ConnectionListener> l_oConnectionListener)
           Removes the specified SL4B_ConnectionListener from the collection of connection listeners that will be notified when a connection event occurs.
 void removeContainer(<SL4B_AbstractSubscriber> l_oSubscriber, <Object> l_oContainerKey)
           Cancels the specified SL4B_AbstractSubscribers subscription for the given container.
 void removeFilteredNewsHeadline(<SL4B_AbstractSubscriber> l_oSubscriber, <String> l_sObjectName, <String> l_sFilter)
           Cancels the specified SL4B_AbstractSubscribers subscription for the specified RTTP news headline object with the specified filter from the Liberator.
 void removeFilteredNewsHeadlines(<SL4B_AbstractSubscriber> l_oSubscriber, <String> l_sObjectList, <String> l_sFilter)
           Cancels the specified SL4B_AbstractSubscribers subscription for the specified RTTP news headline objects with the specified filter from the Liberator.
 void removeFilteredObject(<SL4B_AbstractSubscriber> l_oSubscriber, <String> l_sObjectName, <String> l_sFilter, <boolean> l_bIsUpdateFilter, <String> l_sFieldList)
           Cancels the specified SL4B_AbstractSubscribers subscription for the specified RTTP object, using the specified filter, from the Liberator.
 void removeFilteredObjects(<SL4B_AbstractSubscriber> l_oSubscriber, <String> l_sObjectList, <String> l_sFilter, <boolean> l_bIsUpdateFilter, <String> l_sFieldList)
           Cancels the specified SL4B_AbstractSubscribers subscription for the specified RTTP objects, using the specified filter, from the Liberator.
 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 removeSubscriber(<SL4B_AbstractSubscriber> l_oSubscriber)
           Cancels the specified SL4B_AbstractSubscribers subscription for all RTTP objects and fields and removed.
 void setContainerWindow(<Object> l_oContainerKey, <int> l_nWindowStart, <int> l_nWindowEnd)
           Changes the container window (ie the page of the container that is subscribed to).
 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 stop()
           Invoking this method causes the connection to the Liberator to be closed, and any necessary clean up to occur.
 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()).

Field Detail

const_OBJECT_NAME_DELIMITER

<static> String const_OBJECT_NAME_DELIMITER

Constructor Detail

SL4B_AbstractRttpProvider

SL4B_AbstractRttpProvider()

Method Detail

addConnectionListener

void addConnectionListener(<SL4B_ConnectionListener> l_oConnectionListener)

blockObjectListeners

void blockObjectListeners(<SL4B_AbstractSubscriber> l_oSubscriber, <String> l_sObjectList)

clearContainerWindow

void clearContainerWindow(<Object> l_oContainerKey)

clearObjectListeners

void clearObjectListeners(<SL4B_AbstractSubscriber> l_oSubscriber, <int> l_nDiscardTime)

connect

void connect()

connected

void connected()

contribObject

void contribObject(<SL4B_AbstractSubscriber> l_oSubscriber, <String> l_sObjectName, <SL4B_ContributionFieldData> l_oFieldData)

createFieldListForAutoDirectory

Object createFieldListForAutoDirectory(<String> l_sFilter, <boolean> l_bIsUpdateFilter, <String> l_sFieldList)

createFieldListForContainer

Object createFieldListForContainer(l_sUniqueId, l_sFieldList, l_nWindowStart, l_nWindowEnd)

createObject

boolean createObject(<String> l_sObjectName, <String> l_sRttpType)

credentialsRetrieved

void credentialsRetrieved()

debug

void debug(<String> l_sLevelName, <String> l_sMessage)

deleteObject

boolean deleteObject(<String> l_sObjectName)

deregisterSlave

void deregisterSlave(<String> l_sSlaveFrameId, <SL4B_SlaveFrameRttpProvider> l_oSlaveFrameRttpProvider, <SL4B_SubscriptionManager> l_oSlaveFrameSubscriptionManager)

disableWTStatsTimeout

void disableWTStatsTimeout(<int> l_nTime)

getAutoDirectory

void getAutoDirectory(<SL4B_AbstractSubscriber> l_oSubscriber, <String> l_sDirectoryName, <String> l_sFieldList, <String> l_sFilter, <boolean> l_bIsUpdateFilter)

getContainer

Object getContainer(<SL4B_AbstractSubscriber> l_oSubscriber, <String> l_sContainerName, <String> l_sFieldList, <int> l_nWindowStart, <int> l_nWindowEnd)

getFieldNames

String getFieldNames()

getFilteredNewsHeadline

void getFilteredNewsHeadline(<SL4B_AbstractSubscriber> l_oSubscriber, <String> l_sObjectName, <String> l_sFilter)

getFilteredNewsHeadlines

void getFilteredNewsHeadlines(<SL4B_AbstractSubscriber> l_oSubscriber, <String> l_sObjectList, <String> l_sFilter)

getFilteredObject

void getFilteredObject(<SL4B_AbstractSubscriber> l_oSubscriber, <String> l_sObjectName, <String> l_sFilter, <boolean> l_bIsUpdateFilter, <String> l_sFieldList)

getFilteredObjects

void getFilteredObjects(<SL4B_AbstractSubscriber> l_oSubscriber, <String> l_sObjectList, <String> l_sFilter, <boolean> l_bIsUpdateFilter, <String> l_sFieldList)

getLiberatorConfiguration

Object getLiberatorConfiguration()

getListener

String getListener(<SL4B_AbstractSubscriber> l_oSubscriber)

getObject

void getObject(<SL4B_AbstractSubscriber> l_oSubscriber, <String> l_sObjectName, <String> l_sFieldList)

getObjects

void getObjects(<SL4B_AbstractSubscriber> l_oSubscriber, <String> l_sObjectList, <String> l_sFieldList)

getObjectType

void getObjectType(<SL4B_AbstractSubscriber> l_oSubscriber, <String> l_sObjectName)

getVersion

String getVersion()

getVersionInfo

String getVersionInfo()

initialise

void initialise()

loggedIn

void loggedIn()

login

void login(<String> l_sUsername, <String> l_sPassword)

logout

void logout()

reconnect

void reconnect()

registerSlave

void registerSlave(<String> l_sSlaveFrameId, <SL4B_SlaveFrameRttpProvider> l_oSlaveFrameRttpProvider, <SL4B_SubscriptionManager> l_oSlaveFrameSubscriptionManager)

removeAutoDirectory

void removeAutoDirectory(<SL4B_AbstractSubscriber> l_oSubscriber, <String> l_sDirectoryName, <String> l_sFieldList, <String> l_sFilter, <boolean> l_bIsUpdateFilter)

removeConnectionListener

boolean removeConnectionListener(<SL4B_ConnectionListener> l_oConnectionListener)

removeContainer

void removeContainer(<SL4B_AbstractSubscriber> l_oSubscriber, <Object> l_oContainerKey)

removeFilteredNewsHeadline

void removeFilteredNewsHeadline(<SL4B_AbstractSubscriber> l_oSubscriber, <String> l_sObjectName, <String> l_sFilter)

removeFilteredNewsHeadlines

void removeFilteredNewsHeadlines(<SL4B_AbstractSubscriber> l_oSubscriber, <String> l_sObjectList, <String> l_sFilter)

removeFilteredObject

void removeFilteredObject(<SL4B_AbstractSubscriber> l_oSubscriber, <String> l_sObjectName, <String> l_sFilter, <boolean> l_bIsUpdateFilter, <String> l_sFieldList)

removeFilteredObjects

void removeFilteredObjects(<SL4B_AbstractSubscriber> l_oSubscriber, <String> l_sObjectList, <String> l_sFilter, <boolean> l_bIsUpdateFilter, <String> l_sFieldList)

removeObject

void removeObject(<SL4B_AbstractSubscriber> l_oSubscriber, <String> l_sObjectName, <String> l_sFieldList)

removeObjects

void removeObjects(<SL4B_AbstractSubscriber> l_oSubscriber, <String> l_sObjectList, <String> l_sFieldList)

removeSubscriber

void removeSubscriber(<SL4B_AbstractSubscriber> l_oSubscriber)

setContainerWindow

void setContainerWindow(<Object> l_oContainerKey, <int> l_nWindowStart, <int> l_nWindowEnd)

setDebugLevel

boolean setDebugLevel(<String> l_sLevelName)

setGlobalThrottle

void setGlobalThrottle(<String> l_sThrottleLevel)

setThrottleObject

void setThrottleObject(<String> l_sObjectName, <String> l_sThrottleLevel)

setThrottleObjects

void setThrottleObjects(<String> l_sObjectList, <String> l_sThrottleLevel)

stop

void stop()

unblockObjectListeners

void unblockObjectListeners(<SL4B_AbstractSubscriber> l_oSubscriber, <String> l_sObjectList)

Caplin SL4B SDK 4.5.4

${JSDOC.FOOTER}
Documentation generated by JSDoc on Tue May 12 09:30:26 2009