Class DesignerGatewayConnection
java.lang.Object
com.inductiveautomation.ignition.client.gateway_interface.AbstractGatewayConnection
com.inductiveautomation.ignition.designer.DesignerGatewayConnection
- 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
Fields 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 LoginResultauthChallengeLogin(GatewayInterface gatewayInterface, AuthChallenge challenge, @Nullable String projectName) 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 voidprotected voidvoidsetDesigner(IgnitionDesigner newDesigner) protected LoginResulttokenLogin(GatewayInterface gatewayInterface, String encodedAuthToken, @Nullable String projectName) Methods inherited from class com.inductiveautomation.ignition.client.gateway_interface.AbstractGatewayConnection
addConnectionStatusListener, addPropertyChangeListener, addPropertyChangeListener, addPushNotificationListener, addPushNotificationListeners, authChallengeLogin, connect, disconnect, firePushNotifications, getAllAddresses, getAuthChallenge, getConnectionMode, getConnectTimeout, getEdgeProjectName, getGatewayAddress, getGatewayInterface, getGatewayNodeRole, getGatewayTimeZone, getGatewayWebURL, getHttpConcurrency, getOpcBrowseTimeout, getProjectName, getRoles, getScheme, getSecurityZones, getSocketTimeout, getUsername, idpLoginFinish, idpLoginStart, isConnected, isConnectionRelated, isConnectionUp, isPlatformLicensed, isSessionValid, logout, onConnect, operateOnPropertyChangeSupport, removeConnectionStatusListener, removePropertyChangeListener, removePropertyChangeListener, removePushNotificationListener, removePushNotificationListeners, 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
-
Constructor Details
-
DesignerGatewayConnection
-
-
Method Details
-
getScope
protected int getScope()- Specified by:
getScopein 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
-
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
-
getAuthenticationStrategy
- Throws:
Exception
-
onUnrecoverableIdpAuthSession
protected void onUnrecoverableIdpAuthSession()- Specified by:
onUnrecoverableIdpAuthSessionin classAbstractGatewayConnection
-
onVersionMismatch
protected void onVersionMismatch()- Specified by:
onVersionMismatchin classAbstractGatewayConnection
-
setDesigner
-