public static interface Client.Builder
Client
s. Create a builder with Client.builder()
.
The default built client connects securely via port 6697. See Client.Builder.Server.secure(boolean)
to disable, or the other secure-prefixed methods in
this builder to fully utilize the feature. Note that the default
TrustManagerFactory relies on your local trust store. The default Oracle
trust store does not accept self-signed certificates.
Modifier and Type | Interface and Description |
---|---|
static interface |
Client.Builder.Bind
Bind builder methods.
|
static interface |
Client.Builder.Listeners
Listener builder methods.
|
static interface |
Client.Builder.Management
Management-related builder methods.
|
static interface |
Client.Builder.Proxy
Information about a proxy host for the connection.
|
static interface |
Client.Builder.Server
Server builder methods.
|
static interface |
Client.Builder.WebIrc
WebIRC builder.
|
Modifier and Type | Method and Description |
---|---|
@NonNull Client.Builder.Bind |
bind()
Returns bind builder methods.
|
@NonNull Client |
build()
Clientmaker, clientmaker, make me a client!
|
@NonNull Client |
buildAndConnect()
Clientmaker, clientmaker, make me a client, build me the client,
begin connection!
|
@NonNull Client.Builder.Listeners |
listeners()
Returns listener builder methods.
|
@NonNull Client.Builder.Management |
management()
Returns the management-related builder methods.
|
@NonNull Client.Builder |
name(@NonNull String name)
Names the client, for internal labeling.
|
@NonNull Client.Builder |
nick(@NonNull String nick)
Sets the client's nick.
|
@NonNull Client.Builder.Proxy |
proxy()
Returns proxy builder methods.
|
@NonNull Client.Builder |
realName(@NonNull String name)
Sets the realname the client uses.
|
@NonNull Client.Builder.Server |
server()
Returns server builder methods.
|
@NonNull Client.Builder |
user(@NonNull String user)
Sets the user the client connects as.
|
Client.Builder.WebIrc.Password |
webIrc()
Returns webirc builder methods.
|
@NonNull Client.Builder name(@NonNull String name)
name
- a name to label the client internallyIllegalArgumentException
- if name is null@NonNull Client.Builder nick(@NonNull String nick)
By default, the nick is Kitteh.
nick
- nick for the client to useIllegalArgumentException
- if nick is null@NonNull Client.Builder user(@NonNull String user)
By default, the user is Kitteh.
user
- user to connect asIllegalArgumentException
- for null user@NonNull Client.Builder realName(@NonNull String name)
By default, the realname is Kitteh.
name
- realname to useIllegalArgumentException
- for null realname@NonNull Client.Builder.Bind bind()
@NonNull Client.Builder.Server server()
@NonNull Client.Builder.Listeners listeners()
@NonNull Client.Builder.Proxy proxy()
Client.Builder.WebIrc.Password webIrc()
@NonNull Client.Builder.Management management()
@NonNull Client build()
@NonNull Client buildAndConnect()
Copyright © 2013–2021 Kitteh. All rights reserved.