case class Server(portBindings: List[PortBinding], contextAdders: List[ContextAdder], requestLogging: Option[RequestLogging] = None) extends RunnableServer with PlanServer[Filter] with PortBindings with Product with Serializable

Holds port bindings for selected ports and interfaces. The PortBindings trait provides convenience methods for bindings.

Source
Server.scala
Linear Supertypes
Serializable, Product, Equals, PortBindings, PlanServer[Filter], RunnableServer, StartableServer, util.Server, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Server
  2. Serializable
  3. Product
  4. Equals
  5. PortBindings
  6. PlanServer
  7. RunnableServer
  8. StartableServer
  9. Server
  10. AnyRef
  11. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Server(portBindings: List[PortBinding], contextAdders: List[ContextAdder], requestLogging: Option[RequestLogging] = None)

Type Members

  1. type ServerBuilder = Server
    Definition Classes
    Server → PlanServer → Server

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. val allInterfacesHost: String
    Definition Classes
    PortBindings
  5. def anylocal: Server
    Definition Classes
    PortBindings
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  8. def context(path: String)(block: (ContextAdder) => ContextAdder): Server

    Add a servlet context with the given path

  9. val contextAdders: List[ContextAdder]
  10. val defaultHttpPort: Int
    Definition Classes
    PortBindings
  11. val defaultHttpsPort: Int
    Definition Classes
    PortBindings
  12. val defaultKeystorePasswordProperty: String
    Definition Classes
    PortBindings
  13. val defaultKeystorePathProperty: String
    Definition Classes
    PortBindings
  14. def destroy(): Server

    Destroys the Jetty server instance and frees its resources.

    Destroys the Jetty server instance and frees its resources. Call after stopping a server, if finished with the instance, to help avoid PermGen errors in an ongoing JVM session.

    Definition Classes
    Server → StartableServer
  15. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  17. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  18. def http(port: Int = defaultHttpPort, host: String = allInterfacesHost): Server
    Definition Classes
    PortBindings
  19. def https(port: Int = defaultHttpsPort, host: String = allInterfacesHost, keyStorePath: String, keyStorePassword: String): Server
    Definition Classes
    PortBindings
  20. def httpsSysProperties(port: Int = defaultHttpsPort, host: String = allInterfacesHost, keyStorePathProperty: String = defaultKeystorePathProperty, keyStorePasswordProperty: String = defaultKeystorePasswordProperty): Server
    Definition Classes
    PortBindings
  21. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  22. def local(port: Int): Server
    Definition Classes
    PortBindings
  23. val localInterfaceHost: String
    Definition Classes
    PortBindings
  24. def makePlan(plan: => Filter): Server

    Add a filter as a by-name parameter.

    Add a filter as a by-name parameter. Generally you should use plan(plan) instead.

    Definition Classes
    Server → PlanServer
  25. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  26. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  27. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  28. def originalContext(replace: (ContextAdder) => ContextAdder): Server

    Update the server's first-added context.

  29. def plan(plan: Filter): ServerBuilder
    Definition Classes
    PlanServer
  30. def portBinding(binding: PortBinding): Server

    Add a port binding to this server.

    Add a port binding to this server.

    Definition Classes
    ServerPortBindings
  31. val portBindings: List[PortBinding]
    Definition Classes
    Server → StartableServer
  32. def ports: Iterable[Int]

    Ports used by this server, reported by super-trait

  33. def productElementNames: Iterator[String]
    Definition Classes
    Product
  34. def requestLogging(filename: String, extended: Boolean = true, dateFormat: String = "dd/MMM/yyyy:HH:mm:ss Z", timezone: String = "GMT", retainDays: Int = 31): Server

    Configure global logging of requests to a logfile in Common or Extended log format.

    Configure global logging of requests to a logfile in Common or Extended log format. http://en.wikipedia.org/wiki/Category:Log_file_formats

  35. val requestLogging: Option[RequestLogging]
  36. def resources(path: URL): Server

    Add a resource path to the original, root context

  37. def run(afterStart: (ServerBuilder) => Unit, afterStop: (ServerBuilder) => Unit): Unit
    Definition Classes
    RunnableServer
  38. def run(afterStart: (ServerBuilder) => Unit): Unit
    Definition Classes
    RunnableServer
  39. def run(): Unit
    Definition Classes
    RunnableServer
  40. def start(): Server

    Starts server in the background

    Starts server in the background

    Definition Classes
    Server → StartableServer
  41. def stop(): Server

    Stops server running in the background

    Stops server running in the background

    Definition Classes
    Server → StartableServer
  42. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  43. lazy val underlying: org.eclipse.jetty.server.Server

    The mutable underlying jetty server object.

    The mutable underlying jetty server object. This is built on-demand according to the described configuration.

  44. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  45. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  46. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Deprecated Value Members

  1. def filter(filter: Filter): ServerBuilder
    Annotations
    @deprecated
    Deprecated

    (Since version 0.8.1) Use plan(filter)

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from PortBindings

Inherited from PlanServer[Filter]

Inherited from RunnableServer

Inherited from StartableServer

Inherited from util.Server

Inherited from AnyRef

Inherited from Any

Ungrouped