public class NetworkEnvironmentSettingsEditor
extends java.lang.Object
NetworkEnvironmentSettings objects and automatically applies the new settings.| Constructor and Description |
|---|
NetworkEnvironmentSettingsEditor(NetworkEnvironmentSettings settingToEdit)
Creates a new
NetworkEnvironmentSettingsEditor for the given NetworkEnvironmentSettings |
| Modifier and Type | Method and Description |
|---|---|
NetworkEnvironment |
apply(NetworkEnvironment applyTo)
Applies the changes and restarts the
NetworkEnvironment |
NetworkEnvironment |
applyAll(NetworkEnvironmentSettings settings,
NetworkEnvironment applyTo) |
int |
getBroadcastPort() |
int |
getDataPort() |
java.lang.String |
getDeviceName() |
DeviceType |
getDeviceType() |
byte[] |
getEncryptionKey() |
EncryptionType |
getEncryptionType() |
java.lang.String |
getOsName() |
void |
setBroadcastPort(int broadcastPort) |
void |
setDataPort(int dataPort) |
void |
setDeviceName(java.lang.String deviceName) |
void |
setDeviceType(DeviceType deviceType) |
void |
setEncryptionKey(byte[] encryptionKey) |
void |
setEncryptionType(EncryptionType encryptionType) |
void |
setOsName(java.lang.String osName) |
public NetworkEnvironmentSettingsEditor(NetworkEnvironmentSettings settingToEdit)
NetworkEnvironmentSettingsEditor for the given NetworkEnvironmentSettingssettingToEdit - the NetworkEnvironmentSettings which should be editedpublic NetworkEnvironment apply(NetworkEnvironment applyTo)
NetworkEnvironmentapplyTo - the NetworkEnvironment to which the settings should be appliedpublic NetworkEnvironment applyAll(NetworkEnvironmentSettings settings, NetworkEnvironment applyTo)
public int getDataPort()
public void setDataPort(int dataPort)
public int getBroadcastPort()
public void setBroadcastPort(int broadcastPort)
public java.lang.String getDeviceName()
public void setDeviceName(java.lang.String deviceName)
public DeviceType getDeviceType()
public void setDeviceType(DeviceType deviceType)
public EncryptionType getEncryptionType()
public void setEncryptionType(EncryptionType encryptionType)
public java.lang.String getOsName()
public void setOsName(java.lang.String osName)
public byte[] getEncryptionKey()
public void setEncryptionKey(byte[] encryptionKey)