Interface GatewayConnection
- All Known Implementing Classes:
- AbstractGatewayConnection,- ClientGatewayConnection,- DesignerGatewayConnection
public interface GatewayConnection
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddConnectionListener(ConnectionListener listener) voidDifferent from the ConnectionListener in the sense that this listener is intended for use in redundant setups, where the status of the inactive connection must be updated along with the status of the active connection.voidvoidaddPropertyChangeListener(String propName, PropertyChangeListener l) voidvoidConnect to the gateway(s) specifiedvoidReturns a list of all possible Gateway addresses that are known to the client.The encrypted auth challenge that was used to log inintReturns the current connection mode: MODE_FULL MODE_READ_ONLY MODE_DISCONNECTEDintReturns the address of the gateway that is currently being communicated with.Returns the string version of the currently connected gateway's "Node Role", which will be one of: Independent Master BackupReturns the url to the web portion of the gateway, like "http[s]://<address>:<port>[/context]"intThe number of concurrent HTTP connections allowed.intPlatform edition.The name of the project that we are currently logged into, if any.getRoles()The set of roles that the actively logged in user has, if any.Returns "http" or "https" depending on our transport schemeThe set of security zones that the actively logged in user has, if any.intThe username of the actively logged in user, if any.idpLoginFinish(String projectName) idpLoginStart(String projectName) booleanbooleanbooleanbooleanlogin(String projectName, AuthChallenge challenge) voidlogout()voidremoveConnectionListener(ConnectionListener listener) voidvoidvoidremovePropertyChangeListener(String propName, PropertyChangeListener l) voidvoidvoidsetConnectionMode(int connectionMode) voidsetConnectTimeout(int connectTimeout) voidsetHttpConcurrency(int concurrency) voidsetOpcBrowseTimeout(int opcBrowseTimeout) voidsetSocketTimeout(int socketTimeout) tokenLogin(String projectName, String encodedAuthToken) voidManually update the status of all connection listeners.
- 
Method Details- 
connectConnect to the gateway(s) specified
- 
disconnectvoid disconnect()
- 
getGatewayAddressHttpURL getGatewayAddress()Returns the address of the gateway that is currently being communicated with.
- 
getAllAddressesReturns a list of all possible Gateway addresses that are known to the client. This list includes redundant master and backup addresses. The list is used for client restarts.
- 
getGatewayInterfaceGatewayInterface getGatewayInterface()
- 
getGatewayWebURLString getGatewayWebURL()Returns the url to the web portion of the gateway, like "http[s]://<address>:<port>[/context]"
- 
getSchemeString getScheme()Returns "http" or "https" depending on our transport scheme
- 
getGatewayNodeRoleString getGatewayNodeRole()Returns the string version of the currently connected gateway's "Node Role", which will be one of:- Independent
- Master
- Backup
 
- 
getGatewayTimeZoneTimeZone getGatewayTimeZone()
- 
login- Throws:
- GatewayException
 
- 
tokenLogin- Throws:
- GatewayException
 
- 
idpLoginStart- Throws:
- GatewayException
 
- 
idpLoginFinish- Throws:
- GatewayException
 
- 
logoutvoid logout()
- 
getConnectionModeint getConnectionMode()Returns the current connection mode:- MODE_FULL
- MODE_READ_ONLY
- MODE_DISCONNECTED
 
- 
setConnectionModevoid setConnectionMode(int connectionMode) 
- 
isConnectedboolean isConnected()
- 
isConnectionUpboolean isConnectionUp()
- 
isSessionValidboolean isSessionValid()
- 
addPushNotificationListener
- 
removePushNotificationListener
- 
removePushNotificationListeners
- 
addPropertyChangeListener
- 
removePropertyChangeListener
- 
addPropertyChangeListener
- 
removePropertyChangeListener
- 
addConnectionListener
- 
removeConnectionListener
- 
getProjectNameString getProjectName()The name of the project that we are currently logged into, if any.
- 
getUsernameString getUsername()The username of the actively logged in user, if any.
- 
getAuthChallengeAuthChallenge getAuthChallenge()The encrypted auth challenge that was used to log in
- 
getRolesThe set of roles that the actively logged in user has, if any.
- 
getSecurityZonesThe set of security zones that the actively logged in user has, if any.
- 
getConnectTimeoutint getConnectTimeout()
- 
setConnectTimeoutvoid setConnectTimeout(int connectTimeout) 
- 
getSocketTimeoutint getSocketTimeout()
- 
setSocketTimeoutvoid setSocketTimeout(int socketTimeout) 
- 
getOpcBrowseTimeoutint getOpcBrowseTimeout()
- 
setOpcBrowseTimeoutvoid setOpcBrowseTimeout(int opcBrowseTimeout) 
- 
getHttpConcurrencyint getHttpConcurrency()The number of concurrent HTTP connections allowed. 0 or less means unlimited.
- 
setHttpConcurrencyvoid setHttpConcurrency(int concurrency) 
- 
addConnectionStatusListenerDifferent from the ConnectionListener in the sense that this listener is intended for use in redundant setups, where the status of the inactive connection must be updated along with the status of the active connection. The passed ConnectionStatusListener will be continually updated with master/independent and backup connection status every few seconds.
- 
removeConnectionStatusListener
- 
triggerConnectionStatusListenersvoid triggerConnectionStatusListeners()Manually update the status of all connection listeners. Use this in situations where listeners need an immediate update without waiting for the normal thread task to fire (such as when first displaying a status panel).
- 
getPlatformEditionString getPlatformEdition()Platform edition. Standard edition = "", Edge edition = "edge"
- 
getEdgeProjectName- Returns:
- the name of the Edge project as defined by the user on the edge gateway settings
- Throws:
- GatewayException
 
- 
isPlatformLicensedboolean isPlatformLicensed()
 
-