@@ -164,8 +164,13 @@ public class Site{
164164
165165 /**
166166 * <a href="https://hydrogenbots.club" target="_blank">hydrogenbots.club</a>
167+ *
168+ * @deprecated Domain redirects to a weird foreign store.
167169 */
168- public static final Site HYDROGENBOTS_CLUB = new Site ("hydrogenbots.club" , HttpMethod .GET , HttpMethod .POST );
170+ @ Deprecated
171+ @ DeprecatedSince (major = 6 , minor = 3 , patch = 1 )
172+ @ PlannedRemoval (major = 6 , minor = 3 , patch = 3 )
173+ public static final Site HYDROGENBOTS_CLUB = new Site ("hydrogenbots.club" );
169174
170175 /**
171176 * <a href="https://infinitybotlist.com" target="_blank">infinitybotlist.com</a>
@@ -215,14 +220,30 @@ private Site(String name){
215220 this .methods = new ArrayList <>();
216221 }
217222
223+ /**
224+ * The name used by the BotBlock API to identify the site.
225+ * <br>The name usually is just the domain of the site without the http(s):// in front of it.
226+ *
227+ * @return The name of the site used for the BotBlock API.
228+ */
218229 public String getName (){
219230 return name ;
220231 }
221232
233+ /**
234+ * Whether the site supports GET requests towards itself or not.
235+ *
236+ * @return True if the site supports GET request, otherwise false.
237+ */
222238 public boolean supportsGet (){
223239 return !methods .isEmpty () && methods .contains (HttpMethod .GET );
224240 }
225241
242+ /**
243+ * Whether the site supports POST requests towards itself or not.
244+ *
245+ * @return True if the site supports POST request, otherwise false.
246+ */
226247 public boolean supportsPost (){
227248 return !methods .isEmpty () && methods .contains (HttpMethod .POST );
228249 }
0 commit comments