case class URL(protocol: Protocol = Protocol.Http, host: String = "localhost", port: Int = 80, path: Path = Path.empty, parameters: Parameters = Parameters.empty, fragment: Option[String] = None) extends Product with Serializable
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- URL
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new URL(protocol: Protocol = Protocol.Http, host: String = "localhost", port: Int = 80, path: Path = Path.empty, parameters: Parameters = Parameters.empty, fragment: Option[String] = None)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def appendParam(key: String, value: String): URL
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
asPath(includePort: Boolean = false): String
Encodes this URL as a complete path.
Encodes this URL as a complete path. This is primarily useful for caching to a file while avoiding duplicates with the same file name. For example:
http://www.example.com/some/path/file.txt
Would be encoded to:
/www.example.com/some/path/file.txt
- includePort
whether the port should be included as a part of the path. Defaults to false.
- lazy val base: String
- def clearParams(): URL
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- lazy val decoded: URLParts
- lazy val encoded: URLParts
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(obj: Any): Boolean
- Definition Classes
- URL → Equals → AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- val fragment: Option[String]
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val host: String
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def param(key: String): Option[String]
- def paramList(key: String): List[String]
- val parameters: Parameters
- val path: Path
- val port: Int
- val protocol: Protocol
- def removeParam(key: String): URL
- def replaceBase(base: String): URL
- def replaceParam(key: String, values: List[String]): URL
- def replacePathAndParams(pathAndParams: String): URL
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- URL → AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- def withFragment(fragment: String): URL
- def withParam(key: String, value: String, append: Boolean = true): URL
- def withParams(params: Map[String, String], append: Boolean = false): URL
- def withPart(part: String): URL
- def withPath(path: Path): URL
- def withPath(path: String, absolutize: Boolean = true): URL
- def withoutFragment(): URL