public class DefaultIRCConfig extends DefaultIRCServerConfig implements IRCConfig
IRCConfig. Typically created via
IRCConfigBuilder.| Constructor and Description |
|---|
DefaultIRCConfig(IRCConfig config)
Creates a new
DefaultIRCConfig using data from the given
IRCConfig. |
DefaultIRCConfig(IRCServerConfig serverConfig,
IRCRuntimeConfig runtimeConfig)
Creates a new
DefaultIRCConfig using data from the given
IRCConfig. |
DefaultIRCConfig(String host,
int[] ports,
String pass,
String nick,
String username,
String realname,
String encoding,
int timeout,
boolean autoPong,
boolean stripColorsEnabled,
IRCSSLSupport sslSupport,
Proxy proxy,
IRCTrafficLogger trafficLogger,
IRCExceptionHandler exceptionHandler)
Creates a new
DefaultIRCConfig out of the individual field
values. |
| Modifier and Type | Method and Description |
|---|---|
IRCExceptionHandler |
getExceptionHandler() |
Proxy |
getProxy() |
IRCSSLSupport |
getSSLSupport() |
int |
getTimeout() |
IRCTrafficLogger |
getTrafficLogger() |
boolean |
isAutoPong() |
boolean |
isStripColorsEnabled() |
getEncoding, getHost, getNick, getPassword, getPortAt, getPorts, getPortsCount, getRealname, getUsernameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetEncoding, getHost, getNick, getPassword, getPortAt, getPorts, getPortsCount, getRealname, getUsernamepublic DefaultIRCConfig(IRCConfig config)
DefaultIRCConfig using data from the given
IRCConfig.config - the IRCConfig to read field values frompublic DefaultIRCConfig(IRCServerConfig serverConfig, IRCRuntimeConfig runtimeConfig)
DefaultIRCConfig using data from the given
IRCConfig.serverConfig - the IRCServerConfig to read field values fromruntimeConfig - the IRCRuntimeConfig to read field values frompublic DefaultIRCConfig(String host, int[] ports, String pass, String nick, String username, String realname, String encoding, int timeout, boolean autoPong, boolean stripColorsEnabled, IRCSSLSupport sslSupport, Proxy proxy, IRCTrafficLogger trafficLogger, IRCExceptionHandler exceptionHandler)
DefaultIRCConfig out of the individual field
values. For meanings of the parameters, see the the respective getter
methods in IRCConfig.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 encodingtimeout - the timeoutautoPong - PONG will be sent authomatically if truestripColorsEnabled - if true color codes will be strippedsslSupport - the IRCSSLSupportproxy - the ProxytrafficLogger - the IRCTrafficLoggerexceptionHandler - the IRCExceptionHandlerpublic Proxy getProxy()
getProxy in interface IRCRuntimeConfigProxy to use when connectingIRCRuntimeConfig.getProxy()public IRCSSLSupport getSSLSupport()
getSSLSupport in interface IRCRuntimeConfigIRCSSLSupport if the IRCConnection should use
SSL, otherwise nullIRCRuntimeConfig.getSSLSupport()public int getTimeout()
getTimeout in interface IRCRuntimeConfigIRCRuntimeConfig.getTimeout()public IRCTrafficLogger getTrafficLogger()
getTrafficLogger in interface IRCRuntimeConfigIRCTrafficLogger that should be notified about
incoming and outgoing messages or null if no traffic
logger should be attached to the IRCConnection.IRCRuntimeConfig.getTrafficLogger()public boolean isAutoPong()
isAutoPong in interface IRCRuntimeConfigtrue if automatic PING? PONG! is enabled or false
otherwise.IRCRuntimeConfig.isAutoPong()public boolean isStripColorsEnabled()
isStripColorsEnabled in interface IRCRuntimeConfigtrue if mIRC colorcodes should be removed from incoming
IRC messagesIRCRuntimeConfig.isStripColorsEnabled()public IRCExceptionHandler getExceptionHandler()
getExceptionHandler in interface IRCRuntimeConfigIRCExceptionHandlerIRCRuntimeConfig.getExceptionHandler()Copyright © 2006–2015. All rights reserved.