Class ClientGatewayConnection
java.lang.Object
com.inductiveautomation.ignition.client.gateway_interface.AbstractGatewayConnection
com.inductiveautomation.factorypmi.application.runtime.ClientGatewayConnection
- All Implemented Interfaces:
GatewayConnection,GatewayConstants
-
Nested Class Summary
Nested classes/interfaces inherited from class com.inductiveautomation.ignition.client.gateway_interface.AbstractGatewayConnection
AbstractGatewayConnection.LoginContext, AbstractGatewayConnection.WebSocketEndpointNested classes/interfaces inherited from interface com.inductiveautomation.ignition.client.gateway_interface.GatewayConnection
GatewayConnection.RpcNested classes/interfaces inherited from interface com.inductiveautomation.ignition.common.gateway.GatewayConstants
GatewayConstants.ClientAuthChallengeDeserializer -
Field Summary
FieldsFields inherited from class com.inductiveautomation.ignition.client.gateway_interface.AbstractGatewayConnection
CONNECT_FAIL, CONNECT_SUCCESS, CONNECTING, context, INDEPENDENT, LOG, LOGGER_STATUS_LOOKUP, readWriteLock, REDUNDANT_BACKUP, REDUNDANT_MASTER, STATUS_CONNECT_FAIL, STATUS_CONNECT_INACTIVE, STATUS_CONNECT_UNKNOWN, STATUS_CONNECT_WARNING, STATUS_CONNECTED, STATUS_CONNECTED_INCOMPATIBLE, STATUS_CONNECTINGFields inherited from interface com.inductiveautomation.ignition.client.gateway_interface.GatewayConnection
CONNECTED, CONNECTION_MODE, CONNECTION_UP, GATEWAY_ADDRESS, GATEWAY_NODE_ROLE, GATEWAY_TIME_ZONE, PROJECT_NAME, ROLES, SESSION_VALID, USERNAME, ZONESFields inherited from interface com.inductiveautomation.ignition.common.gateway.GatewayConstants
BUILD_NUMBER, CONNECT_TIMEOUT, ERRNO_BROWSE_ERROR, ERRNO_COMM_ERROR, ERRNO_CONNECTION_MODE, ERRNO_DBCONNECTION_SQL, ERRNO_INTERNAL, ERRNO_INVALIDARGS, ERRNO_INVOCATION_EXCEPTION, ERRNO_LICENSE_RESTRICTED, ERRNO_LOGIN_CANCELLED, ERRNO_LOGIN_FAILED, ERRNO_LOGIN_FAILED_LICENSING, ERRNO_NO_SESSION, ERRNO_NON_ACTIVE_NODE, ERRNO_NON_MASTER_NODE, ERRNO_NOT_AUTHORIZED, ERRNO_OK, ERRNO_PARSE, ERRNO_PASSWORD_EXPIRED, ERRNO_SQL, ERRNO_TRIAL_EXPIRED, ERRNO_VERSION_INCOMPATIBILITY, ERROR_MESSAGE_TYPE, FUNCTION_NAME, GSON, LOCALE_LIST, MODE_DISCONNECTED, MODE_FULL, MODE_READ_ONLY, MODULE_ID, MTYPE_PUBLIC_PING, OPC_BROWSE_TIMEOUT, PACKAGE_ID, PROJECT_NAME, REMOTE_HOST, SCOPE_HEADER, SESSION_ID_HEADER, SOCKET_TIMEOUT, TIMEZONE_ID, WARNING_MESSAGE_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected LoginResultauthChallengeLogin(GatewayInterface gatewayInterface, AuthChallenge challenge, @Nullable String projectName) The name of the project that we are currently logged into, if any.Get the project name bound to this connection.protected intgetScope()protected HandshakeExchangehandshake(GatewayInterface gatewayInterface) protected LoginResultidpLoginFinish(GatewayInterface gatewayInterface, @Nullable String projectName) protected @Nullable URIidpLoginStart(GatewayInterface gatewayInterface, String projectName) protected voidlogout(GatewayInterface gatewayInterface) protected voidonConnect(GatewayInterface gatewayInterface) protected voidprotected voidprotected voidvoidsetClientPanel(ClientPanel newClientPanel) protected LoginResulttokenLogin(GatewayInterface gatewayInterface, String encodedAuthToken, @Nullable String projectName) Methods inherited from class com.inductiveautomation.ignition.client.gateway_interface.AbstractGatewayConnection
addConnectionStatusListener, addPropertyChangeListener, addPropertyChangeListener, addPushNotificationListener, authChallengeLogin, connect, disconnect, firePushNotifications, getAllAddresses, getAuthChallenge, getConnectionMode, getConnectTimeout, getEdgeProjectName, getGatewayAddress, getGatewayInterface, getGatewayNodeRole, getGatewayTimeZone, getGatewayWebURL, getHttpConcurrency, getOpcBrowseTimeout, getRoles, getScheme, getSecurityZones, getSocketTimeout, getUsername, idpLoginFinish, idpLoginStart, isConnected, isConnectionRelated, isConnectionUp, isPlatformLicensed, isSessionValid, logout, operateOnPropertyChangeSupport, removeConnectionStatusListener, removePropertyChangeListener, removePropertyChangeListener, removePushNotificationListener, setConnectionMode, setConnectTimeout, setHttpConcurrency, setOpcBrowseTimeout, setSocketTimeout, triggerConnectionStatusListeners, updateLocaleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.inductiveautomation.ignition.client.gateway_interface.GatewayConnection
addPushNotificationListener
-
Field Details
-
ORIGINATING_LICENSE_ATTRIBUTE_KEY
- See Also:
-
-
Constructor Details
-
ClientGatewayConnection
-
-
Method Details
-
getScope
protected int getScope()- Specified by:
getScopein classAbstractGatewayConnection
-
getProjectName
Description copied from interface:GatewayConnectionThe name of the project that we are currently logged into, if any.- Specified by:
getProjectNamein interfaceGatewayConnection- Overrides:
getProjectNamein classAbstractGatewayConnection
-
getProjectNameInternal
Description copied from class:AbstractGatewayConnectionGet the project name bound to this connection. Any time we need to log into the Gateway, we need to pass the project name bound to this connection. This method exposes the project name in a scope-dependent way assuming the read or write lock is already held by the caller.- Specified by:
getProjectNameInternalin classAbstractGatewayConnection- Returns:
- the project name bound to this connection
-
addPushNotificationListeners
protected void addPushNotificationListeners()- Overrides:
addPushNotificationListenersin classAbstractGatewayConnection
-
removePushNotificationListeners
protected void removePushNotificationListeners()- Overrides:
removePushNotificationListenersin classAbstractGatewayConnection
-
authChallengeLogin
protected LoginResult authChallengeLogin(GatewayInterface gatewayInterface, AuthChallenge challenge, @Nullable @Nullable String projectName) throws GatewayException - Specified by:
authChallengeLoginin classAbstractGatewayConnection- Throws:
GatewayException
-
tokenLogin
protected LoginResult tokenLogin(GatewayInterface gatewayInterface, String encodedAuthToken, @Nullable @Nullable String projectName) throws GatewayException - Specified by:
tokenLoginin classAbstractGatewayConnection- Throws:
GatewayException
-
idpLoginStart
@Nullable protected @Nullable URI idpLoginStart(GatewayInterface gatewayInterface, String projectName) throws GatewayException - Specified by:
idpLoginStartin classAbstractGatewayConnection- Throws:
GatewayException
-
logout
- Specified by:
logoutin classAbstractGatewayConnection
-
idpLoginFinish
protected LoginResult idpLoginFinish(GatewayInterface gatewayInterface, @Nullable @Nullable String projectName) throws GatewayException - Specified by:
idpLoginFinishin classAbstractGatewayConnection- Throws:
GatewayException
-
handshake
- Specified by:
handshakein classAbstractGatewayConnection
-
onUnrecoverableIdpAuthSession
protected void onUnrecoverableIdpAuthSession()- Specified by:
onUnrecoverableIdpAuthSessionin classAbstractGatewayConnection
-
onVersionMismatch
protected void onVersionMismatch()- Specified by:
onVersionMismatchin classAbstractGatewayConnection
-
onConnect
- Overrides:
onConnectin classAbstractGatewayConnection
-
setClientPanel
-