public class SimpleServerConfigImpl extends java.lang.Object implements SimpleServerConfig
Constructor and Description |
---|
SimpleServerConfigImpl() |
Modifier and Type | Method and Description |
---|---|
SimpleServerConfig |
addCommandFactory(CommandFactory factory) |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener) |
java.util.Collection<CommandFactory> |
getCommandFactories() |
int |
getPort() |
java.util.Map<java.lang.String,java.lang.Object> |
getProperties() |
java.lang.Object |
getProperty(java.lang.String name) |
java.lang.String |
getServerInfo() |
int |
getTimeout() |
void |
removeCommandFactory(CommandFactory factory) |
void |
removeCommandFactory(java.lang.String name) |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener) |
SimpleServerConfig |
setPort(int port) |
void |
setProperty(java.lang.String name,
java.lang.Object value) |
SimpleServerConfig |
setServerInfo(java.lang.String serverInfo) |
SimpleServerConfig |
setTimeout(int timeout) |
public int getPort()
getPort
in interface SimpleServerConfig
public SimpleServerConfig setPort(int port)
setPort
in interface SimpleServerConfig
public int getTimeout()
getTimeout
in interface SimpleServerConfig
public SimpleServerConfig setTimeout(int timeout)
setTimeout
in interface SimpleServerConfig
public java.lang.String getServerInfo()
getServerInfo
in interface SimpleServerConfig
public SimpleServerConfig setServerInfo(java.lang.String serverInfo)
setServerInfo
in interface SimpleServerConfig
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
addPropertyChangeListener
in interface SimpleServerConfig
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
removePropertyChangeListener
in interface SimpleServerConfig
public java.util.Collection<CommandFactory> getCommandFactories()
getCommandFactories
in interface SimpleServerConfig
public SimpleServerConfig addCommandFactory(CommandFactory factory)
addCommandFactory
in interface SimpleServerConfig
public void removeCommandFactory(CommandFactory factory)
removeCommandFactory
in interface SimpleServerConfig
public void removeCommandFactory(java.lang.String name)
removeCommandFactory
in interface SimpleServerConfig
public java.lang.Object getProperty(java.lang.String name)
getProperty
in interface PropertiesSupport
public void setProperty(java.lang.String name, java.lang.Object value)
setProperty
in interface PropertiesSupport
public java.util.Map<java.lang.String,java.lang.Object> getProperties()
getProperties
in interface PropertiesSupport