Class Site
- java.lang.Object
-
- org.botblock.javabotblockapi.core.Site
-
public class Site extends Object
This class contains all known sites that are supported by BotBlock's APIs for getting Bot info, getting list info or posting Bot info to a list.The static instances of this class allow an easy and quick usage in various methods of JavaBotBlockAPI without the need to remember any bot list name.
Supported HTTP Methods
The Javadoc comment of each instance lists what HTTP method is supported.
If a List supports GET can you use all methods from the GetListAction and GetBotAction classes of the Request module while Lists supporting POST also can be utilized within theBotBlockAPI
to posts Bot information to that list.Trying to use a List for an action it doesn't support (i.e. using a List for POST while it only supports GET) will result in exceptions being thrown.
Instances marked as Deprecated won't support either method type. If a replacement is mentioned using theDeprecatedSince's
replacement value should it be used in favour of the deprecated Instance.- Since:
- 6.3.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Site.HttpMethod
Nested enum for the Http-methods supported by the bot lists.
-
Field Summary
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
The name used by the BotBlock API to identify the site.boolean
supportsGet()
Whether the site supports GET requests towards itself or not.boolean
supportsPost()
Whether the site supports POST requests towards itself or not.
-
-
-
Field Detail
-
BLADEBOTLIST_XYZ
public static final Site BLADEBOTLIST_XYZ
- Since:
- 6.3.0
-
BLIST_XYZ
public static final Site BLIST_XYZ
-
BOATSPACE_XYZ
public static final Site BOATSPACE_XYZ
-
BOTLIST_ME
public static final Site BOTLIST_ME
- Since:
- 6.7.2
-
BOTS_DISCORDLABS_ORG
public static final Site BOTS_DISCORDLABS_ORG
-
BOTSFORDISCORD_COM
@Deprecated @DeprecatedSince(major=6, minor=7, patch=4, replacements="DISCORDS_COM") @PlannedRemoval(major=6, minor=7, patch=6) public static final Site BOTSFORDISCORD_COM
Deprecated.List was aquired bydiscords.com
-
BOTS_ONDISCORD_XYZ
public static final Site BOTS_ONDISCORD_XYZ
-
DBLISTA_PL
public static final Site DBLISTA_PL
-
DISCORD_BOATS
public static final Site DISCORD_BOATS
-
DISCORDBOTLIST_COM
public static final Site DISCORDBOTLIST_COM
-
DISCORDBOTS_CO
public static final Site DISCORDBOTS_CO
- Since:
- 5.2.3
-
DISCORD_BOTS_GG
public static final Site DISCORD_BOTS_GG
-
DISCORDEXTREMELIST_XYZ
public static final Site DISCORDEXTREMELIST_XYZ
-
DISCORDLISTOLOGY_COM
public static final Site DISCORDLISTOLOGY_COM
-
DISCORDLIST_SPACE
public static final Site DISCORDLIST_SPACE
-
DISCORDS_COM
public static final Site DISCORDS_COM
-
DISCORDSERVICES_NET
public static final Site DISCORDSERVICES_NET
-
DISFORGE_COM
public static final Site DISFORGE_COM
-
FATESLIST_XYZ
public static final Site FATESLIST_XYZ
-
INFINITYBOTLIST_XYZ
public static final Site INFINITYBOTLIST_XYZ
- Since:
- 6.6.2
-
LISTCORD_GG
public static final Site LISTCORD_GG
-
MOTIONDEVELOPMENT_TOP
public static final Site MOTIONDEVELOPMENT_TOP
- Since:
- 6.7.2
-
PARADISEBOTS_NET
public static final Site PARADISEBOTS_NET
- Since:
- 6.4.2
-
RADARBOTDIRECTORY_XYZ
public static final Site RADARBOTDIRECTORY_XYZ
- Since:
- 6.7.2
-
SPACE_BOT_LIST_XYZ
public static final Site SPACE_BOT_LIST_XYZ
-
STELLARBOTLIST_COM
public static final Site STELLARBOTLIST_COM
- Since:
- 6.7.2
-
TOPCORD_XYZ
public static final Site TOPCORD_XYZ
-
VCODES_XYZ
public static final Site VCODES_XYZ
- Since:
- 6.7.2
-
VOIDBOTS_NET
public static final Site VOIDBOTS_NET
-
WONDERBOTLIST_COM
public static final Site WONDERBOTLIST_COM
-
YABL_XYZ
public static final Site YABL_XYZ
-
-
Method Detail
-
getName
public String getName()
The name used by the BotBlock API to identify the site.
The name usually represents the domain of the bot list without the https in front of it.- Returns:
- The name of the site used for the BotBlock API.
-
supportsGet
public boolean supportsGet()
Whether the site supports GET requests towards itself or not.- Returns:
- True if the site supports GET request, otherwise false.
-
supportsPost
public boolean supportsPost()
Whether the site supports POST requests towards itself or not.- Returns:
- True if the site supports POST request, otherwise false.
-
-