Add missing javadocs.
This commit is contained in:
parent
57c4031377
commit
657b6a70b3
|
@ -15,5 +15,8 @@ trait Handler {
|
||||||
}
|
}
|
||||||
|
|
||||||
trait HandlerCompanion {
|
trait HandlerCompanion {
|
||||||
|
/**
|
||||||
|
* Http server context (path).
|
||||||
|
*/
|
||||||
val CONTEXT: String
|
val CONTEXT: String
|
||||||
}
|
}
|
|
@ -4,6 +4,11 @@ package model.lib
|
||||||
import java.net.{MalformedURLException, URL}
|
import java.net.{MalformedURLException, URL}
|
||||||
|
|
||||||
object HttpUtil {
|
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 = {
|
def isUrl(url: String): Boolean = {
|
||||||
try {
|
try {
|
||||||
new URL(url)
|
new URL(url)
|
||||||
|
|
Reference in a new issue