public class DefaultIRCServerConfig extends Object implements IRCServerConfig
IRCServerConfig. Typically created via
IRCConfigBuilder.| Constructor and Description |
|---|
DefaultIRCServerConfig(IRCServerConfig serverConfig)
Creates a new
DefaultIRCServerConfig using data from the given
IRCServerConfig. |
DefaultIRCServerConfig(String host,
int[] ports,
String pass,
String nick,
String username,
String realname,
String encoding)
Creates a new
DefaultIRCServerConfig out of the individual field
values. |
| Modifier and Type | Method and Description |
|---|---|
String |
getEncoding() |
String |
getHost() |
String |
getNick() |
String |
getPassword() |
int |
getPortAt(int index) |
int[] |
getPorts() |
int |
getPortsCount() |
String |
getRealname() |
String |
getUsername() |
public DefaultIRCServerConfig(IRCServerConfig serverConfig)
DefaultIRCServerConfig using data from the given
IRCServerConfig.serverConfig - the IRCServerConfig to read field values frompublic DefaultIRCServerConfig(String host, int[] ports, String pass, String nick, String username, String realname, String encoding)
DefaultIRCServerConfig out of the individual field
values. For meanings of the parameters, see the the respective getter
methods in IRCServerConfig.host - the host name or IP addressports - the ports to try on hostpass - the passwordnick - the preferred nick nameusername - the usernamerealname - the real nameencoding - the encodingpublic String getEncoding()
getEncoding in interface IRCServerConfigIRCServerConfig.getEncoding()public String getHost()
getHost in interface IRCServerConfigIRCServerConfig.getHost()public String getNick()
getNick in interface IRCServerConfigIRCServerConfig.getNick()public String getPassword()
getPassword in interface IRCServerConfigIRCServerConfig.getPassword()public int getPortAt(int index)
getPortAt in interface IRCServerConfigindex - the intex in the internal ports arrayindex in the internal ports arrayIRCServerConfig.getPortAt(int)public int[] getPorts()
getPorts in interface IRCServerConfigports arrayIRCServerConfig.getPorts()public int getPortsCount()
getPortsCount in interface IRCServerConfigports arrayIRCServerConfig.getPortsCount()public String getRealname()
getRealname in interface IRCServerConfigIRCServerConfig.getRealname()public String getUsername()
getUsername in interface IRCServerConfigIRCServerConfig.getUsername()Copyright © 2006–2015. All rights reserved.