|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjerklib.ServerInformation
public class ServerInformation
This class allows you to probe various pieces of information about the server. For more information see this and this. These documents will explain all the pieces of information provided through this class.
Nested Class Summary | |
---|---|
static class |
ServerInformation.ModeType
Type A: Modes that must add or remove an address to or from a list. |
Constructor Summary | |
---|---|
ServerInformation()
|
Method Summary | |
---|---|
String |
getCaseMapping()
Get the case mapping used by this server. Will be one of the following: ascii, rfc1459, or strict-rfc1459 |
int |
getChannelJoinLimitForPrefix(String prefix)
Used to indicate the maximum amount of channels that a client may join of a given prefix. |
String[] |
getChannelPrefixes()
Get the channel prefixes |
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 |
String[] |
getModes(ServerInformation.ModeType type)
Get all modes of the given ServerInformation.ModeType . |
List<String> |
getNickPrefixes()
Get the nickPrefixes. |
Map<String,String> |
getNickPrefixMap()
Get The nickprefixes supported |
String |
getServerName()
Get the server name |
String[] |
getStatusPrefixes()
The status prefixes supported |
String[] |
getSupportedChannelModes()
Retrieve all supported channel modes. |
ServerInformation.ModeType |
getTypeForMode(String mode)
Get the ServerInformation.ModeType for the given mode. |
void |
parseServerInfo(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, |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServerInformation()
Method Detail |
---|
public void parseServerInfo(String rawData)
public String[] getModes(ServerInformation.ModeType type)
ServerInformation.ModeType
.
type
- - the mode type
ServerInformation.ModeType
public ServerInformation.ModeType getTypeForMode(String mode)
ServerInformation.ModeType
for the given mode.
mode
- the mode
ServerInformation.ModeType
.ServerInformation.ModeType
public String getServerName()
public String getIrcdString()
public String getCaseMapping()
public int getChannelJoinLimitForPrefix(String prefix)
prefix
- the channel prefix
public 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 List<String> getNickPrefixes()
public Map<String,String> getNickPrefixMap()
public String[] getStatusPrefixes()
public String[] getChannelPrefixes()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |