public interface ServerInfo
Modifier and Type | Interface and Description |
---|---|
static interface |
ServerInfo.WithManagement
A server information provider with management features.
|
Modifier and Type | Method and Description |
---|---|
Optional<String> |
getAddress()
Gets the server-stated address of the server.
|
default CaseMapping |
getCaseMapping()
Gets the casemapping for the server.
|
default int |
getChannelLengthLimit()
Gets the maximum length of channel names.
|
default Map<Character,Integer> |
getChannelLimits()
Gets the channel join limits.
|
default Optional<ChannelMode> |
getChannelMode(char character)
Gets a channel mode by specified character.
|
List<ChannelMode> |
getChannelModes()
Gets the channel modes available.
|
List<Character> |
getChannelPrefixes()
Gets the list of accepted channel prefixes.
|
default Optional<ChannelUserMode> |
getChannelUserMode(char character)
Gets a channel user mode by specified character.
|
List<ChannelUserMode> |
getChannelUserModes()
Gets the list of accepted channel user modes, such as op.
|
Optional<ISupportParameter> |
getISupportParameter(String name)
Gets the named ISUPPORT parameter if present.
|
default <ISupport extends ISupportParameter> |
getISupportParameter(String name,
Class<ISupport> clazz)
Gets the named ISUPPORT parameter if present and if of the specified
type.
|
Map<String,ISupportParameter> |
getISupportParameters()
Gets the ISUPPORT parameters sent to the client.
|
Optional<List<String>> |
getMotd()
Gets the server's MOTD.
|
default Optional<String> |
getNetworkName()
Gets the name of this network.
|
default int |
getNickLengthLimit()
Gets the maximum length of nicknames.
|
List<UserMode> |
getUserModes()
Gets the user modes available.
|
Optional<String> |
getVersion()
Gets the version of the IRCd.
|
default boolean |
hasWhoXSupport()
Gets if the server supports WHOX.
|
boolean |
isValidChannel(String name)
Gets if a given string is a valid channel name according to the
available server information.
|
@Nonnull Optional<String> getAddress()
@Nonnull default CaseMapping getCaseMapping()
CaseMapping.RFC1459
default int getChannelLengthLimit()
@Nonnull default Map<Character,Integer> getChannelLimits()
@Nonnull default Optional<ChannelMode> getChannelMode(char character)
character
- character to match@Nonnull List<ChannelMode> getChannelModes()
@Nonnull List<Character> getChannelPrefixes()
@Nonnull default Optional<ChannelUserMode> getChannelUserMode(char character)
character
- character to match@Nonnull List<ChannelUserMode> getChannelUserModes()
@Nonnull Optional<ISupportParameter> getISupportParameter(@Nonnull String name)
name
- parameter name, case insensitive@Nonnull default <ISupport extends ISupportParameter> Optional<ISupport> getISupportParameter(@Nonnull String name, @Nonnull Class<ISupport> clazz)
ISupport
- parameter typename
- parameter name, case insensitiveclazz
- parameter type@Nonnull Map<String,ISupportParameter> getISupportParameters()
@Nonnull default Optional<String> getNetworkName()
default int getNickLengthLimit()
@Nonnull List<UserMode> getUserModes()
@Nonnull Optional<String> getVersion()
default boolean hasWhoXSupport()
Copyright © 2013–2019 Kitteh. All rights reserved.