@@ -164,8 +164,13 @@ public class Site{
164
164
165
165
/**
166
166
* <a href="https://hydrogenbots.club" target="_blank">hydrogenbots.club</a>
167
+ *
168
+ * @deprecated Domain redirects to a weird foreign store.
167
169
*/
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" );
169
174
170
175
/**
171
176
* <a href="https://infinitybotlist.com" target="_blank">infinitybotlist.com</a>
@@ -215,14 +220,30 @@ private Site(String name){
215
220
this .methods = new ArrayList <>();
216
221
}
217
222
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
+ */
218
229
public String getName (){
219
230
return name ;
220
231
}
221
232
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
+ */
222
238
public boolean supportsGet (){
223
239
return !methods .isEmpty () && methods .contains (HttpMethod .GET );
224
240
}
225
241
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
+ */
226
247
public boolean supportsPost (){
227
248
return !methods .isEmpty () && methods .contains (HttpMethod .POST );
228
249
}
0 commit comments