Add missing javadocs.

This commit is contained in:
Dmitry Voronin 2024-09-23 18:19:01 +03:00
parent 57c4031377
commit 657b6a70b3
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k
2 changed files with 8 additions and 0 deletions

View file

@ -15,5 +15,8 @@ trait Handler {
}
trait HandlerCompanion {
/**
* Http server context (path).
*/
val CONTEXT: String
}

View file

@ -4,6 +4,11 @@ package model.lib
import java.net.{MalformedURLException, URL}
object HttpUtil {
/**
* Check if string is a correct url.
* @param url String to check.
* @return True if url is valid.
*/
def isUrl(url: String): Boolean = {
try {
new URL(url)