Skip to content

Commit 3fc5abf

Browse files
committed
Add and improve Javadoc comments
1 parent ac6f7ef commit 3fc5abf

File tree

1 file changed

+7
-1
lines changed
  • core/src/main/java/org/botblock/javabotblockapi/core

1 file changed

+7
-1
lines changed

core/src/main/java/org/botblock/javabotblockapi/core/Site.java

+7-1
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ private Site(String name){
392392

393393
/**
394394
* The name used by the BotBlock API to identify the site.
395-
* <br>The name usually is just the domain of the site without the http(s):// in front of it.
395+
* <br>The name usually represents the domain of the bot list without the https in front of it.
396396
*
397397
* @return The name of the site used for the BotBlock API.
398398
*/
@@ -418,6 +418,12 @@ public boolean supportsPost(){
418418
return !methods.isEmpty() && methods.contains(HttpMethod.POST);
419419
}
420420

421+
/**
422+
* Nested enum for the Http-methods supported by the bot lists.
423+
*
424+
* <p>Depending on what Http-Methods a bot list supports can its corresponding entry be used for the GET methods,
425+
* POST methods or both.
426+
*/
421427
public enum HttpMethod{
422428
/**
423429
* Bot list supports GET requests.

0 commit comments

Comments
 (0)