Add missing javadocs.
This commit is contained in:
parent
57c4031377
commit
657b6a70b3
|
@ -15,5 +15,8 @@ trait Handler {
|
|||
}
|
||||
|
||||
trait HandlerCompanion {
|
||||
/**
|
||||
* Http server context (path).
|
||||
*/
|
||||
val CONTEXT: String
|
||||
}
|
|
@ -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)
|
||||
|
|
Reference in a new issue