public interface IRemoteConnectionWorkingCopy extends IRemoteConnection
IRemoteConnection.Service
FILE_SEPARATOR_PROPERTY, LINE_SEPARATOR_PROPERTY, LOCALE_CHARMAP_PROPERTY, OS_ARCH_PROPERTY, OS_NAME_PROPERTY, OS_VERSION_PROPERTY, PATH_SEPARATOR_PROPERTY, USER_HOME_PROPERTY
Modifier and Type | Method and Description |
---|---|
IRemoteConnection |
getOriginal()
Returns the original connection this working copy was created from.
|
boolean |
isDirty()
Returns whether this connection has been modified since it was last saved or created.
|
IRemoteConnection |
save()
Saves this working copy to its original connection and returns a handle to the resulting connection.
|
void |
setAttribute(java.lang.String key,
java.lang.String value)
Set an implementation dependent attribute for the connection.
|
void |
setName(java.lang.String name)
Set the name for this connection
|
void |
setSecureAttribute(java.lang.String key,
java.lang.String value)
Set an attribute such as a password that's stored in secure storage.
|
addConnectionChangeListener, close, fireConnectionChangeEvent, getAttribute, getConnectionType, getName, getProperty, getSecureAttribute, getService, getWorkingCopy, hasService, isOpen, open, removeConnectionChangeListener
IRemoteConnection getOriginal()
boolean isDirty()
IRemoteConnection save() throws RemoteConnectionException
RemoteConnectionException
void setName(java.lang.String name)
name
- void setAttribute(java.lang.String key, java.lang.String value)
#getAttributes()
. Attributes are persisted along with connection information.key
- attribute keyvalue
- attribute valuevoid setSecureAttribute(java.lang.String key, java.lang.String value)
key
- value
-