public static interface Client.WithManagement extends Client
Client.Builder, Client.Commands, Client.WithManagement
Modifier and Type | Method and Description |
---|---|
void |
beginMessageSendingImmediate(@NonNull Consumer<String> consumer)
Starts the sending of queued 'immediately' messages.
|
@NonNull ActorTracker |
getActorTracker()
Gets the actor tracker.
|
@NonNull InetSocketAddress |
getBindAddress()
Gets the bind address
|
CapabilityManager.WithManagement |
getCapabilityManager()
Gets the capability manager.
|
@NonNull Listener<String> |
getInputListener()
Gets the currently set input listener.
|
@NonNull Set<String> |
getIntendedChannels()
Gets the channels the client intends to join.
|
@NonNull NetworkHandler |
getNetworkHandler()
Gets the network handler.
|
@NonNull Listener<String> |
getOutputListener()
Gets the currently set output listener.
|
@NonNull Optional<HostWithPort> |
getProxyAddress()
Gets the proxy address
|
@NonNull Optional<ProxyType> |
getProxyType()
Gets if the client is configured to use a proxy.
|
@NonNull String |
getRequestedNick()
Gets the nickname the client has last requested.
|
@Nullable Path |
getSecureKey()
Gets the TLS key.
|
@Nullable Path |
getSecureKeyCertChain()
Gets the TLS key certificate chain.
|
@Nullable String |
getSecureKeyPassword()
Gets the TLS key password.
|
@Nullable TrustManagerFactory |
getSecureTrustManagerFactory()
Gets the trust manager factory.
|
@NonNull HostWithPort |
getServerAddress()
Gets the server address
|
ServerInfo.WithManagement |
getServerInfo()
Gets information about the server to which the client is currently
connected.
|
void |
initialize(@NonNull String name,
@NonNull NetworkHandler networkHandler,
@NonNull HostWithPort serverHostWithPort,
@Nullable String serverPassword,
@Nullable InetSocketAddress bindAddress,
@Nullable HostWithPort proxyAddress,
@Nullable ProxyType proxyType,
@NonNull String nick,
@NonNull String userString,
@NonNull String realName,
@NonNull ActorTracker actorTracker,
@NonNull AuthManager authManager,
CapabilityManager.WithManagement capabilityManager,
@NonNull EventManager eventManager,
@NonNull List<EventListenerSupplier> listenerSuppliers,
@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)
Initialize with pre-connection information.
|
boolean |
isConnectionAlive()
Gets if the connection is alive.
|
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(@NonNull String line)
Processes a line from the IRC server.
|
void |
sendNickChange(@NonNull String newNick)
Sends a nick change request.
|
void |
setCurrentNick(@NonNull String nick)
Sets the current nickname the client knows it has.
|
void |
setNetworkHandler(@NonNull NetworkHandler networkHandler)
Sets the network handler, for the next time a connection is made.
|
void |
setServerAddress(@NonNull HostWithPort address)
Sets the server address.
|
void |
setUserModes(@NonNull ModeStatusList<UserMode> userModes)
Sets the client's user modes.
|
void |
startSending()
Starts sending queued messages.
|
void |
updateUserModes(@NonNull ModeStatusList<UserMode> userModes)
Updates the client's user modes.
|
addChannel, addKeyProtectedChannel, addKeyProtectedChannel, builder, commands, connect, getAuthManager, getChannel, getChannels, getChannels, getClient, 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()
boolean isConnectionAlive()
@NonNull InetSocketAddress getBindAddress()
CapabilityManager.WithManagement getCapabilityManager()
Client
getCapabilityManager
in interface Client
@NonNull Listener<String> getInputListener()
@NonNull Set<String> getIntendedChannels()
@NonNull NetworkHandler getNetworkHandler()
@NonNull Listener<String> getOutputListener()
@NonNull Optional<ProxyType> getProxyType()
true
if configured for proxy@NonNull Optional<HostWithPort> getProxyAddress()
@NonNull String getRequestedNick()
@Nullable Path getSecureKey()
@Nullable Path getSecureKeyCertChain()
@Nullable String getSecureKeyPassword()
@Nullable TrustManagerFactory getSecureTrustManagerFactory()
@NonNull HostWithPort getServerAddress()
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 setNetworkHandler(@NonNull NetworkHandler networkHandler)
networkHandler
- new network handlervoid setServerAddress(@NonNull HostWithPort address)
address
- server addressvoid initialize(@NonNull String name, @NonNull NetworkHandler networkHandler, @NonNull HostWithPort serverHostWithPort, @Nullable String serverPassword, @Nullable InetSocketAddress bindAddress, @Nullable HostWithPort proxyAddress, @Nullable ProxyType proxyType, @NonNull String nick, @NonNull String userString, @NonNull String realName, @NonNull ActorTracker actorTracker, @NonNull AuthManager authManager, CapabilityManager.WithManagement capabilityManager, @NonNull EventManager eventManager, @NonNull List<EventListenerSupplier> listenerSuppliers, @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
- namenetworkHandler
- networkHandlerserverHostWithPort
- serverHostWithPortserverPassword
- serverPasswordbindAddress
- bindAddressproxyAddress
- proxyAddressproxyType
- proxyTypenick
- nickuserString
- userStringrealName
- realNameactorTracker
- actorTrackerauthManager
- authManagercapabilityManager
- capabilityManagereventManager
- eventManagerlistenerSuppliers
- listenerSuppliersmessageTagManager
- 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–2021 Kitteh. All rights reserved.