public class ServerInformation
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ServerInformation.ModeType
Type A: Modes that must add or remove an address to or from a list.
|
Constructor and Description |
---|
ServerInformation() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCaseMapping()
Get the case mapping used by this server.
Will be one of the following: ascii, rfc1459, or strict-rfc1459 |
int |
getChannelJoinLimitForPrefix(java.lang.String prefix)
Used to indicate the maximum amount of channels that a client may join
of a given prefix.
|
java.lang.String[] |
getChannelPrefixes()
Get the channel prefixes
|
java.lang.String |
getIrcdString()
Get the IRCD String (this will usually be the name of the ircd.
|
int |
getMaxAwayLength()
Get the maximum away message length
|
int |
getMaxChannelNameLength()
Get the max channel Name Lengt
|
int |
getMaxHostLength()
Get the maximum Hostname length
|
int |
getMaxKeyLength()
Get the max channel key length
|
int |
getMaxKickLength()
Get max kick message length
|
int |
getMaxModesPerCommnad()
Get the maximum number of modes per command
|
int |
getMaxNickLength()
Get the max nick length.
|
int |
getMaxSilenceListSize()
Get the maximum silence list length
|
int |
getMaxTopicLength()
Get the max topic length
|
int |
getMaxUserLength()
Get the max username length
|
java.lang.String[] |
getModes(ServerInformation.ModeType type)
Get all modes of the given
ServerInformation.ModeType . |
java.util.List<java.lang.String> |
getNickPrefixes()
Get the nickPrefixes.
|
java.util.Map<java.lang.String,java.lang.String> |
getNickPrefixMap()
Get The nickprefixes supported
|
java.lang.String |
getServerName()
Get the server name
|
java.lang.String[] |
getStatusPrefixes()
The status prefixes supported
|
java.lang.String[] |
getSupportedChannelModes()
Retrieve all supported channel modes.
|
ServerInformation.ModeType |
getTypeForMode(java.lang.String mode)
Get the
ServerInformation.ModeType for the given mode. |
void |
parseServerInfo(java.lang.String rawData) |
boolean |
supportsBanExceptions()
Get whether or not the server supports ban exceptions
|
boolean |
supportsCAPAB()
Get whether or not the server supports CAPAB
|
boolean |
supportsCNotice()
Get whether or not CNOTICE are supported by the server.
|
boolean |
supportsCPrivMsg()
Get whether or not the server supports CPRIVMSG
|
boolean |
supportsEtrace()
Get whether or not ETRACE is supported.
|
boolean |
supportsInviteExceptions()
Get whether or not Invite Exceptions are supported.
|
boolean |
supportsKnock()
Get whether or not KNOCK is supported.
|
boolean |
supportsNickPrefixes()
Get Whether or not nick prefixes are supported.
|
boolean |
supportsSafeList()
Get whether or not SAFELIST is supported.
|
boolean |
supportsSilenceList()
Whether or not SILENCE list is supported
|
boolean |
supportsStatusNotices()
Get whether or not status notices are supported.
|
boolean |
supportsUserIp()
Get Whether or not USERIP is supported.
|
boolean |
supportsWallChops()
Get if WALLCHOPS is supported.
|
boolean |
supportsWallVoices()
Get whether or not WALLVOICES is supported.
|
boolean |
supportsWhox()
Get whether or not WHOX is supported,
|
public void parseServerInfo(java.lang.String rawData)
public java.lang.String[] getModes(ServerInformation.ModeType type)
ServerInformation.ModeType
.type
- - the mode typeServerInformation.ModeType
public ServerInformation.ModeType getTypeForMode(java.lang.String mode)
ServerInformation.ModeType
for the given mode.mode
- the modeServerInformation.ModeType
.ServerInformation.ModeType
public java.lang.String getServerName()
public java.lang.String getIrcdString()
public java.lang.String getCaseMapping()
public int getChannelJoinLimitForPrefix(java.lang.String prefix)
prefix
- the channel prefixpublic java.lang.String[] getSupportedChannelModes()
public boolean supportsCAPAB()
public boolean supportsCNotice()
public boolean supportsCPrivMsg()
public boolean supportsWhox()
public boolean supportsWallChops()
public boolean supportsWallVoices()
public boolean supportsBanExceptions()
public boolean supportsInviteExceptions()
public boolean supportsKnock()
public boolean supportsUserIp()
public boolean supportsEtrace()
public boolean supportsSafeList()
public boolean supportsSilenceList()
public boolean supportsNickPrefixes()
public boolean supportsStatusNotices()
public int getMaxModesPerCommnad()
public int getMaxAwayLength()
public int getMaxKickLength()
public int getMaxNickLength()
public int getMaxSilenceListSize()
public int getMaxTopicLength()
public int getMaxChannelNameLength()
public int getMaxKeyLength()
public int getMaxHostLength()
public int getMaxUserLength()
public java.util.List<java.lang.String> getNickPrefixes()
public java.util.Map<java.lang.String,java.lang.String> getNickPrefixMap()
public java.lang.String[] getStatusPrefixes()
public java.lang.String[] getChannelPrefixes()