public static interface Client.WithManagement extends Client
Client.Builder, Client.Commands, Client.WithManagement
Modifier and Type | Method and Description |
---|---|
void |
beginMessageSendingImmediate(Consumer<String> consumer)
Starts the sending of queued 'immediately' messages.
|
ActorTracker |
getActorTracker()
Gets the actor tracker.
|
InetSocketAddress |
getBindAddress()
Gets the bind address
|
CapabilityManager.WithManagement |
getCapabilityManager()
Gets the capability manager.
|
Listener<String> |
getInputListener()
Gets the currently set input listener.
|
Set<String> |
getIntendedChannels()
Gets the channels the client intends to join.
|
Listener<String> |
getOutputListener()
Gets the currently set output listener.
|
String |
getRequestedNick()
Gets the nickname the client has last requested.
|
Path |
getSecureKey()
Gets the TLS/SSL key.
|
Path |
getSecureKeyCertChain()
Gets the TLS/SSL key certificate chain.
|
String |
getSecureKeyPassword()
Gets the TLS/SSL key password.
|
TrustManagerFactory |
getSecureTrustManagerFactory()
Gets the trust manager factory.
|
InetSocketAddress |
getServerAddress()
Gets the server address
|
ServerInfo.WithManagement |
getServerInfo()
Gets information about the server to which the client is currently
connected.
|
void |
initialize(String name,
InetSocketAddress serverAddress,
String serverPassword,
InetSocketAddress bindAddress,
String nick,
String userString,
String realName,
ActorTracker actorTracker,
AuthManager authManager,
CapabilityManager.WithManagement capabilityManager,
EventManager eventManager,
MessageTagManager messageTagManager,
ISupportManager iSupportManager,
DefaultMessageMap defaultMessageMap,
Function<Client.WithManagement,? extends MessageSendingQueue> messageSendingQueue,
Function<Client.WithManagement,? extends ServerInfo.WithManagement> serverInfo,
Consumer<Exception> exceptionListener,
Consumer<String> inputListener,
Consumer<String> outputListener,
boolean secure,
Path secureKeyCertChain,
Path secureKey,
String secureKeyPassword,
TrustManagerFactory trustManagerFactory,
StsStorageManager stsStorageManager,
String webircHost,
InetAddress webircIP,
String webircPassword,
String webircUser)
Initialize with pre-connection information.
|
boolean |
isSecureConnection()
Gets if the client is configured for a secure connection.
|
void |
pauseMessageSending()
Pauses message sending, waiting for next successful connection.
|
void |
ping()
Sends a PING.
|
void |
processLine(String line)
Processes a line from the IRC server.
|
void |
sendNickChange(String newNick)
Sends a nick change request.
|
void |
setCurrentNick(String nick)
Sets the current nickname the client knows it has.
|
void |
setServerAddress(InetSocketAddress address)
Sets the server address.
|
void |
setUserModes(ModeStatusList<UserMode> userModes)
Sets the client's user modes.
|
void |
startSending()
Starts sending queued messages.
|
void |
updateUserModes(ModeStatusList<UserMode> userModes)
Updates the client's user modes.
|
addChannel, addKeyProtectedChannel, addKeyProtectedChannel, builder, commands, connect, getAuthManager, getChannel, getChannels, getChannels, getDefaultMessageMap, getEventManager, getExceptionListener, getIntendedNick, getISupportManager, getMessageCutter, getMessageSendingQueueSupplier, getMessageTagManager, getName, getNick, getStsMachine, getUser, getUserModes, isUser, knockChannel, reconnect, reconnect, removeChannel, removeChannel, sendCtcpMessage, sendCtcpMessage, sendCtcpReply, sendCtcpReply, sendMessage, sendMessage, sendMultiLineMessage, sendMultiLineMessage, sendMultiLineMessage, sendMultiLineMessage, sendMultiLineNotice, sendMultiLineNotice, sendMultiLineNotice, sendMultiLineNotice, sendNotice, sendNotice, sendRawLine, sendRawLineAvoidingDuplication, sendRawLineImmediately, setDefaultMessageMap, setExceptionListener, setInputListener, setMessageCutter, setMessageSendingQueueSupplier, setNick, setOutputListener, shutdown, shutdown
void beginMessageSendingImmediate(@Nonnull Consumer<String> consumer)
consumer
- consumer with which to handle this queue@Nonnull ActorTracker getActorTracker()
@Nonnull InetSocketAddress getBindAddress()
@Nonnull CapabilityManager.WithManagement getCapabilityManager()
Client
getCapabilityManager
in interface Client
@Nonnull Listener<String> getInputListener()
@Nonnull Set<String> getIntendedChannels()
@Nonnull Listener<String> getOutputListener()
@Nonnull String getRequestedNick()
@Nullable Path getSecureKeyCertChain()
@Nullable String getSecureKeyPassword()
@Nullable TrustManagerFactory getSecureTrustManagerFactory()
@Nonnull InetSocketAddress getServerAddress()
@Nonnull ServerInfo.WithManagement getServerInfo()
Client
ClientNegotiationCompleteEvent
getServerInfo
in interface Client
void pauseMessageSending()
void ping()
void processLine(@Nonnull String line)
line
- line to processvoid sendNickChange(@Nonnull String newNick)
newNick
- new nicknamevoid setCurrentNick(@Nonnull String nick)
nick
- nicknamevoid setServerAddress(@Nonnull InetSocketAddress address)
address
- server addressvoid initialize(@Nonnull String name, @Nonnull InetSocketAddress serverAddress, @Nullable String serverPassword, @Nullable InetSocketAddress bindAddress, @Nonnull String nick, @Nonnull String userString, @Nonnull String realName, @Nonnull ActorTracker actorTracker, @Nonnull AuthManager authManager, @Nonnull CapabilityManager.WithManagement capabilityManager, @Nonnull EventManager eventManager, @Nonnull MessageTagManager messageTagManager, @Nonnull ISupportManager iSupportManager, @Nullable DefaultMessageMap defaultMessageMap, @Nonnull Function<Client.WithManagement,? extends MessageSendingQueue> messageSendingQueue, @Nonnull Function<Client.WithManagement,? extends ServerInfo.WithManagement> serverInfo, @Nullable Consumer<Exception> exceptionListener, @Nullable Consumer<String> inputListener, @Nullable Consumer<String> outputListener, boolean secure, @Nullable Path secureKeyCertChain, @Nullable Path secureKey, @Nullable String secureKeyPassword, @Nullable TrustManagerFactory trustManagerFactory, @Nullable StsStorageManager stsStorageManager, @Nullable String webircHost, @Nullable InetAddress webircIP, @Nullable String webircPassword, @Nullable String webircUser)
name
- nameserverAddress
- serverAddressserverPassword
- serverPasswordbindAddress
- bindAddressnick
- nickuserString
- userStringrealName
- realNameactorTracker
- actorTrackerauthManager
- authManagercapabilityManager
- capabilityManagereventManager
- eventManagermessageTagManager
- messageTagManageriSupportManager
- iSupportManagerdefaultMessageMap
- defaultMessageMapmessageSendingQueue
- messageSendingQueueserverInfo
- serverInfoexceptionListener
- exceptionListenerinputListener
- inputListeneroutputListener
- outputListenersecure
- securesecureKeyCertChain
- secureKeyCertChainsecureKey
- secureKeysecureKeyPassword
- secureKeyPasswordtrustManagerFactory
- trustManagerFactorystsStorageManager
- stsStorageManagerwebircHost
- webircHostwebircIP
- webircIPwebircPassword
- webircPasswordwebircUser
- webircUservoid setUserModes(@Nonnull ModeStatusList<UserMode> userModes)
userModes
- user modes to setvoid startSending()
void updateUserModes(@Nonnull ModeStatusList<UserMode> userModes)
userModes
- mode changesboolean isSecureConnection()
Copyright © 2013–2019 Kitteh. All rights reserved.