public class DefaultIRCRuntimeConfig extends Object implements IRCRuntimeConfig
IRCRuntimeConfig. Typically created via
IRCConfigBuilder.| Constructor and Description |
|---|
DefaultIRCRuntimeConfig(int timeout,
boolean autoPong,
boolean stripColorsEnabled,
IRCSSLSupport sslSupport,
Proxy proxy,
IRCTrafficLogger trafficLogger,
IRCExceptionHandler exceptionHandler)
Creates a new
DefaultIRCRuntimeConfig out of the individual field
values. |
DefaultIRCRuntimeConfig(IRCRuntimeConfig runtimeConfig)
Creates a new
DefaultIRCRuntimeConfig using data from the given
IRCRuntimeConfig. |
| Modifier and Type | Method and Description |
|---|---|
IRCExceptionHandler |
getExceptionHandler() |
Proxy |
getProxy() |
IRCSSLSupport |
getSSLSupport() |
int |
getTimeout() |
IRCTrafficLogger |
getTrafficLogger() |
boolean |
isAutoPong() |
boolean |
isStripColorsEnabled() |
public DefaultIRCRuntimeConfig(int timeout,
boolean autoPong,
boolean stripColorsEnabled,
IRCSSLSupport sslSupport,
Proxy proxy,
IRCTrafficLogger trafficLogger,
IRCExceptionHandler exceptionHandler)
DefaultIRCRuntimeConfig out of the individual field
values. For meanings of the parameters, see the the respective getter
methods in IRCRuntimeConfig.timeout - the timeoutautoPong - PONG will be sent authomatically if truestripColorsEnabled - if true color codes will be strippedsslSupport - the IRCSSLSupportproxy - the ProxytrafficLogger - the IRCTrafficLoggerexceptionHandler - the IRCExceptionHandlerpublic DefaultIRCRuntimeConfig(IRCRuntimeConfig runtimeConfig)
DefaultIRCRuntimeConfig using data from the given
IRCRuntimeConfig.runtimeConfig - the IRCRuntimeConfig to read field values frompublic IRCExceptionHandler getExceptionHandler()
getExceptionHandler in interface IRCRuntimeConfigIRCExceptionHandlerIRCRuntimeConfig.getExceptionHandler()public 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()Copyright © 2006–2015. All rights reserved.