Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Add and improve Javadoc comments
  • Loading branch information
Andre601 committed Jul 21, 2021
commit 3fc5abfe42c9a7f4bce9193d31a4513d439fd1ea
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ private Site(String name){

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

/**
* Nested enum for the Http-methods supported by the bot lists.
*
* <p>Depending on what Http-Methods a bot list supports can its corresponding entry be used for the GET methods,
* POST methods or both.
*/
public enum HttpMethod{
/**
* Bot list supports GET requests.
Expand Down