Caplin SL4B SDK 4.5.4

Class SL4B_TestRttpProvider

Object
   |
   +--SL4B_AbstractRttpProvider
         |
         +--SL4B_TestRttpProvider

class SL4B_TestRttpProvider
extends SL4B_AbstractRttpProvider


An implementation of SL4B_AbstractRttpProvider that uses random numbers to create synthesised objects for testing purposes. This allows web sites to be built and tested even when there is no Liberator server available.

This provider can be configured to return any specific data by using the addDecimalField(), addIntegerField(), addStringField(), and addObject() methods. Alternatively, a number of objects and fields come pre-defined:

Objects

Fields



Constructor Summary
SL4B_TestRttpProvider ()
           
 
Method Summary
 void addDecimalField(<String> l_sName, <float> l_nMin, <float> l_nMax)
           Adds a new synthesised decimal field.
 void addIntegerField(<String> l_sName, <int> l_nMin, <int> l_nMax)
           Adds a new synthesised integer field.
 void addObject(<String> l_sName, <int> l_nFrequency, <int> l_nOffset)
           Makes a new synthesised object available to users of this RTTP provider.
 void addStringField(<String> l_sName, <String> l_sDefaultValue)
           Adds a new synthesised text field.
 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.
 void 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()).
 void deleteObject(<String> l_sObjectName)
           Attempts to delete the RTTP object with the specified name from the Liberator.
 void disableWTStatsTimeout(<int> l_nTime)
           Disables the WTStats timeout for the specfied period of time.
 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.
 void getVersion()
           Gets the version number of the RTTP provider.
 void getVersionInfo()
           Gets the full version details of the RTTP provider.
 void initialise()
           Invoked immediately after the concrete SL4B_AbstractRttpProvider has been set.
 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 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 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 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()).
 
Methods inherited from class SL4B_AbstractRttpProvider
getListener, stop, registerSlave, deregisterSlave, getLiberatorConfiguration, reconnect, connected, loggedIn, credentialsRetrieved, removeSubscriber, getFilteredObject, getFilteredObjects, removeFilteredObject, removeFilteredObjects, createFieldListForAutoDirectory, createFieldListForContainer, getFilteredNewsHeadline, getFilteredNewsHeadlines, removeFilteredNewsHeadline, removeFilteredNewsHeadlines, getAutoDirectory, removeAutoDirectory, getContainer, setContainerWindow, clearContainerWindow, removeContainer, addConnectionListener, removeConnectionListener
 

Constructor Detail

SL4B_TestRttpProvider

SL4B_TestRttpProvider()

Method Detail

addDecimalField

void addDecimalField(<String> l_sName, <float> l_nMin, <float> l_nMax)

addIntegerField

void addIntegerField(<String> l_sName, <int> l_nMin, <int> l_nMax)

addObject

void addObject(<String> l_sName, <int> l_nFrequency, <int> l_nOffset)

addStringField

void addStringField(<String> l_sName, <String> l_sDefaultValue)

blockObjectListeners

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

clearObjectListeners

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

connect

void connect()

contribObject

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

createObject

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

debug

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

deleteObject

void deleteObject(<String> l_sObjectName)

disableWTStatsTimeout

void disableWTStatsTimeout(<int> l_nTime)

getFieldNames

String getFieldNames()

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

void getVersion()

getVersionInfo

void getVersionInfo()

initialise

void initialise()

login

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

logout

void logout()

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)

setDebugLevel

void 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)

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