All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.fintrospect.configuration.Host.scala Maven / Gradle / Ivy

package io.fintrospect.configuration

import java.net.InetSocketAddress

case class Host(value: String) extends AnyVal {

  override def toString = value

  def toAuthority(port: Port) = Authority(this, port)

  def socketAddress(port: Port) = new InetSocketAddress(value, port.value)
}

object Host {
  val localhost = Host("localhost")
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy