Class/Object

io.lemonlabs.uri

Urn

Related Docs: object Urn | package uri

Permalink

final case class Urn(path: UrnPath)(implicit config: UriConfig = UriConfig.default) extends Uri with Product with Serializable

Represents a URN. See RFC 2141 and RFC 8141

URNs will be in the form urn:nid:nss

Linear Supertypes
Serializable, Serializable, Product, Equals, Uri, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Urn
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Uri
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Urn(path: UrnPath)(implicit config: UriConfig = UriConfig.default)

    Permalink

Type Members

  1. type Self = Urn

    Permalink
    Definition Classes
    UrnUri
  2. type SelfWithScheme = UrlWithoutAuthority

    Permalink
    Definition Classes
    UrnUri

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. implicit val config: UriConfig

    Permalink
    Definition Classes
    UrnUri
  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  10. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  11. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  12. def nid: String

    Permalink
  13. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  14. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  15. def nss: String

    Permalink
  16. val path: UrnPath

    Permalink
    Definition Classes
    UrnUri
  17. def schemeOption: Some[String]

    Permalink
    Definition Classes
    UrnUri
  18. def self: Self

    Permalink
    Definition Classes
    UrnUri
  19. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  20. def toJavaURI: URI

    Permalink

    Converts to a java.net.URI

    Converts to a java.net.URI

    This involves a toString and URI.parse because the specific java.net.URI constructors do not deal properly with encoded elements

    returns

    a java.net.URI matching this io.lemonlabs.uri.Uri

    Definition Classes
    Uri
  21. def toString(): String

    Permalink
    Definition Classes
    Uri → AnyRef → Any
  22. def toStringRaw: String

    Permalink

    Returns the path with no encoders taking place (e.g.

    Returns the path with no encoders taking place (e.g. non ASCII characters will not be percent encoded)

    returns

    String containing the raw path for this Uri

    Definition Classes
    Uri
  23. def toUrl: Url

    Permalink
    Definition Classes
    UrnUri
  24. def toUrn: Urn

    Permalink
    Definition Classes
    UrnUri
  25. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. def withScheme(scheme: String): UrlWithoutAuthority

    Permalink

    Converts this URN into a URL with the given scheme.

    Converts this URN into a URL with the given scheme. The NID and NSS will be made path segments of the URL.

    scheme

    the new scheme to set

    returns

    a new Uri with the specified scheme

    Definition Classes
    UrnUri

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Uri

Inherited from AnyRef

Inherited from Any

Ungrouped