var SL4B_RttpProviderFactory=function(){}; SL4B_RttpProviderFactory.prototype.createRttpProvider = SL_MI;function SL_MI(A){var l_oConfiguration=SL4B_Accessor.getConfiguration(); var l_oProvider=null; if(l_oConfiguration.getRttpProvider()==SL4B_ScriptLoader.const_APPLET_RTTP_PROVIDER){l_oProvider=new SL4B_AppletRttpProvider(A);}else if(l_oConfiguration.getRttpProvider()==SL4B_ScriptLoader.const_OBJECT_RTTP_PROVIDER){alert("Object RTTP Provider support is not available in this version of SL4B");}else if(l_oConfiguration.getRttpProvider()==SL4B_ScriptLoader.const_JAVASCRIPT_RTTP_PROVIDER){l_oProvider=new SL4B_JavaScriptRttpProvider(A);}else if(l_oConfiguration.getRttpProvider()==SL4B_ScriptLoader.const_TEST_RTTP_PROVIDER){l_oProvider=new SL4B_TestRttpProvider();}return l_oProvider; } window.SL4B_Accessor = new function(){this.m_oExceptionHandler=null;this.m_oConfiguration=null;this.m_oBrowserAdapter=null;this.m_oCredentialsProvider=null;this.m_oRttpProvider=null;this.m_oUnderlyingRttpProvider=null;this.m_oStatistics=null;this.m_oRttpProviderFactory=new SL4B_RttpProviderFactory();this.setExceptionHandler = function(A){this.m_oExceptionHandler=A;}; this.getExceptionHandler = function(){return this.m_oExceptionHandler; }; this.getConfiguration = function(){return this.m_oConfiguration; }; this.setConfiguration = function(A){if(this.m_oConfiguration!=null){throw new SL4B_Exception("The SL4B_Configuration has already been set and cannot be changed."); }else {this.m_oConfiguration=A;}}; this.getBrowserAdapter = function(){if(this.m_oBrowserAdapter==null){throw new SL4B_Exception("BrowserAdapter has not been set"); }return this.m_oBrowserAdapter; }; this.setBrowserAdapter = function(A){this.m_oBrowserAdapter=A;}; this.getCredentialsProvider = function(){if(this.m_oCredentialsProvider==null){throw new SL4B_Exception("CredentialsProvider has not been set"); }return this.m_oCredentialsProvider; }; this.setCredentialsProvider = function(A){this.m_oCredentialsProvider=A;}; this.getRttpProvider = function(){if(this.m_oRttpProvider==null){throw new SL4B_Exception("RttpProvider has not been set"); }return this.m_oRttpProvider; }; this.getUnderlyingRttpProvider = function(){if(this.m_oUnderlyingRttpProvider==null){throw new SL4B_Exception("UnderlyingRttpProvider has not been set"); }return this.m_oUnderlyingRttpProvider; }; this.setRttpProvider = function(A){this.m_oRttpProvider=A;A.internalInitialise();}; this.setUnderlyingRttpProvider = function(A){this.m_oUnderlyingRttpProvider=A;}; this.getLogger = function(){return SL4B_Logger; }; this.getRttpProviderFactory = function(){return this.m_oRttpProviderFactory; }; this.setRttpProviderFactory = function(A){this.m_oRttpProviderFactory=A;}; this.setStatistics = function(A){this.m_oStatistics=A;}; this.getStatistics = function(){if(this.m_oStatistics==null){throw new SL4B_Exception("Statistics has not been set"); }return this.m_oStatistics; }; this.resetConfig = function(A){this.m_oConfiguration=null;this.setConfiguration(A);}; this.resetRttpProvider = function(A){this.m_oRttpProvider=A;this.m_oUnderlyingRttpProvider=A;}; }; var SL4B_DebugLevel = new function(){this.CRITICAL="critical";this.ERROR="error";this.NOTIFY="notify";this.WARN="warn";this.INFO="info";this.DEBUG="debug";this.RTTP_FINE="rttp-fine";this.RTTP_FINER="rttp-finer";this.RTTP_FINEST="rttp-finest";this.const_CRITICAL_INT=0;this.const_ERROR_INT=1;this.const_NOTIFY_INT=2;this.const_WARN_INT=3;this.const_INFO_INT=4;this.const_DEBUG_INT=5;this.const_RTTP_FINE_INT=6;this.const_RTTP_FINER_INT=7;this.const_RTTP_FINEST_INT=8;this.m_pDebugLevelNames=new Object();this.m_pNumericDebugLevels=new Object();this.addDebugLevel = function(B,A){this.m_pDebugLevelNames[B]=A;this.m_pNumericDebugLevels[A]=B;}; this.getNumericDebugLevel = function(A){var l_nNumericDebugLevel; if(typeof A=="number"){l_nNumericDebugLevel=A;}else if(!isNaN(A)){l_nNumericDebugLevel=parseInt(A);}else if(typeof A!="string"||typeof this.m_pNumericDebugLevels[A.toLowerCase()]=="undefined"){throw new SL4B_Exception("Illegal debug level \""+A+"\" specified"); }else {l_nNumericDebugLevel=this.m_pNumericDebugLevels[A.toLowerCase()];}return l_nNumericDebugLevel; }; this.getDebugLevelName = function(A){var l_sDebugLevelName; if(typeof A=="string"){l_sDebugLevelName=A;}else if(typeof A=="number"){l_sDebugLevelName=this.m_pDebugLevelNames[A];}return l_sDebugLevelName; }; this.addDebugLevel(this.const_CRITICAL_INT,this.CRITICAL);this.addDebugLevel(this.const_ERROR_INT,this.ERROR);this.addDebugLevel(this.const_NOTIFY_INT,this.NOTIFY);this.addDebugLevel(this.const_WARN_INT,this.WARN);this.addDebugLevel(this.const_INFO_INT,this.INFO);this.addDebugLevel(this.const_DEBUG_INT,this.DEBUG);this.addDebugLevel(this.const_RTTP_FINE_INT,this.RTTP_FINE);this.addDebugLevel(this.const_RTTP_FINER_INT,this.RTTP_FINER);this.addDebugLevel(this.const_RTTP_FINEST_INT,this.RTTP_FINEST);}; var SL4B_Logger = new function(){this.const_HTML="html";this.const_ABOUT_BLANK="about:blank";this.m_hDebugConsole=null;this.m_bDebugConsoleOpening=false;this.m_bDebugConsoleOpened=false;this.m_bClosing=false;this.m_pMessageQueue=new Array();this.m_pAlertMessageQueue=new Array();this.m_bAlertDisplayed=false;this.m_nConfiguredDebugLevel=-1;this.m_oBrowserAdapter=null;this.m_pMessageListeners=new Array();this.m_pParameterRegularExpressions=new Array(/\{0\}/g,/\{1\}/g,/\{2\}/g,/\{3\}/g,/\{4\}/g,/\{5\}/g,/\{6\}/g,/\{7\}/g);this.replaceMessageParameters = function(C,A,B){var l_nNumberOfParameters=A.length; for(var l_nParam=B;l_nParam=B){this.printMessage(this.replaceMessageParameters(A,this.log.arguments,2),B);}}else { try {if(this.mustDebug(B)){this.printMessage(this.replaceMessageParameters(A,this.log.arguments,2),B);}}catch(e){SL4B_Accessor.getExceptionHandler().processException(e);} }}; this.alert = function(A){var l_sFormattedMessage=this.replaceMessageParameters(A,this.alert.arguments,1); this.printMessage(l_sFormattedMessage); try {if(this.mustDebug(SL4B_DebugLevel.NOTIFY)){this.synchronizedAlert(l_sFormattedMessage);}}catch(e){SL4B_Accessor.getExceptionHandler().processException(e);} }; this.synchronizedAlert = function(A){this.m_pAlertMessageQueue.push(A);if(!this.m_bAlertDisplayed){this.m_bAlertDisplayed=true;while(this.m_pAlertMessageQueue.length>0){alert(this.m_pAlertMessageQueue.shift());}this.m_bAlertDisplayed=false;}}; this.printMessage = function(B,A){A=(A===undefined ? SL4B_DebugLevel.INFO : A);var l_sFormattedMessage=SL_HP.createDateStamp()+" - "+SL4B_DebugLevel.getDebugLevelName(A)+": "+B; this.m_pMessageQueue.push(l_sFormattedMessage);if(this.m_oBrowserAdapter==null){this.m_oBrowserAdapter=SL4B_Accessor.getBrowserAdapter();}if(this.m_oBrowserAdapter!=null){this.m_oBrowserAdapter.dump(l_sFormattedMessage+"\n");}for(var l_nListener=0,l_nLength=this.m_pMessageListeners.length;l_nListener0){var l_sNextMessage=this.m_pMessageQueue.shift(); this.printMessageToDebugConsole(l_sNextMessage);}}; this.printMessageToDebugConsole = function(A){if(this.m_hDebugConsole!=null){ try {this.m_hDebugConsole.GF_LogMessage(A);}catch(e){} }}; this.useHtmlDebugWindow = function(){return (SL4B_Accessor.getConfiguration().getDebugWindowType()==this.const_HTML); }; this.openDebugConsoleOnStartUp = function(A){if((A&&this.useHtmlDebugWindow())||(!A&&!this.useHtmlDebugWindow())){if(this.mustDebug(SL4B_DebugLevel.WARN)){this.openDebugConsole();}}}; this.getDebugWindowName = function(){return "_sl4b_debug_"+SL4B_Accessor.getConfiguration().getFrameId(); }; this.openDebugConsole = function(){if(!this.m_bDebugConsoleOpening&&!this.m_bClosing){this.m_bDebugConsoleOpening=true;var l_sDomain=SL4B_Accessor.getConfiguration().getCommonDomain(); var l_sDebugWindowName=this.getDebugWindowName(); var l_sDebugWindowParameters="height=400,width=600,status=no,toolbar=no,menubar=no,location=no,resizable=yes,scrollbars=yes"; if(this.useHtmlDebugWindow()){var l_sUrl=SL4B_ScriptLoader.getRootUrl()+"sl4b/logger/log-window.html?level="+SL4B_Accessor.getConfiguration().getDebugLevel()+((l_sDomain!=null) ? "&domain="+l_sDomain : ""); this.m_hDebugConsole=window.open(l_sUrl,l_sDebugWindowName,l_sDebugWindowParameters);}else {this.m_hDebugConsole=window.open("",l_sDebugWindowName,l_sDebugWindowParameters);var l_sHtml="SL4B Debug Log [Debug level "+SL4B_Accessor.getConfiguration().getDebugLevel()+"]"; l_sHtml+="";l_sHtml+="
";l_sHtml+="";l_sHtml+=""; try {var l_oDocument=this.m_hDebugConsole.document; l_oDocument.open();l_oDocument.write(l_sHtml);l_oDocument.close();}catch(e){SL4B_Logger.alert("Your browser appears to have a popup blocker enabled which is preventing the SL4B debug console window from opening.\nPlease disable the popup blocker for this web site to view the console.");} }}}; this.closeDebugConsole = function(){if(this.m_hDebugConsole!=null){this.m_bClosing=true;this.m_hDebugConsole.close();}}; this.debugConsoleOpened = function(){this.m_bDebugConsoleOpened=true;this.printMessageToDebugConsole("Debug Console for frame \""+SL4B_Accessor.getConfiguration().getFrameId()+"\"");this.printMessagesToDebugConsole();SL4B_Logger.log(SL4B_DebugLevel.const_RTTP_FINE_INT,"Logger.debugConsoleOpened: Adding logger as listener for close event."); try {SL4B_WindowEventHandler.addListener(this);}catch(e){SL4B_Accessor.getExceptionHandler().processException(e);} }; this.debugConsoleClosed = function(){this.m_bDebugConsoleOpened=false;this.m_hDebugConsole=null;}; this.mustDebug = function(A){return (this.getConfiguredDebugLevel()>=SL4B_DebugLevel.getNumericDebugLevel(A)); }; this.getConfiguredDebugLevel = function(){if(this.m_nConfiguredDebugLevel==-1){ try {this.m_nConfiguredDebugLevel=SL4B_DebugLevel.getNumericDebugLevel(SL4B_Accessor.getConfiguration().getDebugLevel());}catch(e){this.m_nConfiguredDebugLevel=SL4B_DebugLevel.getNumericDebugLevel(SL4B_DebugLevel.ERROR);} }return this.m_nConfiguredDebugLevel; }; this.onUnload = function(A){if(A!=null&&typeof A!="undefined"&&!(A.ctrlKey&&A.altKey)){ try {this.m_hDebugConsole.close();}catch(e){} }}; }; SL_HP = new function(){this.m_pMonths=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");this.m_pZeroPadding=new Array("","0","00","000");this.createDateStamp = function(){var l_oNow=new Date(); var l_nTimezoneOffset=l_oNow.getTimezoneOffset(); var l_nAbsoluteTimezoneOffset=Math.abs(l_nTimezoneOffset); var l_sOffsetSign=(l_nTimezoneOffset<=0) ? "+" : "-"; var l_sOffsetHours=this.padZeros(Math.floor(Math.abs(l_nAbsoluteTimezoneOffset)/60),2); var l_sOffsetMinutes=this.padZeros(l_nAbsoluteTimezoneOffset%60,2); return this.m_pMonths[l_oNow.getMonth()]+" "+this.padZeros(l_oNow.getDate(),2)+" "+this.padZeros(l_oNow.getHours(),2)+":"+this.padZeros(l_oNow.getMinutes(),2)+":"+this.padZeros(l_oNow.getSeconds(),2)+"."+this.padZeros(l_oNow.getMilliseconds(),3)+" "+l_sOffsetSign+l_sOffsetHours+l_sOffsetMinutes; }; this.padZeros = function(B,A){var l_nValueLength=(B+"").length; var l_nDifference=A-l_nValueLength; return this.m_pZeroPadding[l_nDifference]+B; }; }; function SL4B_LogMessageListener(){} SL4B_LogMessageListener.prototype.logMessage = function(A){}; var SL4B_AbstractBrowserAdapter=function(){}; SL4B_AbstractBrowserAdapter.isInternetExplorer = function(){return (navigator.userAgent.toLowerCase().match(/msie/)!=null); }; SL4B_AbstractBrowserAdapter.isSafari = function(){return (navigator.userAgent.toLowerCase().match(/safari/)!=null); }; SL4B_AbstractBrowserAdapter.prototype.isFirefox = function(){throw new SL4B_Error("isFirefox method not implemented"); }; SL4B_AbstractBrowserAdapter.prototype.isInternetExplorer = function(){throw new SL4B_Error("isInternetExplorer method not implemented"); }; SL4B_AbstractBrowserAdapter.prototype.getBrowserVersion = function(){throw new SL4B_Error("getBrowserVersion method not implemented"); }; SL4B_AbstractBrowserAdapter.prototype.getElementById = function(A){return document.getElementById(A); }; SL4B_AbstractBrowserAdapter.prototype.getFrameWindow = function(A){throw new SL4B_Error("getFrameWindow method not implemented"); }; SL4B_AbstractBrowserAdapter.prototype.addEventListener = function(A,C,B){throw new SL4B_Error("addEventListener method not implemented"); }; SL4B_AbstractBrowserAdapter.prototype.dump = function(A){}; SL4B_AbstractBrowserAdapter.prototype.convertExceptionToString = function(A){var l_sValue=null; if(typeof A.getClass!="undefined"){l_sValue=A.getClass()+": "+A.getMessage();}else if(typeof A.stack!="undefined"){l_sValue=A.name+": "+A.message+" ("+A.fileName+" [line "+A.lineNumber+"])";}else if(typeof A.description!="undefined"){l_sValue=A.name+": "+A.message;}else if(typeof A.toString!="undefined"){l_sValue=A.toString();}else {l_sValue=A+"";}return l_sValue; }; var SL4B_IEBrowserAdapter=function(){if(window.ActiveXObject){ try {this.m_oTracer.name="SL4B";}catch(e){} }}; SL4B_IEBrowserAdapter.prototype = new SL4B_AbstractBrowserAdapter;SL4B_IEBrowserAdapter.prototype.isFirefox = function(){return false; }; SL4B_IEBrowserAdapter.prototype.isInternetExplorer = function(){return true; }; SL4B_IEBrowserAdapter.prototype.getBrowserVersion = function(){var l_sFullDescription=window.navigator.userAgent; var l_nStartPos=l_sFullDescription.indexOf("MSIE "); var l_sVersion=l_sFullDescription.substring(l_nStartPos+5,l_sFullDescription.indexOf(";",l_nStartPos)); return l_sVersion.toLowerCase(); }; SL4B_IEBrowserAdapter.prototype.addEventListener = function(A,C,B){A.attachEvent("on"+C,B);}; SL4B_IEBrowserAdapter.prototype.getFrameWindow = function(A){var l_oFrame=document.frames[A]; return ((typeof l_oFrame=="undefined") ? null : l_oFrame); }; SL4B_IEBrowserAdapter.prototype.dump = function(A){if(this.m_oTracer){this.m_oTracer.trace(A.substr(0,256));}}; if(SL4B_AbstractBrowserAdapter.isInternetExplorer()){SL4B_Accessor.setBrowserAdapter(new SL4B_IEBrowserAdapter());}var SL4B_FirefoxBrowserAdapter=function(){}; SL4B_FirefoxBrowserAdapter.prototype = new SL4B_AbstractBrowserAdapter;SL4B_FirefoxBrowserAdapter.prototype.isFirefox = function(){return true; }; SL4B_FirefoxBrowserAdapter.prototype.isInternetExplorer = function(){return false; }; SL4B_FirefoxBrowserAdapter.prototype.getBrowserVersion = function(){return navigator.vendorSub; }; SL4B_FirefoxBrowserAdapter.prototype.addEventListener = function(A,C,B){A.addEventListener(C,B,false);}; SL4B_FirefoxBrowserAdapter.prototype.dump = function(A){dump(A);}; SL4B_FirefoxBrowserAdapter.prototype.getFrameWindow = function(A){var oIFrameElement=this.getElementById(A); return ((oIFrameElement==null) ? null : oIFrameElement.contentWindow); }; if(!SL4B_AbstractBrowserAdapter.isInternetExplorer()&&!SL4B_AbstractBrowserAdapter.isSafari()){SL4B_Accessor.setBrowserAdapter(new SL4B_FirefoxBrowserAdapter());}var SL4B_SafariBrowserAdapter=function(){}; SL4B_SafariBrowserAdapter.prototype = new SL4B_AbstractBrowserAdapter;SL4B_SafariBrowserAdapter.prototype.isFirefox = function(){return true; }; SL4B_SafariBrowserAdapter.prototype.isInternetExplorer = function(){return false; }; SL4B_SafariBrowserAdapter.prototype.getBrowserVersion = function(){return navigator.vendorSub; }; SL4B_SafariBrowserAdapter.prototype.addEventListener = function(A,C,B){A.addEventListener(C,B,false);}; SL4B_SafariBrowserAdapter.prototype.dump = function(A){window.console.log(A);}; SL4B_SafariBrowserAdapter.prototype.getFrameWindow = function(A){var oIFrameElement=this.getElementById(A); return ((oIFrameElement==null) ? null : oIFrameElement.contentWindow); }; if(SL4B_AbstractBrowserAdapter.isSafari()){SL4B_Accessor.setBrowserAdapter(new SL4B_SafariBrowserAdapter());}var SL4B_FrameRegistrarAccessor = new function(){this.m_oFrameRegistrar=null;this.setCommonContainerDomain = function(A){SL4B_Accessor.getLogger().log(SL4B_DebugLevel.const_RTTP_FINEST_INT,"SL4B_FrameRegistrarAccessor.setCommonContainerDomain: domain \"{0}\"",A);var l_sContainerFrameLocation=SL4B_Accessor.getConfiguration().getContainerFrameLocation(); var l_oContainerFrame=eval(l_sContainerFrameLocation); if(window!=l_oContainerFrame){ try {l_oContainerFrame.document.domain=A;SL4B_Accessor.getLogger().log(SL4B_DebugLevel.const_INFO_INT,"SL4B_FrameRegistrarAccessor.setCommonContainerDomain: container frame domain set to \"{0}\"",A);}catch(e){SL4B_Accessor.getLogger().log(SL4B_DebugLevel.const_INFO_INT,"SL4B_FrameRegistrarAccessor.setCommonContainerDomain: failed to set container frame domain to \"{0}\"",A);} }else {SL4B_Accessor.getLogger().log(SL4B_DebugLevel.const_INFO_INT,"SL4B_FrameRegistrarAccessor.setCommonContainerDomain: container frame domain was not set, this page is the container frame");}}; this.getFrameRegistrar = function(){if(this.m_oFrameRegistrar==null){var l_sContainerFrameLocation=SL4B_Accessor.getConfiguration().getContainerFrameLocation(); var l_oContainerFrame=eval(l_sContainerFrameLocation); if(typeof l_oContainerFrame.SL4B_FrameRegistrar=="undefined"){l_oContainerFrame.SL4B_FrameRegistrar=new SL_LI();}this.m_oFrameRegistrar=l_oContainerFrame.SL4B_FrameRegistrar;}return this.m_oFrameRegistrar; }; this.setMasterFrame = function(A){this.getFrameRegistrar().setMasterFrame(A);}; this.removeMasterFrame = function(){SL4B_Logger.log(SL4B_DebugLevel.const_RTTP_FINEST_INT,"FrameRegistrarAccessor.removeMasterFrame");this.getFrameRegistrar().removeMasterFrame();}; this.registerSlaveFrame = function(B,A){this.getFrameRegistrar().registerSlaveFrame(B,A);}; this.deregisterSlaveFrame = function(A){this.getFrameRegistrar().deregisterSlaveFrame(A);}; }; function SL_LI(){this.m_oMasterFrameRttpProvider=null;this.m_pRegisteredSlaveFrames=new Object();this.setMasterFrame = function(A){this.m_oMasterFrameRttpProvider=A;for(l_sFrameId in this.m_pRegisteredSlaveFrames){var l_oSlave=this.m_pRegisteredSlaveFrames[l_sFrameId]; l_oSlave.masterRegistered(this.m_oMasterFrameRttpProvider);}}; this.removeMasterFrame = function(){SL4B_Logger.log(SL4B_DebugLevel.const_RTTP_FINEST_INT,"FrameRegistrarAccessor.removeMasterFrame");this.m_oMasterFrameRttpProvider=null;for(l_sFrameId in this.m_pRegisteredSlaveFrames){var l_oSlave=this.m_pRegisteredSlaveFrames[l_sFrameId]; l_oSlave.masterClosing();}}; this.registerSlaveFrame = function(B,A){this.m_pRegisteredSlaveFrames[B]=A;if(this.m_oMasterFrameRttpProvider!=null){A.masterRegistered(this.m_oMasterFrameRttpProvider);}}; this.deregisterSlaveFrame = function(A){delete (this.m_pRegisteredSlaveFrames[A]);}; } var SL4B_AbstractRttpProvider=function(){this.m_pConnectionListeners=new Array();this.m_oLiberatorConfiguration=null;this.m_fOnBeforeCloseEventHandler=null;}; SL4B_AbstractRttpProvider.prototype.const_OK_CONNECTION_EVENT = "connectionOk";SL4B_AbstractRttpProvider.prototype.const_RECONNECTION_OK_CONNECTION_EVENT = "reconnectionOk";SL4B_AbstractRttpProvider.prototype.const_WARNING_CONNECTION_EVENT = "connectionWarning";SL4B_AbstractRttpProvider.prototype.const_ERROR_CONNECTION_EVENT = "connectionError";SL4B_AbstractRttpProvider.prototype.const_INFO_CONNECTION_EVENT = "connectionInfo";SL4B_AbstractRttpProvider.prototype.const_ATTEMPT_CONNECTION_EVENT = "connectionAttempt";SL4B_AbstractRttpProvider.prototype.const_FILE_DOWNLOAD_ERROR_CONNECTION_EVENT = "fileDownloadError";SL4B_AbstractRttpProvider.prototype.const_LOGIN_ERROR_CONNECTION_EVENT = "loginError";SL4B_AbstractRttpProvider.prototype.const_LOGIN_OK_CONNECTION_EVENT = "loginOk";SL4B_AbstractRttpProvider.prototype.const_CREDENTIALS_RETRIEVED_CONNECTION_EVENT = "credentialsRetrieved";SL4B_AbstractRttpProvider.prototype.const_MESSAGE_CONNECTION_EVENT = "message";SL4B_AbstractRttpProvider.prototype.const_SOURCE_MESSAGE_CONNECTION_EVENT = "sourceMessage";SL4B_AbstractRttpProvider.prototype.const_SERVICE_MESSAGE_CONNECTION_EVENT = "serviceMessage";SL4B_AbstractRttpProvider.prototype.const_SESSION_EJECTED_CONNECTION_EVENT = "sessionEjected";SL4B_AbstractRttpProvider.prototype.const_STATISTICS_CONNECTION_EVENT = "statistics";SL4B_AbstractRttpProvider.const_OBJECT_NAME_DELIMITER=" ";SL4B_AbstractRttpProvider.prototype.getListener = SL_AL;SL4B_AbstractRttpProvider.prototype.internalInitialise = SL_MW;SL4B_AbstractRttpProvider.prototype.initialise = function(){throw new SL4B_Error("initialise method not implemented"); }; SL4B_AbstractRttpProvider.prototype.internalStop = SL_QT;SL4B_AbstractRttpProvider.prototype.stop = SL_CV;SL4B_AbstractRttpProvider.prototype.register = SL_JC;SL4B_AbstractRttpProvider.prototype.registerSlave = SL_AC;SL4B_AbstractRttpProvider.prototype.deregisterSlave = SL_EI;SL4B_AbstractRttpProvider.prototype.connect = function(){throw new SL4B_Error("connect method not implemented"); }; SL4B_AbstractRttpProvider.prototype.reconnect = function(){throw new SL4B_Error("reconnect method not implemented"); }; SL4B_AbstractRttpProvider.prototype.connected = function(){ try {SL4B_Accessor.getCredentialsProvider().getCredentials(this);}catch(e){SL4B_Accessor.getExceptionHandler().processException(e);} }; SL4B_AbstractRttpProvider.prototype.login = function(A,B){throw new SL4B_Error("login method not implemented"); }; SL4B_AbstractRttpProvider.prototype.loggedIn = SL_QD;SL4B_AbstractRttpProvider.prototype.credentialsRetrieved = SL_MH;SL4B_AbstractRttpProvider.prototype.getObject = function(C,B,A){throw new SL4B_Error("getObject method not implemented"); }; SL4B_AbstractRttpProvider.prototype.getObjects = function(C,A,B){throw new SL4B_Error("getObjects method not implemented"); }; SL4B_AbstractRttpProvider.prototype.removeObject = function(C,B,A){throw new SL4B_Error("removeObject method not implemented"); }; SL4B_AbstractRttpProvider.prototype.removeObjects = function(C,A,B){throw new SL4B_Error("removeObjects method not implemented"); }; SL4B_AbstractRttpProvider.prototype.removeSubscriber = function(A){throw new SL4B_Error("removeSubscriber method not implemented"); }; SL4B_AbstractRttpProvider.prototype.getFilteredObject = function(E,C,B,D,A){this.getObject(E,C,this.createFieldListWithFilter(B,D,A));}; SL4B_AbstractRttpProvider.prototype.getFilteredObjects = function(E,A,C,D,B){this.getObjects(E,A,this.createFieldListWithFilter(C,D,B));}; SL4B_AbstractRttpProvider.prototype.removeFilteredObject = function(E,C,B,D,A){this.removeObject(E,C,this.createFieldListWithFilter(B,D,A));}; SL4B_AbstractRttpProvider.prototype.removeFilteredObjects = function(E,A,C,D,B){this.removeObjects(E,A,this.createFieldListWithFilter(C,D,B));}; SL4B_AbstractRttpProvider.prototype.createFieldListWithFilter = function(B,C,A){if(typeof C=="undefined"||C==null){C=true;}var l_sCombinedFieldList=(C ? "filter=" : "imagefilter=")+B; if(A&&A!=""){l_sCombinedFieldList+=","+A;}return l_sCombinedFieldList; }; SL4B_AbstractRttpProvider.prototype.createFieldListForAutoDirectory = function(B,C,A){var l_sCombinedFieldList="auto=1,monitor=1"; if(B&&B!=""){l_sCombinedFieldList+=","+this.createFieldListWithFilter(B,C,A);}else if(A&&A!=""){l_sCombinedFieldList+=","+A;}return l_sCombinedFieldList; }; SL4B_AbstractRttpProvider.prototype.createFieldListForContainer = function(A,C,D,B){if(typeof (A)=="undefined"||A==null){A="default";}var l_sCombinedFieldList="ctrid="+A; if(typeof (D)!="undefined"&&typeof (B)!="undefined"){l_sCombinedFieldList+=",ctrstart="+D+",ctrend="+B;}if(C&&C!=""){l_sCombinedFieldList+=","+C;}return l_sCombinedFieldList; }; SL4B_AbstractRttpProvider.prototype.getFilteredNewsHeadline = function(C,B,A){this.getFilteredObject(C,B,A,true,A);}; SL4B_AbstractRttpProvider.prototype.getFilteredNewsHeadlines = function(C,A,B){this.getFilteredObjects(C,A,B,true,B);}; SL4B_AbstractRttpProvider.prototype.removeFilteredNewsHeadline = function(C,B,A){this.removeFilteredObject(C,B,A,true,A);}; SL4B_AbstractRttpProvider.prototype.removeFilteredNewsHeadlines = function(C,A,B){this.removeFilteredObjects(C,A,B,true,B);}; SL4B_AbstractRttpProvider.prototype.getAutoDirectory = function(E,D,A,B,C){throw new SL4B_Error("getAutoDirectory method not implemented"); }; SL4B_AbstractRttpProvider.prototype.removeAutoDirectory = function(E,D,A,B,C){throw new SL4B_Error("removeAutoDirectory method not implemented"); }; SL4B_AbstractRttpProvider.prototype.getContainer = function(E,A,C,D,B){throw new SL4B_Error("getContainer method not implemented"); }; SL4B_AbstractRttpProvider.prototype.setContainerWindow = function(B,C,A){throw new SL4B_Error("setContainerWindow method not implemented"); }; SL4B_AbstractRttpProvider.prototype.clearContainerWindow = function(A){throw new SL4B_Error("clearContainerWindow method not implemented"); }; SL4B_AbstractRttpProvider.prototype.removeContainer = function(B,A){throw new SL4B_Error("removeContainer method not implemented"); }; SL4B_AbstractRttpProvider.prototype.getObjectType = function(B,A){throw new SL4B_Error("getObjectType method not implemented"); }; SL4B_AbstractRttpProvider.prototype.setThrottleObject = function(A,B){throw new SL4B_Error("setThrottleObject method not implemented"); }; SL4B_AbstractRttpProvider.prototype.setThrottleObjects = function(A,B){throw new SL4B_Error("setThrottleObjects method not implemented"); }; SL4B_AbstractRttpProvider.prototype.setGlobalThrottle = function(A){throw new SL4B_Error("setGlobalThrottle method not implemented"); }; SL4B_AbstractRttpProvider.prototype.disableWTStatsTimeout = function(A){throw new SL4B_Error("disableWTStatsTimeout method not implemented"); }; SL4B_AbstractRttpProvider.prototype.clearObjectListeners = function(B,A){throw new SL4B_Error("clearObjectListeners method not implemented"); }; SL4B_AbstractRttpProvider.prototype.blockObjectListeners = function(B,A){throw new SL4B_Error("blockObjectListeners method not implemented"); }; SL4B_AbstractRttpProvider.prototype.unblockObjectListeners = function(B,A){throw new SL4B_Error("unblockObjectListeners method not implemented"); }; SL4B_AbstractRttpProvider.prototype.createObject = function(A,B){throw new SL4B_Error("createObject method not implemented"); }; SL4B_AbstractRttpProvider.prototype.contribObject = function(C,A,B){throw new SL4B_Error("contribObject method not implemented"); }; SL4B_AbstractRttpProvider.prototype.deleteObject = function(A){throw new SL4B_Error("deleteObject method not implemented"); }; SL4B_AbstractRttpProvider.prototype.getFieldNames = function(){throw new SL4B_Error("getFieldNames method not implemented"); }; SL4B_AbstractRttpProvider.prototype.logout = function(){throw new SL4B_Error("logout method not implemented"); }; SL4B_AbstractRttpProvider.prototype.debug = function(B,A){throw new SL4B_Error("debug method not implemented"); }; SL4B_AbstractRttpProvider.prototype.setDebugLevel = function(A){throw new SL4B_Error("setDebugLevel method not implemented"); }; SL4B_AbstractRttpProvider.prototype.getVersion = function(){throw new SL4B_Error("getVersion method not implemented"); }; SL4B_AbstractRttpProvider.prototype.getVersionInfo = function(){throw new SL4B_Error("getVersionInfo method not implemented"); }; SL4B_AbstractRttpProvider.prototype.addConnectionListener = SL_FL;SL4B_AbstractRttpProvider.prototype.removeConnectionListener = SL_FF;SL4B_AbstractRttpProvider.prototype.notifyConnectionListeners = SL_NX;SL4B_AbstractRttpProvider.prototype.onUnload = SL_OY;function SL_AL(A){var l_sListener; if(A==null||typeof A=="undefined"){throw new SL4B_Exception("Subscriber cannot be null or undefined"); }else if(typeof A=="object"&&A.getIdentifier!='undefined'){l_sListener=A.getIdentifier();}else if(typeof A=="string"){l_sListener=A;}else {throw new SL4B_Exception("Illegal Subscriber \""+A+"\" defined"); }return l_sListener; } function SL_MW(){this.initialise();this.register(); try {SL4B_WindowEventHandler.addListener(this);}catch(e){SL4B_Accessor.getExceptionHandler().processException(e);} if(!SL4B_Accessor.getConfiguration().isNoBrowserStatus()){this.addConnectionListener(new SL_DY());}} function SL_QT(){this.stop();if(this.m_fOnBeforeCloseEventHandler!=null){this.m_fOnBeforeCloseEventHandler();}} function SL_CV(){SL4B_Logger.log(SL4B_DebugLevel.const_WARN_INT,"AbstractRttpProvider.stop");this.logout(); try {SL4B_FrameRegistrarAccessor.removeMasterFrame();}catch(e){} } function SL_JC(){ try {SL4B_FrameRegistrarAccessor.setMasterFrame(this);}catch(e){} SL4B_SubscriptionManagerAccessor.addSubscriptionManager(SL4B_SubscriptionManager);} function SL_AC(B,A,C){SL4B_SubscriptionManagerAccessor.addSubscriptionManager(C);} function SL_EI(B,A,C){SL4B_SubscriptionManagerAccessor.removeSubscriptionManager(C);} function SL_QD(){C_CallbackQueue.addCallback(new Array(this,"notifyConnectionListeners",this.const_LOGIN_OK_CONNECTION_EVENT));SL4B_SubscriptionManagerAccessor.ready();} function SL_MH(){C_CallbackQueue.addCallback(new Array(this,"notifyConnectionListeners",this.const_CREDENTIALS_RETRIEVED_CONNECTION_EVENT,SL4B_Accessor.getCredentialsProvider().getUsername()));} function SL_FL(A){this.m_pConnectionListeners.push(A);} function SL_FF(A){var l_nMatchIndex=-1; for(var l_nListener=0,l_nLength=this.m_pConnectionListeners.length;l_nListener=this.m_pFieldNameAndValues.length||A<0){throw new SL4B_Exception("getField: specified field index \""+A+"\" is out of bounds"); }return this.m_pFieldNameAndValues[A]; }; SL4B_ContributionFieldData.prototype.toString = function(){return this.m_pFieldNameAndValues.join(" "); }; function GF_Field(B,A){this.m_sName=B;this.m_sValue=A;} GF_Field.prototype.toString = function(){return "["+this.m_sName+"="+this.m_sValue+"]"; }; function SL_DY(){this.showStatus = function(A){window.status=A;}; } SL_DY.prototype = new SL4B_ConnectionListener;SL_DY.prototype.connectionWarning = function(A){this.showStatus("Connection Warning: "+A);}; SL_DY.prototype.connectionInfo = function(A){this.showStatus("Connection Information: "+A);}; SL_DY.prototype.connectionOk = function(C,A,B){this.showStatus("Connection OK: "+C+", "+A+", "+B);}; SL_DY.prototype.reconnectionOk = function(C,A,B){this.showStatus("Reconnection OK");}; SL_DY.prototype.fileDownloadError = function(B,A){this.showStatus("File Download Error: "+B+", "+A);}; SL_DY.prototype.loginError = function(A){this.showStatus("Login Error: "+A);}; SL_DY.prototype.loginOk = function(){this.showStatus("Login Ok");}; SL_DY.prototype.message = function(A,B){this.showStatus("Message :"+A+", "+B);}; SL_DY.prototype.connectionError = function(){this.showStatus("Connection Error: connection lost");}; SL_DY.prototype.serviceMessage = function(A,D,B,C){}; SL_DY.prototype.sessionEjected = function(A,B){this.showStatus("Session Ejected: "+A+", "+B);}; SL_DY.prototype.sourceMessage = function(A,C,D,B){}; SL_DY.prototype.statistics = function(A,D,E,B,C){}; var SL4B_ContainerKey=function(){this.m_nId=SL4B_ContainerKey.g_nNextId++;this.getId = function(){return this.m_nId; }; this.toString = function(){return this.m_nId+""; }; }; SL4B_ContainerKey.g_nNextId=0;var SL4B_ContainerRequestData=function(B,C,D,F,G,E){this.m_sSubscriberId=B;this.m_sContainerId=C;this.m_sContainerName=D;this.m_sFieldList=F;this.m_nWindowStart=G;this.m_nWindowEnd=E;this.getSubscriberId = function(){return this.m_sSubscriberId; }; this.getContainerId = function(){return this.m_sContainerId; }; this.getContainerName = function(){return this.m_sContainerName; }; this.getFieldList = function(){return this.m_sFieldList; }; this.getWindowStart = function(){return this.m_nWindowStart; }; this.getWindowEnd = function(){return this.m_nWindowEnd; }; this.setWindowStart = function(A){this.m_nWindowStart=A;}; this.setWindowEnd = function(A){this.m_nWindowEnd=A;}; }; var SL4B_AbstractSubscriber=function(){}; SL4B_AbstractSubscriber.prototype.m_sListenerId = null;SL4B_AbstractSubscriber.prototype.m_pMultiUpdateQueue = null;SL4B_AbstractSubscriber.prototype.initialise = SL_AU;SL4B_AbstractSubscriber.prototype.getIdentifier = function(){return SL4B_SubscriptionManager.getListenerPrefix()+this.m_sListenerId; }; SL4B_AbstractSubscriber.prototype.getLocalIdentifier = function(){return SL4B_SubscriptionManager.getLocalListenerPrefix()+this.m_sListenerId; }; SL4B_AbstractSubscriber.prototype.ready = function(){SL4B_Logger.log(SL4B_DebugLevel.const_WARN_INT,"AbstractSubscriber.ready invoked but not overridden");}; SL4B_AbstractSubscriber.prototype.WTChat = SL_JO;SL4B_AbstractSubscriber.prototype.WTContribOk = SL_FU;SL4B_AbstractSubscriber.prototype.WTContribFailed = SL_KX;SL4B_AbstractSubscriber.prototype.WTDirUpdated = SL_HT;SL4B_AbstractSubscriber.prototype.WTFieldDeleted = SL_CS;SL4B_AbstractSubscriber.prototype.WTType2Clear = SL_SD;SL4B_AbstractSubscriber.prototype.WTType3Clear = SL_BP;SL4B_AbstractSubscriber.prototype.WTNewsUpdated = SL_OD;SL4B_AbstractSubscriber.prototype.WTObjectDeleted = SL_IS;SL4B_AbstractSubscriber.prototype.WTObjectInfo = SL_EM;SL4B_AbstractSubscriber.prototype.WTObjectNotFound = SL_HE;SL4B_AbstractSubscriber.prototype.WTObjectNotStale = SL_AK;SL4B_AbstractSubscriber.prototype.WTObjectReadDenied = SL_KG;SL4B_AbstractSubscriber.prototype.WTObjectStale = SL_RE;SL4B_AbstractSubscriber.prototype.WTObjectStatus = SL_AP;SL4B_AbstractSubscriber.prototype.WTObjectType = SL_PQ;SL4B_AbstractSubscriber.prototype.WTObjectUnavailable = SL_AG;SL4B_AbstractSubscriber.prototype.WTObjectUpdated = SL_LE;SL4B_AbstractSubscriber.prototype.WTObjectWriteDenied = SL_JG;SL4B_AbstractSubscriber.prototype.WTPageUpdated = SL_CN;SL4B_AbstractSubscriber.prototype.WTRecordMultiUpdated = SL_IE;SL4B_AbstractSubscriber.prototype.WTRecordUpdated = SL_DO;SL4B_AbstractSubscriber.prototype.WTStoryReset = SL_NV;SL4B_AbstractSubscriber.prototype.WTStoryUpdated = SL_NJ;SL4B_AbstractSubscriber.prototype.WTStructureChange = SL_CM;SL4B_AbstractSubscriber.prototype.WTStructureMultiChange = SL_BJ;SL4B_AbstractSubscriber.prototype.WTPermissionUpdated = SL_DV;SL4B_AbstractSubscriber.prototype.WTPermissionDeleted = SL_LL;SL4B_AbstractSubscriber.prototype.dequeueNextMultiUpdate = SL_PZ;SL4B_AbstractSubscriber.prototype.chat = function(C,B,D,A,E){this.methodNotImplemented("chat");}; SL4B_AbstractSubscriber.prototype.contribOk = function(A){this.methodNotImplemented("contribOk");}; SL4B_AbstractSubscriber.prototype.contribFailed = function(A,C,B){this.methodNotImplemented("contribFailed");}; SL4B_AbstractSubscriber.prototype.directoryUpdated = function(D,C,A,B){this.methodNotImplemented("directoryUpdated");}; SL4B_AbstractSubscriber.prototype.directoryMultiUpdated = function(A,B){this.methodNotImplemented("recordMultiUpdated");}; SL4B_AbstractSubscriber.prototype.fieldDeleted = function(A,C,B){this.methodNotImplemented("fieldDeleted");}; SL4B_AbstractSubscriber.prototype.type2Clear = function(A){this.methodNotImplemented("type2Clear");}; SL4B_AbstractSubscriber.prototype.type3Clear = function(A){this.methodNotImplemented("type3Clear");}; SL4B_AbstractSubscriber.prototype.newsUpdated = function(A,D,C,B){this.methodNotImplemented("newsUpdated");}; SL4B_AbstractSubscriber.prototype.objectDeleted = function(A){this.methodNotImplemented("objectDeleted");}; SL4B_AbstractSubscriber.prototype.objectInfo = function(C,B,D,A){this.methodNotImplemented("objectInfo");}; SL4B_AbstractSubscriber.prototype.objectNotFound = function(A){this.methodNotImplemented("objectNotFound");}; SL4B_AbstractSubscriber.prototype.objectNotStale = function(A,B){this.methodNotImplemented("objectNotStale");}; SL4B_AbstractSubscriber.prototype.objectReadDenied = function(A,B){this.methodNotImplemented("objectReadDenied");}; SL4B_AbstractSubscriber.prototype.objectStale = function(A,B){this.methodNotImplemented("objectStale");}; SL4B_AbstractSubscriber.prototype.objectStatus = function(D,B,A,C){this.methodNotImplemented("objectStatus");}; SL4B_AbstractSubscriber.prototype.objectType = function(C,B,A){this.methodNotImplemented("objectType");}; SL4B_AbstractSubscriber.prototype.objectUnavailable = function(A){this.methodNotImplemented("objectUnavailable");}; SL4B_AbstractSubscriber.prototype.objectUpdated = function(A){this.methodNotImplemented("objectUpdated");}; SL4B_AbstractSubscriber.prototype.objectWriteDenied = function(A,B){this.methodNotImplemented("objectWriteDenied");}; SL4B_AbstractSubscriber.prototype.pageUpdated = function(E,D,B,A,C){this.methodNotImplemented("pageUpdated");}; SL4B_AbstractSubscriber.prototype.recordMultiUpdated = function(A,B,C){for(var l_nCount=0,l_nSize=B.size();l_nCount=0&&l_nArrayIndex0){this.m_nMaximumCallbacksInBatch=l_oConfiguration.getMaximumCallbackBatchSize();setTimeout("C_CallbackQueue.processCallbackBatch();",this.m_nCallbackBatchFrequency);}}; this.addCallback = function(A){if(this.m_nCallbackBatchFrequency>0){this.m_pQueue.push(A);}else {this.invokeCallback(A);}}; this.processCallbackBatch = function(){var l_nBatchStartTime=(new Date()).valueOf(); var l_nNumberOfUpdatesProcessed=0; while(this.m_pQueue.length>0&&l_nNumberOfUpdatesProcessed=0&&l_nLiberatorIndex>=0;--l_nWebPageIndex, --l_nLiberatorIndex){if(l_pWebPageDomainParts[l_nWebPageIndex]==l_pLiberatorDomainParts[l_nLiberatorIndex]){++l_nMatchingParts;}else {break; }}if(l_nMatchingParts<2){SL4B_Logger.log(SL4B_DebugLevel.const_CRITICAL_INT,"CommonDomainExtractor.determineCommonDomain: Web page and Liberator do not share the common domain (web page domain = {0}, liberator domain = {1})",A,l_oLiberatorDomainMatch[1]);throw new SL4B_Exception("determineCommonDomain [2]: web page and Liberator do not share a common domain, connection to Liberator cannot be established"); }var l_pCommonDomain=l_pWebPageDomainParts.splice(l_pWebPageDomainParts.length-l_nMatchingParts,l_nMatchingParts); var l_sCommonDomain=l_pCommonDomain.join("."); SL4B_Logger.log(SL4B_DebugLevel.const_NOTIFY_INT,"CommonDomainExtractor.determineCommonDomain: document.domain will be set to {0}",l_sCommonDomain);return l_sCommonDomain; } function SL_RF(A){SL4B_Logger.log(SL4B_DebugLevel.const_NOTIFY_INT,"CommonDomainExtractor.getCommonDomainForDifferentPorts: web page and Liberator share the same domain ({0}), but their ports differ and domain needs to be changed.",A);var l_sCommonDomain=A.substring(A.indexOf(".")+1); SL4B_Logger.log(SL4B_DebugLevel.const_NOTIFY_INT,"CommonDomainExtractor.getCommonDomainForDifferentPorts: document.domain will be set to {0}.",l_sCommonDomain);return l_sCommonDomain; } function SL_IO(){return document.domain; } var SL4B_Configuration=function(){this.m_oIndexScript=SL4B_ScriptLoader.getIndexScript();this.m_bUsingFile=false;this.m_bFileAttributeSet=false;this.m_DEFAULT_JAVA_CONNECTION_TYPES=new Array("2","3");this.m_DEFAULT_JAVASCRIPT_CONNECTION_TYPES=new Array("5","3");this.m_pDefaultAttributes=new Object();this._getDefaultServerUrl = function(B,A){var l_sDefaultServerUrl; var l_oMatch=B.match(/(^https?:\/\/[^\/]+\/)/); if(l_oMatch){l_sDefaultServerUrl=l_oMatch[0];}else {l_sDefaultServerUrl="/";}return l_sDefaultServerUrl; }; this.m_pDefaultAttributes["appletjar"]="applet.jar";this.m_pDefaultAttributes["user"]="demouser";this.m_pDefaultAttributes["password"]="demopass";this.m_pDefaultAttributes["credentialsprovider"]=SL4B_ScriptLoader.const_STANDARD_CREDENTIALS_PROVIDER;this.m_pDefaultAttributes["rttpprovider"]=SL4B_ScriptLoader.const_JAVASCRIPT_RTTP_PROVIDER;this.m_pDefaultAttributes["appletchecktimeout"]=15000;this.m_pDefaultAttributes["rttpapplettimeout"]=120000;this.m_pDefaultAttributes["debug"]=SL4B_DebugLevel.ERROR;this.m_pDefaultAttributes["rttpdebuglevel"]=SL4B_DebugLevel.CRITICAL;this.m_pDefaultAttributes["debugwindowtype"]=SL4B_Logger.const_HTML;this.m_pDefaultAttributes["keymasterurl"]=null;this.m_pDefaultAttributes["applicationid"]=null;this.m_pDefaultAttributes["discarddelay"]=10;this.m_pDefaultAttributes["jvmfileurl"]="http://www.caplin.com/products/jvm-list.js";this.m_pDefaultAttributes["jvmfiledownloadtimeout"]=10;this.m_pDefaultAttributes["logoutdelay"]=1;this.m_pDefaultAttributes["objectnamedelimiter"]=" ";this.m_pDefaultAttributes["statsinterval"]=5;this.m_pDefaultAttributes["statsreset"]=5000;this.m_pDefaultAttributes["statstimeout"]=30000;this.m_pDefaultAttributes["useconfig"]="server_config.js";this.m_pDefaultAttributes["updatebatchfreq"]=250;this.m_pDefaultAttributes["maxupdatebatchsize"]=5000;this.m_pDefaultAttributes["gcfreq"]=200;this.m_pDefaultAttributes["jscontainerpath"]="sl4b/javascript-rttp-provider";this.m_pDefaultAttributes["appletpath"]="applet";this.m_pDefaultAttributes["type3pollperiod"]=1000;this.m_pDefaultAttributes["type5reconnectcount"]=10000;this.m_pDefaultAttributes["type5padlength"]=1024*4;this.m_pDefaultAttributes["maxgetlength"]=128;this.m_pDefaultAttributes["connectiontimeout"]=15000;this.m_pDefaultAttributes["noopinterval"]=5000;this.m_pDefaultAttributes["nooptimeout"]=5000;this.m_pDefaultAttributes["service"]=null;this.m_pDefaultAttributes["keymasterconnectiontimeout"]=10000;this.m_pDefaultAttributes["keymasterkeepaliveinterval"]=30000;this.m_pDefaultAttributes["commondomain"]=null;this.m_pDefaultAttributes["enableautoloading"]=true;this.m_pDefaultAttributes["enablelatency"]=false;this.m_pDefaultAttributes["clocksyncbatchsize"]=5;this.m_pDefaultAttributes["clocksyncspacing"]=1000;this.m_pDefaultAttributes["clocksyncperiod"]=60000;this.m_pDefaultAttributes["timestampfield"]="INITIAL_TIMESTAMP";this.m_pDefaultAttributes["flashtime"]=1000;this.m_pDefaultAttributes["bg"]=null;this.m_pDefaultAttributes["bgchange"]='rel';this.m_pDefaultAttributes["bgdn"]='red';this.m_pDefaultAttributes["bgeq"]='green';this.m_pDefaultAttributes["bgup"]='blue';this.m_pDefaultAttributes["fg"]=null;this.m_pDefaultAttributes["fgchange"]=null;this.m_pDefaultAttributes["fgdn"]='red';this.m_pDefaultAttributes["fgeq"]='black';this.m_pDefaultAttributes["fgflash"]='white';this.m_pDefaultAttributes["fgup"]='blue';this.m_pDefaultAttributes["plus"]=null;this.m_pDefaultAttributes["fractionhandling"]=null;this.m_pDefaultAttributes["gfxup"]=null;this.m_pDefaultAttributes["gfxdn"]=null;this.m_pDefaultAttributes["gfxeq"]=null;this.m_pDefaultAttributes["isencoded"]=0;this.m_pDefaultAttributes["todp"]=0;this.m_pDefaultAttributes["round"]='default';this.m_pDefaultAttributes["addcommas"]=0;this.m_pDefaultAttributes["tosf"]=null;this.m_pDefaultAttributes["serverurl"]=this._getDefaultServerUrl(this.m_oIndexScript.src,window.location.href);}; SL4B_Configuration.prototype.getScriptTagAttribute = SL_AB;SL4B_Configuration.prototype.getIntegerScriptTagAttribute = SL_DK;SL4B_Configuration.prototype.getPositiveIntegerScriptTagAttribute = SL_PO;SL4B_Configuration.prototype.getIntegerScriptTagAttributeInMilliseconds = SL_LM;SL4B_Configuration.prototype.unaryScriptTagAttributeExists = function(A){return (this.getScriptTagAttribute(A)!=null); }; SL4B_Configuration.prototype.setAttribute = function(B,A){this.m_bFileAttributeSet=true;this.m_pDefaultAttributes[B.toLowerCase()]=A;}; SL4B_Configuration.prototype.getAttribute = function(A){A=A.toLowerCase();return ((typeof this.m_pDefaultAttributes[A]=="undefined") ? null : this.m_pDefaultAttributes[A]); }; SL4B_Configuration.prototype.getAppletPath = function(){var l_sValue=this.m_oIndexScript.getAttribute("appletpath"); if(l_sValue==null){l_sValue=this.getAttribute("appletpath");}return l_sValue.replace(/(^\/)/,"").replace(/\/$/,""); }; SL4B_Configuration.prototype.getAppletUrl = function(){var l_sValue=this.m_oIndexScript.getAttribute("appleturl"); if(l_sValue==null){l_sValue=this.getAttribute("appleturl");}return ((l_sValue==null) ? null : l_sValue.replace(/\/$/,"")); }; SL4B_Configuration.prototype.getJsContainerPath = function(){var l_sValue=this.m_oIndexScript.getAttribute("jscontainerpath"); if(l_sValue==null){l_sValue=this.getAttribute("jscontainerpath");}return l_sValue.replace(/(^\/)/,"").replace(/\/$/,""); }; SL4B_Configuration.prototype.getJsContainerUrl = function(){var l_sValue=this.m_oIndexScript.getAttribute("jscontainerurl"); if(l_sValue==null){l_sValue=this.getAttribute("jscontainerurl");}return ((l_sValue==null) ? null : l_sValue.replace(/\/$/,"")); }; SL4B_Configuration.prototype.getServerUrl = function(){var l_sServerUrl=this.getScriptTagAttribute("serverurl"); if(l_sServerUrl.match(/\/$/)==null){l_sServerUrl+="/";}return l_sServerUrl; }; SL4B_Configuration.prototype.getAppletJarName = function(){return this.getScriptTagAttribute("appletjar"); }; SL4B_Configuration.prototype.getUsername = function(){return this.getScriptTagAttribute("user"); }; SL4B_Configuration.prototype.getPassword = function(){return this.getScriptTagAttribute("password"); }; SL4B_Configuration.prototype.includeRtsl = function(){return this.unaryScriptTagAttributeExists("includertsl"); }; SL4B_Configuration.prototype.includeRtml = function(){return this.unaryScriptTagAttributeExists("includertml"); }; SL4B_Configuration.prototype.isMasterFrame = function(){return !this.unaryScriptTagAttributeExists("usemasterframe"); }; SL4B_Configuration.prototype.isMultiSource = function(){return this.unaryScriptTagAttributeExists("multisource"); }; SL4B_Configuration.prototype.getService = function(){return this.getScriptTagAttribute("service"); }; SL4B_Configuration.prototype.getKeyMasterConnectionTimeout = function(){return this.getScriptTagAttribute("keymasterconnectiontimeout"); }; SL4B_Configuration.prototype.getKeyMasterKeepAliveInterval = function(){return this.getScriptTagAttribute("keymasterkeepaliveinterval"); }; SL4B_Configuration.prototype.isEnableLatency = function(){return this.getScriptTagAttribute("enablelatency"); }; SL4B_Configuration.prototype.getClocksyncBatchSize = function(){return this.getScriptTagAttribute("clocksyncbatchsize"); }; SL4B_Configuration.prototype.getClocksyncSpacing = function(){return this.getScriptTagAttribute("clocksyncspacing"); }; SL4B_Configuration.prototype.getClocksyncPeriod = function(){return this.getScriptTagAttribute("clocksyncperiod"); }; SL4B_Configuration.prototype.getTimestampField = function(){return this.getScriptTagAttribute("timestampfield"); }; SL4B_Configuration.prototype.getFrameId = function(){var l_sId; if(this.isMasterFrame()){l_sId="master";}else {l_sId=this.getScriptTagAttribute("frameid");if(l_sId==null){l_sId=this.getFrameLocation();if(l_sId==null){SL4B_Logger.log(SL4B_DebugLevel.const_WARN_INT,"Configuration.getFrameId: The slave frame did not have a id defined on it. This identifier is required for the master/slave functionality to work.");}}}return l_sId; }; SL4B_Configuration.prototype.getFrameLocation = function(){return this.getScriptTagAttribute("thisframe"); }; SL4B_Configuration.prototype.getMasterFrameLocation = function(){return this.getScriptTagAttribute("usemasterframe"); }; SL4B_Configuration.prototype.getCredentialsProvider = function(){if(this.getKeyMasterUrl()==null||this.getKeyMasterUrl()==""){return this.getScriptTagAttribute("credentialsprovider"); }else {return SL4B_ScriptLoader.const_KEYMASTER_CREDENTIALS_PROVIDER; }}; SL4B_Configuration.prototype.getParameterFromQueryString = function(A){var l_sDebugLevel=null; try {var l_oNextWindow; do{l_oNextWindow=(l_oNextWindow) ? l_oNextWindow.parent : window;l_sDebugLevel=this.getParameterFromProvidedQueryString(l_oNextWindow.location.href,A);}while((!l_sDebugLevel)&&(l_oNextWindow.parent!=l_oNextWindow));}catch(e){} return l_sDebugLevel; }; SL4B_Configuration.prototype.getParameterFromProvidedQueryString = function(B,A){var l_oMatches=B.match(new RegExp("[?&]"+A+"=([^&#]+)")); return (l_oMatches) ? l_oMatches[1] : null; }; SL4B_Configuration.prototype.getDebugLevel = function(){var l_sDebugLevel=this.getParameterFromQueryString("debug"); return (l_sDebugLevel) ? l_sDebugLevel : this.getScriptTagAttribute("debug"); }; SL4B_Configuration.prototype.getRttpDebugLevel = function(){var l_sDebugLevel=this.getParameterFromQueryString("rttpdebuglevel"); return (l_sDebugLevel) ? l_sDebugLevel : this.getScriptTagAttribute("rttpdebuglevel"); }; SL4B_Configuration.prototype.getAppletCheckTimeout = function(){return this.getIntegerScriptTagAttribute("appletchecktimeout"); }; SL4B_Configuration.prototype.getRttpAppletTimeout = function(){return this.getIntegerScriptTagAttribute("rttpapplettimeout"); }; SL4B_Configuration.prototype.includeFlash = SL_KE;SL4B_Configuration.prototype.getRttpProvider = SL_OB;SL4B_Configuration.prototype.getDebugWindowType = SL_CY;SL4B_Configuration.prototype.isAutoLoadingEnabled = SL_OG;SL4B_Configuration.prototype.getCommonDomain = SL_QE;SL4B_Configuration.prototype.loadConfigurationFile = SL_AX;SL4B_Configuration.prototype.loaded = SL_RI;SL4B_Configuration.prototype.getConnectionTypes = SL_LB;SL4B_Configuration.prototype.getType3PollPeriod = SL_QH;SL4B_Configuration.prototype.getType5ReconnectCount = SL_GT;SL4B_Configuration.prototype.getType5PadLength = SL_FG;SL4B_Configuration.prototype.getConnectionTimeout = SL_IF;SL4B_Configuration.prototype.getNOOPInterval = SL_HX;SL4B_Configuration.prototype.getNOOPTimeout = SL_FA;SL4B_Configuration.prototype.getMaxGetLength = SL_QN;SL4B_Configuration.prototype.getApplicationId = function(){var l_sClientApplicationId=this.getScriptTagAttribute("applicationid"); return "SL4B"+((l_sClientApplicationId==null||l_sClientApplicationId=="") ? "" : ":"+l_sClientApplicationId); }; SL4B_Configuration.prototype.getDiscardDelay = function(){return this.getIntegerScriptTagAttribute("discarddelay"); }; SL4B_Configuration.prototype.getJvmFileUrl = function(){return this.getScriptTagAttribute("jvmfileurl"); }; SL4B_Configuration.prototype.getJvmFileDownloadTimeout = function(){return this.getIntegerScriptTagAttribute("jvmfiledownloadtimeout"); }; SL4B_Configuration.prototype.getLogoutDelay = function(){return this.getIntegerScriptTagAttribute("logoutdelay"); }; SL4B_Configuration.prototype.getObjectNameDelimiter = function(){return this.getScriptTagAttribute("objectnamedelimiter"); }; SL4B_Configuration.prototype.getStatsInterval = function(){return this.getIntegerScriptTagAttributeInMilliseconds("statsinterval"); }; SL4B_Configuration.prototype.getStatsReset = function(){return this.getIntegerScriptTagAttributeInMilliseconds("statsreset"); }; SL4B_Configuration.prototype.getStatsTimeout = function(){return this.getIntegerScriptTagAttributeInMilliseconds("statstimeout"); }; SL4B_Configuration.prototype.getKeyMasterUrl = function(){return this.getScriptTagAttribute("keymasterurl"); }; SL4B_Configuration.prototype.getUseConfig = function(){return this.getScriptTagAttribute("useconfig"); }; SL4B_Configuration.prototype.getGarbageCollectionFrequency = function(){return this.getPositiveIntegerScriptTagAttribute("gcfreq"); }; SL4B_Configuration.prototype.getMicrosoftGarbageCollectionFrequency = function(){return this.getPositiveIntegerScriptTagAttribute("gcfreqms"); }; SL4B_Configuration.prototype.getSunGarbageCollectionFrequency = function(){return this.getPositiveIntegerScriptTagAttribute("gcfreqsun"); }; SL4B_Configuration.prototype.getCallbackBatchFrequency = function(){return ((this.getRttpProvider()==SL4B_ScriptLoader.const_JAVASCRIPT_RTTP_PROVIDER) ? 0 : this.getIntegerScriptTagAttribute("updatebatchfreq")); }; SL4B_Configuration.prototype.getMaximumCallbackBatchSize = function(){return this.getPositiveIntegerScriptTagAttribute("maxupdatebatchsize"); }; SL4B_Configuration.prototype.isNoStaleNotify = function(){return this.unaryScriptTagAttributeExists("nostalenotify"); }; SL4B_Configuration.prototype.isNoBrowserStatus = function(){return this.unaryScriptTagAttributeExists("nobrowserstatus"); }; SL4B_Configuration.prototype.isNoStats = function(){return this.unaryScriptTagAttributeExists("nostats"); }; SL4B_Configuration.prototype.isPortlet = function(){return this.unaryScriptTagAttributeExists("portlet"); }; SL4B_Configuration.prototype.isDisableJvmDownload = function(){return this.unaryScriptTagAttributeExists("disablejvmdownload"); }; SL4B_Configuration.prototype.isMultiUpdates = function(){return this.unaryScriptTagAttributeExists("multiupdates"); }; SL4B_Configuration.prototype.isUseStaticHtmlFailoverContainers = function(){return this.unaryScriptTagAttributeExists("usestatichtmlfailovercontainers"); }; SL4B_Configuration.prototype.isDirectEnable = function(){return this.unaryScriptTagAttributeExists("directEnable"); }; SL4B_Configuration.prototype.isHttpEnable = function(){return this.unaryScriptTagAttributeExists("httpEnable"); }; SL4B_Configuration.prototype.isRefreshEnable = function(){return this.unaryScriptTagAttributeExists("refreshEnable"); }; SL4B_Configuration.prototype.getContainerFrameLocation = function(){var l_sCommonContainerFrame=this.getScriptTagAttribute("containerframelocation"); if(l_sCommonContainerFrame==null){var l_sMasterFrameLocation=this.getMasterFrameLocation(); if(l_sMasterFrameLocation!=null&&l_sMasterFrameLocation!=""){var l_oMatch=l_sMasterFrameLocation.match(/(((window)|(self)|(parent)|(top)|(opener))(\.|$))*/); if(l_oMatch!=null&&l_oMatch[0]!=""){l_sCommonContainerFrame=l_oMatch[0].replace(/\.$/,"");}else {l_sCommonContainerFrame="top";}}else {l_sCommonContainerFrame="top";}}return l_sCommonContainerFrame; }; function SL_AB(A){A=A.toLowerCase();var l_sValue=this.m_oIndexScript.getAttribute(A); if(l_sValue==null){l_sValue=this.getAttribute(A);}return l_sValue; } function SL_DK(A){A=A.toLowerCase();var l_nIntegerValue=this.getAttribute(A); var l_sValue=this.m_oIndexScript.getAttribute(A); if(this.checkInteger(l_sValue)==true){l_nIntegerValue=parseInt(l_sValue);}return l_nIntegerValue; } SL4B_Configuration.prototype.checkInteger = function(A){var isValid=false; if(A!==null&&!isNaN(A)){var l_nTestValue=parseInt(A,10); if(l_nTestValue>=0){isValid=true;}}return isValid; }; function SL_PO(A){A=A.toLowerCase();var l_nPositiveIntegerValue=this.getAttribute(A); var l_sValue=this.m_oIndexScript.getAttribute(A); if(this.checkPositiveInteger(l_sValue)==true){l_nPositiveIntegerValue=parseInt(l_sValue);}return l_nPositiveIntegerValue; } SL4B_Configuration.prototype.checkPositiveInteger = function(A){var isValid=false; if(this.checkInteger(A)==true&&parseInt(A)>0){isValid=true;}return isValid; }; function SL_LM(A){A=A.toLowerCase();var l_nAttributeValue=this.getIntegerScriptTagAttribute(A); if(l_nAttributeValue==null){l_nAttributeValue=this.getAttribute(A);}else if(l_nAttributeValue<500){l_nAttributeValue=l_nAttributeValue*1000;}return l_nAttributeValue; } function SL_KE(){return (this.includeRtml()||this.unaryScriptTagAttributeExists("enableflash")); } function SL_LB(){var l_sValue=this.getScriptTagAttribute("connectiontypes"); var l_pConnectionTypes; if(l_sValue!=null){l_pConnectionTypes=l_sValue.split(",");}else {if(this.isDirectEnable()||this.isHttpEnable()||this.isRefreshEnable()){var l_pConnectionTypes=new Array(); if(this.getRttpProvider()==SL4B_ScriptLoader.const_JAVASCRIPT_RTTP_PROVIDER){if(this.isRefreshEnable()){l_pConnectionTypes.push("3");}else {l_pConnectionTypes.push("5");l_pConnectionTypes.push("3");}}else {if(this.isDirectEnable()){l_pConnectionTypes.push("1");}if(this.isHttpEnable()){l_pConnectionTypes.push("2");}if(this.isRefreshEnable()){l_pConnectionTypes.push("3");}}}else {if(this.getRttpProvider()==SL4B_ScriptLoader.const_JAVASCRIPT_RTTP_PROVIDER){l_pConnectionTypes=this.m_DEFAULT_JAVASCRIPT_CONNECTION_TYPES;}else {l_pConnectionTypes=this.m_DEFAULT_JAVA_CONNECTION_TYPES;}}}return l_pConnectionTypes; } function SL_QH(){return this.getIntegerScriptTagAttribute("type3pollperiod"); } function SL_GT(){return this.getIntegerScriptTagAttribute("type5reconnectcount"); } function SL_FG(){return this.getIntegerScriptTagAttribute("type5padlength"); } function SL_IF(){return this.getPositiveIntegerScriptTagAttribute("connectiontimeout"); } function SL_HX(){return this.getPositiveIntegerScriptTagAttribute("noopinterval"); } function SL_FA(){return this.getPositiveIntegerScriptTagAttribute("nooptimeout"); } function SL_QN(){return this.getIntegerScriptTagAttribute("maxgetlength"); } function SL_OB(){return this.getScriptTagAttribute("rttpprovider").toLowerCase(); } function SL_CY(){return this.getScriptTagAttribute("debugwindowtype"); } function SL_OG(){var l_vEnableAutoLoading=this.getScriptTagAttribute("enableautoloading"); if(typeof l_vEnableAutoLoading=="string"){l_vEnableAutoLoading=(l_vEnableAutoLoading.toLowerCase()=="true");}return l_vEnableAutoLoading; } function SL_QE(){var l_sCommonDomain=this.getScriptTagAttribute("commondomain"); if(l_sCommonDomain==null){l_sCommonDomain=GF_CommonDomainExtractor.getCommonDomain();}return l_sCommonDomain; } function SL_AX(){var l_sConfigurationFileUrl=this.getScriptTagAttribute("configurationfile"); if(l_sConfigurationFileUrl!=null){this.m_bUsingFile=true;SL4B_ScriptLoader.loadScript(l_sConfigurationFileUrl);SL4B_ScriptLoader.loadSl4bScript("configuration/configuration-file-loaded.js");}else {this.loaded();}} function SL_RI(){if(this.m_bUsingFile&&!this.m_bFileAttributeSet){SL4B_Accessor.getLogger().log(SL4B_DebugLevel.const_WARN_INT,"Configuration.loaded: Specified configuration file was empty. There may have been an error loading the file!");}SL4B_Accessor.getLogger().printMessage(SL4B_Version.getVersionInfo());var l_pMethodNamesToIgnoreSet=new Object(); l_pMethodNamesToIgnoreSet["getIntegerScriptTagAttributeInMilliseconds"]=true;l_pMethodNamesToIgnoreSet["getPositiveIntegerScriptTagAttribute"]=true;l_pMethodNamesToIgnoreSet["getIntegerScriptTagAttribute"]=true;l_pMethodNamesToIgnoreSet["getScriptTagAttribute"]=true;l_pMethodNamesToIgnoreSet["getAttribute"]=true;l_pMethodNamesToIgnoreSet["getParameterFromProvidedQueryString"]=true;l_pMethodNamesToIgnoreSet["getParameterFromQueryString"]=true;var l_oConfigurationMethodRegExp=/(^get)|(^is)|(^include)/; var l_pMethodNames=new Array(); for(l_sMethod in this){if(l_sMethod.match(l_oConfigurationMethodRegExp)&&!l_pMethodNamesToIgnoreSet[l_sMethod]&&typeof this[l_sMethod]=="function"){l_pMethodNames.push(l_sMethod);}}l_pMethodNames.sort();for(var l_nMethod=0,l_nLength=l_pMethodNames.length;l_nMethod");var l_oIFrameIdentifierToElementMap=new Object(); var l_oIFrameIdentifierToTimeoutMap=new Object(); this.loadIFrame = function(C,D,B,A){if(typeof B.scriptLoadTimeout!="function"){throw new SL4B_Exception("C_DynamicIFrameLoader.loadIFrame: l_oErrorCallback parameter must implement scriptLoadTimeout() "); }D+=((D.indexOf("?")==-1) ? "?" : "&")+"time="+(new Date()).valueOf();var l_sCommonDomain=SL4B_Accessor.getConfiguration().getCommonDomain(); if(l_sCommonDomain!=null){D+="&"+SL4B_JavaScriptRttpProviderConstants.const_DOMAIN_PARAMETER+"="+l_sCommonDomain;}var l_oIFrameElement=l_oIFrameIdentifierToElementMap[C]; if(typeof l_oIFrameElement!="undefined"){document.getElementById("iframeloader").removeChild(l_oIFrameElement);}l_oIFrameElement=document.createElement('iframe');l_oIFrameElement.src=D;l_oIFrameElement.style.display="none";l_oIFrameIdentifierToElementMap[C]=l_oIFrameElement;document.getElementById("iframeloader").appendChild(l_oIFrameElement);var self=this; var l_nTimeout=setTimeout(function(){self.checkLoaded(C,B);},A); l_oIFrameIdentifierToTimeoutMap[C]=l_nTimeout;}; this.checkLoaded = function(B,A){var l_nTimeout=l_oIFrameIdentifierToTimeoutMap[B]; if(typeof l_nTimeout!="undefined"){this.clearIFrame(B);A.scriptLoadTimeout(B);}}; this.iframeLoaded = function(A){var l_nTimeout=l_oIFrameIdentifierToTimeoutMap[A]; if(typeof l_nTimeout!="undefined"){clearTimeout(l_nTimeout);this.clearIFrame(A);}}; this.clearIFrame = function(A){var l_oIFrameElement=l_oIFrameIdentifierToElementMap[A]; if(typeof l_oIFrameElement!="undefined"){document.getElementById("iframeloader").removeChild(l_oIFrameElement);}delete (l_oIFrameIdentifierToElementMap[A]);delete (l_oIFrameIdentifierToTimeoutMap[A]);}; }; var SL4B_KeyMasterCredentialsProvider=function(){this.m_sKeyMasterUrl=SL4B_Accessor.getConfiguration().getKeyMasterUrl();this.m_sSourceId="default";this.m_sUserName="";this.m_oRttpProvider=null;this.m_nKeepAliveTimer=0;this.m_sKeyMasterToken=null;if(this.m_sKeyMasterUrl==null){SL4B_Logger.log(SL4B_DebugLevel.const_ERROR_INT,"KeyMasterCredentialsProvider.getCredentials: KeyMaster URL has not been defined");}}; SL4B_KeyMasterCredentialsProvider.prototype = new SL4B_AbstractCredentialsProvider;SL4B_KeyMasterCredentialsProvider.prototype.getCredentials = SL_RZ;SL4B_KeyMasterCredentialsProvider.prototype.getKeyMasterToken = SL_IK;SL4B_KeyMasterCredentialsProvider.prototype.getUsername = SL_GQ;SL4B_KeyMasterCredentialsProvider.prototype.scriptLoadSuccess = function(B,A,C){C_DynamicIFrameLoader.iframeLoaded("keymaster");this.m_sUserName=A;this.m_sKeyMasterToken=C;C_CallbackQueue.addCallback(new Array(this.m_oRttpProvider,"notifyConnectionListeners",this.m_oRttpProvider.const_INFO_CONNECTION_EVENT,"KeyMaster authentication success"));window.setTimeout("SL4B_Accessor.getRttpProvider().login('"+this.m_sUserName+"','"+C+"')",0);var l_nKeepAliveInterval=SL4B_Accessor.getConfiguration().getKeyMasterKeepAliveInterval(); if(l_nKeepAliveInterval>0){var self=this; this.m_nKeepAliveTimer=setInterval(function(){self.sendKeepAlive();},l_nKeepAliveInterval);}}; SL4B_KeyMasterCredentialsProvider.prototype.scriptLoadFailure = function(B,A){C_DynamicIFrameLoader.iframeLoaded("keymaster");this.m_sKeyMasterToken=null;this.m_oRttpProvider.stop();C_CallbackQueue.addCallback(new Array(this.m_oRttpProvider,"notifyConnectionListeners",this.m_oRttpProvider.const_LOGIN_ERROR_CONNECTION_EVENT,"KeyMaster error - "+A));SL4B_Logger.log(SL4B_DebugLevel.const_ERROR_INT,"KeyMasterCredentialsProvider.scriptLoadFailure: Error: "+A);}; SL4B_KeyMasterCredentialsProvider.prototype.scriptLoadTimeout = function(A){if(A=="keymaster"){this.m_sKeyMasterToken=null;this.m_oRttpProvider.stop();C_CallbackQueue.addCallback(new Array(this.m_oRttpProvider,"notifyConnectionListeners",this.m_oRttpProvider.const_LOGIN_ERROR_CONNECTION_EVENT,"KeyMaster error - Could not load keymaster script"));SL4B_Logger.log(SL4B_DebugLevel.const_ERROR_INT,"KeyMasterCredentialsProvider.scriptLoadTimeout: Could not load keymaster script");}else if(A=="keymaster-poll"){SL4B_Logger.log(SL4B_DebugLevel.const_INFO_INT,"KeyMasterCredentialsProvider.scriptLoadTimeout: Keep-alive polling failed");}}; SL4B_KeyMasterCredentialsProvider.prototype.sendKeepAlive = function(){var l_sUrl=""; var l_oMatch=this.m_sKeyMasterUrl.match(/((^|\/)servlet\/)/); if(l_oMatch!=null){l_sUrl=this.m_sKeyMasterUrl.replace(/((^|\/)servlet\/.*)/,l_oMatch[2]+"poll.jsp");}else {l_sUrl=this.m_sKeyMasterUrl.replace(/[^\/]+$/,"poll.jsp");}C_DynamicIFrameLoader.loadIFrame("keymaster-poll",l_sUrl,this,SL4B_Accessor.getConfiguration().getKeyMasterConnectionTimeout());}; SL4B_KeyMasterCredentialsProvider.prototype.escapeParameter = function(A){return escape(A).replace(/[.]/g,"%2E").replace(/@/g,"%40"); }; function SL_RZ(A){this.m_oRttpProvider=A;clearInterval(this.m_nKeepAliveTimer);if(this.m_sKeyMasterUrl==null){this.sendErrorResponse(A,"KeyMaster URL has not been defined");}else {this.m_sUserName="";var l_sSeparator=((this.m_sKeyMasterUrl.indexOf("?")!=-1) ? "&" : "?"); var l_sUrl=this.m_sKeyMasterUrl+l_sSeparator+"type=html&sourceid="+this.escapeParameter(this.m_sSourceId)+"&username="+this.escapeParameter(SL4B_Accessor.getConfiguration().getUsername()); SL4B_Logger.log(SL4B_DebugLevel.const_INFO_INT,"KeyMasterCredentialsProvider.getCredentials: requesting credentials from {0}",l_sUrl);C_DynamicIFrameLoader.loadIFrame("keymaster",l_sUrl,this,SL4B_Accessor.getConfiguration().getKeyMasterConnectionTimeout());}} function SL_IK(){return this.m_sKeyMasterToken; } function SL_GQ(){return this.m_sUserName; } SL4B_KeyMasterCredentialsProvider.prototype.sendErrorResponse = function(A,B){A.stop();C_CallbackQueue.addCallback(new Array(A,"notifyConnectionListeners",A.const_LOGIN_ERROR_CONNECTION_EVENT,"KeyMaster error - "+B));}; function SigGen_Signature(B,A,C){ try {SL4B_Accessor.getCredentialsProvider().scriptLoadSuccess(B,A,C);}catch(e){SL4B_Logger.log(SL4B_DebugLevel.const_ERROR_INT,"SigGen_Signature: failed to retrieve SL4B_CredentialsProvider");SL4B_Accessor.getExceptionHandler().processException(e);} } function SigGen_AuthenticationFailed(B,A){ try {SL4B_Accessor.getCredentialsProvider().scriptLoadFailure(B,A);}catch(e){SL4B_Logger.log(SL4B_DebugLevel.const_ERROR_INT,"SigGen_AuthenticationFailed: failed to retrieve SL4B_CredentialsProvider");SL4B_Accessor.getExceptionHandler().processException(e);} } function SigGen_KeepAliveLoaded(){C_DynamicIFrameLoader.iframeLoaded("keymaster-poll");} function SL_CT(){SL4B_Accessor.setCredentialsProvider(new SL4B_KeyMasterCredentialsProvider());} var SL4B_LiberatorConfiguration=function(){this.m_nCurrentConnection=-1;this.m_nSuccessfulConnection=-1;this.m_nIgnoreConnection=-1;this.m_pConnectionDatas=new Array();}; SL4B_LiberatorConfiguration.prototype.initialise = function(){this.m_nCurrentConnection=-1;this.m_nSuccessfulConnection=-1;this.m_nIgnoreConnection=-1;this.m_pConnectionDatas=new Array();}; SL4B_LiberatorConfiguration.prototype.addConnection = function(A){this.m_pConnectionDatas.push(A);}; SL4B_LiberatorConfiguration.prototype.getNextConnection = function(){var l_oConfigurationData=null; if(this.m_nSuccessfulConnection!=-1){l_oConfigurationData=this.m_pConnectionDatas[this.m_nSuccessfulConnection];this.m_nIgnoreConnection=this.m_nSuccessfulConnection;this.m_nSuccessfulConnection=-1;this.m_nCurrentConnection=-1;}else {++this.m_nCurrentConnection;if(this.m_nCurrentConnection==this.m_nIgnoreConnection){++this.m_nCurrentConnection;}if(this.m_nCurrentConnectionA; } function SL_GZ(A,B){this.m_nCommandType=A;this.m_pArguments=B;} SL_FB = new function(){this.const_GET_OBJECT=1;this.const_GET_OBJECTS=2;this.const_REMOVE_OBJECT=3;this.const_REMOVE_OBJECTS=4;this.const_GET_OBJECT_TYPE=5;this.const_SET_THROTTLE_OBJECT=6;this.const_SET_THROTTLE_OBJECTS=7;this.const_SET_GLOBAL_THROTTLE=8;this.const_DISABLE_WTSTATS_TIMEOUT=9;this.const_CLEAR_OBJECT_LISTENERS=10;this.const_BLOCK_OBJECT_LISTENERS=11;this.const_UNBLOCK_OBJECT_LISTENERS=12;this.const_CREATE_OBJECT=13;this.const_CONTRIB_OBJECT=14;this.const_DELETE_OBJECT=15;this.const_GET_FIELD_NAMES=16;this.const_LOGOUT=17;this.const_DEBUG=18;this.const_SET_DEBUG_LEVEL=19;this.const_GET_VERSION=20;this.const_GET_VERSION_INFO=21;this.const_ADD_CONNECTION_LISTENER=22;this.const_REMOVE_CONNECTION_LISTENER=23;this.const_GET_CONTAINER=24;this.const_REMOVE_CONTAINER=25;this.const_REMOVE_SUBSCRIBER=26;this.const_SET_CONTAINER_WINDOW=27;this.const_CLEAR_CONTAINER_WINDOW=28;this.const_SET_CONTAINER_WINDOW=29;this.const_CLEAR_CONTAINER=30;this.const_GET_AUTO_DIRECTORY=31;this.const_REMOVE_AUTO_DIRECTORY=32;}; var SL4B_SlaveFrameRttpProvider=function(){SL4B_AbstractRttpProvider.apply(this);this.m_oMasterFrameRttpProvider=null;this.m_oRttpCommandQueue=new GF_RttpCommandQueue();this.m_bMasterRefresh=false;}; SL4B_SlaveFrameRttpProvider.prototype = new SL4B_AbstractRttpProvider;SL4B_SlaveFrameRttpProvider.prototype.register = SL_PS;SL4B_SlaveFrameRttpProvider.prototype.masterRegistered = SL_KR;SL4B_SlaveFrameRttpProvider.prototype.masterClosing = SL_HH;SL4B_SlaveFrameRttpProvider.prototype.connect = function(){}; SL4B_SlaveFrameRttpProvider.prototype.login = function(A,B){}; SL4B_SlaveFrameRttpProvider.prototype.reconnect = function(){}; SL4B_SlaveFrameRttpProvider.prototype.getObject = SL_EB;SL4B_SlaveFrameRttpProvider.prototype.getObjects = SL_PA;SL4B_SlaveFrameRttpProvider.prototype.removeObject = SL_OK;SL4B_SlaveFrameRttpProvider.prototype.removeObjects = SL_ET;SL4B_SlaveFrameRttpProvider.prototype.removeSubscriber = SL_GE;SL4B_SlaveFrameRttpProvider.prototype.getObjectType = SL_QQ;SL4B_SlaveFrameRttpProvider.prototype.setThrottleObject = SL_JH;SL4B_SlaveFrameRttpProvider.prototype.setThrottleObjects = SL_QO;SL4B_SlaveFrameRttpProvider.prototype.setGlobalThrottle = SL_RQ;SL4B_SlaveFrameRttpProvider.prototype.createObject = SL_GM;SL4B_SlaveFrameRttpProvider.prototype.contribObject = SL_CJ;SL4B_SlaveFrameRttpProvider.prototype.deleteObject = SL_DS;SL4B_SlaveFrameRttpProvider.prototype.getFieldNames = SL_HL;SL4B_SlaveFrameRttpProvider.prototype.logout = function(){}; SL4B_SlaveFrameRttpProvider.prototype.initialise = function(){}; SL4B_SlaveFrameRttpProvider.prototype.stop = SL_DJ;SL4B_SlaveFrameRttpProvider.prototype.disableWTStatsTimeout = function(A){this.m_oMasterFrameRttpProvider.disableWTStatsTimeout(A);}; SL4B_SlaveFrameRttpProvider.prototype.clearObjectListeners = function(B,A){this.m_oMasterFrameRttpProvider.clearObjectListeners(B,A);}; SL4B_SlaveFrameRttpProvider.prototype.blockObjectListeners = function(B,A){this.m_oMasterFrameRttpProvider.blockObjectListeners(B,A);}; SL4B_SlaveFrameRttpProvider.prototype.unblockObjectListeners = function(B,A){this.m_oMasterFrameRttpProvider.unblockObjectListeners(B,A);}; SL4B_SlaveFrameRttpProvider.prototype.debug = function(B,A){this.m_oMasterFrameRttpProvider.debug(B,A);}; SL4B_SlaveFrameRttpProvider.prototype.setDebugLevel = function(A){return this.m_oMasterFrameRttpProvider.setDebugLevel(A); }; SL4B_SlaveFrameRttpProvider.prototype.getVersion = function(){return this.m_oMasterFrameRttpProvider.getVersion()+"-"+this.m_oMasterFrameRttpProvider.getBuildVersion(); }; SL4B_SlaveFrameRttpProvider.prototype.getVersionInfo = function(){return this.m_oMasterFrameRttpProvider.getVersionInfo(); }; function SL_EB(C,B,A){if(this.m_oMasterFrameRttpProvider!=null){this.m_oMasterFrameRttpProvider.getObject(C,B,A);}else {this.m_oRttpCommandQueue.getObject(C,B,A);}} function SL_PA(C,A,B){this.m_oMasterFrameRttpProvider.getObjects(C,A,B);} function SL_OK(C,B,A){this.m_oMasterFrameRttpProvider.removeObject(C,B,A);} function SL_ET(C,A,B){this.m_oMasterFrameRttpProvider.removeObjects(C,A,B);} function SL_GE(A){if(this.m_oMasterFrameRttpProvider!=null){this.m_oMasterFrameRttpProvider.removeSubscriber(A);}} function SL_QQ(B,A){this.m_oMasterFrameRttpProvider.getObjectType(B,A);} function SL_JH(A,B){this.m_oMasterFrameRttpProvider.setThrottleObject(A,B);} function SL_QO(A,B){this.m_oMasterFrameRttpProvider.setThrottleObject(A,B);} function SL_RQ(A){this.m_oMasterFrameRttpProvider.setGlobalThrottle(A);} function SL_GM(A,B){return this.m_oMasterFrameRttpProvider.createObject(A,B); } function SL_CJ(C,A,B){this.m_oMasterFrameRttpProvider.contribObject(C,A,B);} function SL_DS(A){return this.m_oMasterFrameRttpProvider.deleteObject(A); } function SL_HL(){return this.m_oMasterFrameRttpProvider.getFieldNames(); } function SL_PS(){setTimeout("SL4B_FrameRegistrarAccessor.registerSlaveFrame(SL4B_Accessor.getConfiguration().getFrameId(), SL4B_Accessor.getRttpProvider())",0);} function SL_DJ(){SL4B_FrameRegistrarAccessor.deregisterSlaveFrame(SL4B_Accessor.getConfiguration().getFrameId());if(this.m_oMasterFrameRttpProvider!=null){this.m_oMasterFrameRttpProvider.deregisterSlave(SL4B_Accessor.getConfiguration().getFrameId(),this,SL4B_SubscriptionManager);}for(var i=0;i