public class PluginConfig extends Object
Constructor and Description |
---|
PluginConfig()
Empty default constructor
|
PluginConfig(PluginConfig pConfig)
Copy-constructor (clone the given config)
|
PluginConfig(String pHostName,
int pPort,
boolean pEnabled)
Create a
PluginConfig with the given host name, port, and enable flag |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object pObj) |
String |
getHostName()
Getter for attribute
hostName |
int |
getPort()
Getter for attribute
port |
boolean |
isEnabled()
Getter for attribute
enabled |
void |
setEnabled(boolean pEnabled)
Setter for attribute
enabled |
void |
setHostName(String pHostName)
Setter for attribute
hostName |
void |
setPort(int pPort)
Setter for attribute
port |
String |
toString() |
public PluginConfig(String pHostName, int pPort, boolean pEnabled)
PluginConfig
with the given host name, port, and enable flagpHostName
- Host name (interface) to listen topPort
- Port to listen topEnabled
- Enable/Disable the port listener (i.e. the whole plug-in)public PluginConfig(PluginConfig pConfig)
pConfig
- Config to clonepublic PluginConfig()
public String getHostName()
hostName
hostName
public void setHostName(String pHostName)
hostName
pHostName
- New value for attribute hostName
public boolean isEnabled()
enabled
enabled
public void setEnabled(boolean pEnabled)
enabled
pEnabled
- New value for attribute enabled
public void setPort(int pPort)
port
pPort
- New value for attribute port
Copyright © 2017 LightySoft. All rights reserved. [v1.0.0 (June 29th, 2015)]