public class ClientGatewayConnection extends AbstractGatewayConnection
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ORIGINATING_LICENSE_ATTRIBUTE_KEY |
changeSupport, CONNECT_FAIL, CONNECT_SUCCESS, CONNECT_UNKNOWN, CONNECTING, connectTimeout, currentAddress, gatewayAddresses, gatewayNodeRole, gatewayTimeZone, GET_ADDRESSES_ERROR, hash, httpConcurrency, INDEPENDENT, launchContext, listenerList, log, LOGGER_STATUS_LOOKUP, NEW_ADDRESSES, NO_NEW_ADDRESSES, NON_ACTIVE, REDUNDANT_BACKUP, REDUNDANT_MASTER, RELOGIN, socketTimeout, ssl, STATUS_CONNECT_FAIL, STATUS_CONNECT_INACTIVE, STATUS_CONNECT_UNKNOWN, STATUS_CONNECT_WARNING, STATUS_CONNECTED, STATUS_CONNECTED_INCOMPATIBLE, STATUS_CONNECTING
_DATE_FORMATTER, ARG_MESSAGETYPE, ARG_MODULEID, ATR_INDEX, ATR_LENGTH, ATR_NAME, ATR_TYPE, booleanNull, byteNull, charNull, DATE_FORMAT_STRING, doubleNull, ELM_ARG, ELM_COLLIST, ELM_COLUMN, ELM_COMPRESSEDROWS, ELM_DATA, ELM_ERRORCODE, ELM_ERRORMESSAGE, ELM_EXCLS, ELM_EXMSG, ELM_EXOVERRIDES_TOSTRING, ELM_EXSTRING, ELM_MBODY, ELM_MESSAGE, ELM_MTYPE, ELM_NOTIFICATION, ELM_NOTIFICATIONS, ELM_RESPONSE, ELM_ROW, ELM_ROWS, ELM_SERIALIZED_RESPONSE, ELM_SETCOOKIE, ELM_STACKTRACE, ELM_STELM, ELM_STELM_DECL, ELM_STELM_FILE, ELM_STELM_LINE, ELM_STELM_METH, ERRNO_ASYNC_CALL, ERRNO_ASYNC_CALL_CANCELED, ERRNO_ASYNC_CALL_FAILED, ERRNO_BROWSE_ERROR, ERRNO_COMM_ERROR, ERRNO_CONNECTION_MODE, ERRNO_DBCONNECTION_NAMING, ERRNO_DBCONNECTION_SQL, ERRNO_HISTORY_QUERY_ERROR, ERRNO_INTERNAL, ERRNO_INVALIDARGS, ERRNO_INVOCATION_EXCEPTION, ERRNO_LICENE_RESTRICTED, ERRNO_LOGIN_FAILED, ERRNO_LOGIN_FAILED_LICENSING, ERRNO_NAMING, ERRNO_NO_SESSION, ERRNO_NON_ACTIVE_NODE, ERRNO_NON_MASTER_NODE, ERRNO_NOT_AUTHORIZED, ERRNO_NOTIMP, ERRNO_OK, ERRNO_PARSE, ERRNO_PONG, ERRNO_POST_ERROR, ERRNO_RUNTIME_EXPIRED, ERRNO_SQL, ERRNO_SQLTAGS_PROVIDER_DISABLED, ERRNO_SQLTAGS_PROVIDER_FAULTED, ERRNO_SQLTAGS_PROVIDER_LOADING, ERRNO_SQLTAGS_PROVIDER_MISSING, ERRNO_SQLTAGS_SEND_TAGS, ERRNO_SSL_REQUIRED, ERRNO_TIMEOUT, ERRNO_TRIAL_EXPIRED, ERRNO_VERSION_INCOMPATABILITY, ERROR_MESSAGE_TYPE, floatNull, intNull, longNull, MODE_DISCONNECTED, MODE_FULL, MODE_READ_ONLY, MTYPE_COPY_IMAGE, MTYPE_CREATE_IMAGE_FOLDER, MTYPE_CREATE_PROJECT, MTYPE_DBTEST, MTYPE_GET_NEW_RESOURCEID, MTYPE_INVALID, MTYPE_INVOKE_FUNCTION, MTYPE_LIST_AUTHS, MTYPE_LIST_COLS, MTYPE_LIST_DBS, MTYPE_LIST_IMAGES, MTYPE_LIST_MODULES, MTYPE_LIST_ROLES, MTYPE_LIST_SQLTAG_PROVIDERS, MTYPE_LIST_TABLES, MTYPE_PING, MTYPE_PUBLIC_PING, MTYPE_REMOVE_IMAGE, MTYPE_REPORT_ERROR, MTYPE_SEND_EMAIL, MTYPE_SQLTAGS_ADD_SCANCLASS, MTYPE_SQLTAGS_ADD_TAGS, MTYPE_SQLTAGS_EDIT_SCANCLASS, MTYPE_SQLTAGS_EDIT_TAGS, MTYPE_SQLTAGS_ERROR_LIST, MTYPE_SQLTAGS_FSQL_BROWSE, MTYPE_SQLTAGS_FSQL_LIST, MTYPE_SQLTAGS_GET_SCANCLASS, MTYPE_SQLTAGS_LIST, MTYPE_SQLTAGS_META_LIST, MTYPE_SQLTAGS_POLL, MTYPE_SQLTAGS_REMOVE_SCANCLASS, MTYPE_SQLTAGS_REMOVE_TAGS, MTYPE_SQLTAGS_WRITE, MTYPE_STATUS_POLL, MTYPE_UPLOAD_IMAGE, MTYPE_VERSION_CHECK, PROTECT_DIALOG_TYPE, shortNull, WARNING_MESSAGE_TYPE
Constructor and Description |
---|
ClientGatewayConnection(LaunchContext launchContext,
ClientContext clientContext) |
Modifier and Type | Method and Description |
---|---|
protected AuthenticatedUser |
doLogin(GatewayInterface gatewayInterface,
java.lang.String projectName,
AuthChallenge challenge) |
protected int |
getScope()
Returns the scope for this connection.
|
protected void |
onVersionMismatch()
Called when the version is detected to have changed on the gateway.
|
void |
setClientPanel(ClientPanel clientPanel) |
void |
updateGatewayMetaInfo()
Updates the gateway timezone and role info
|
addConnectionListener, addConnectionStatusListener, addPropertyChangeListener, addPropertyChangeListener, addPushNotificationListener, connect, disconnect, fireConnectionEvent, fireConnectionEvent, fireConnectionEvent, firePushNotification, fishForAliveServer, getAllAddresses, getAuthChallenge, getConnectionMode, getConnectTimeout, getGatewayAddress, getGatewayInterface, getGatewayNodeRole, getGatewayTimeZone, getGatewayWebURL, getHttpConcurrency, getProjectName, getRoles, getScheme, getSocketTimeout, getUsername, isConnected, isConnectionRelated, isConnectionUp, isLoggedIn, isSessionValid, login, logout, newGatewayInterface, notifyGatewayException, receiveNotification, removeConnectionListener, removeConnectionStatusListener, removePropertyChangeListener, removePropertyChangeListener, removePushNotificationListener, removePushNotificationListeners, setConnected, setConnectionMode, setConnectionUp, setConnectTimeout, setGatewayInterface, setHttpConcurrency, setIndependentAddressList, setProjectName, setSocketTimeout, toString, triggerConnectionStatusListeners, updateBackupAddresses, updateMasterAddresses
public static final java.lang.String ORIGINATING_LICENSE_ATTRIBUTE_KEY
public ClientGatewayConnection(LaunchContext launchContext, ClientContext clientContext)
protected int getScope()
AbstractGatewayConnection
getScope
in class AbstractGatewayConnection
protected AuthenticatedUser doLogin(GatewayInterface gatewayInterface, java.lang.String projectName, AuthChallenge challenge) throws GatewayException
doLogin
in class AbstractGatewayConnection
GatewayException
public void updateGatewayMetaInfo()
AbstractGatewayConnection
updateGatewayMetaInfo
in class AbstractGatewayConnection
protected void onVersionMismatch()
AbstractGatewayConnection
onVersionMismatch
in class AbstractGatewayConnection
public void setClientPanel(ClientPanel clientPanel)