unfiltered.jetty

Server

case class Server(portBindings: List[PortBinding], contextAdders: List[ContextAdder]) 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.

Linear Supertypes
Serializable, Serializable, Product, Equals, PortBindings, PlanServer[Filter], RunnableServer, StartableServer, util.Server, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Server
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. PortBindings
  7. PlanServer
  8. RunnableServer
  9. StartableServer
  10. Server
  11. AnyRef
  12. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Server(portBindings: List[PortBinding], contextAdders: List[ContextAdder])

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 browse(): ServerBuilder

    Definition Classes
    StartableServer
  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def context(path: String)(block: (ContextAdder) ⇒ ContextAdder): Server

    Add a servlet context with the given path

  10. val contextAdders: List[ContextAdder]

  11. val defaultHttpPort: Int

    Definition Classes
    PortBindings
  12. val defaultHttpsPort: Int

    Definition Classes
    PortBindings
  13. val defaultKeystorePasswordProperty: String

    Definition Classes
    PortBindings
  14. val defaultKeystorePathProperty: String

    Definition Classes
    PortBindings
  15. 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
  16. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  17. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  19. def http(port: Int = defaultHttpPort, host: String = allInterfacesHost): Server

    Definition Classes
    PortBindings
  20. def https(port: Int = defaultHttpsPort, host: String = allInterfacesHost, keyStorePath: String, keyStorePassword: String): Server

    Definition Classes
    PortBindings
  21. def httpsSysProperties(port: Int = defaultHttpsPort, host: String = allInterfacesHost, keyStorePathProperty: String = defaultKeystorePathProperty, keyStorePasswordProperty: String = defaultKeystorePasswordProperty): Server

    Definition Classes
    PortBindings
  22. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  23. def local(port: Int): Server

    Definition Classes
    PortBindings
  24. val localInterfaceHost: String

    Definition Classes
    PortBindings
  25. 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
  26. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  27. final def notify(): Unit

    Definition Classes
    AnyRef
  28. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  29. def originalContext(replace: (ContextAdder) ⇒ ContextAdder): Server

    Update the server's first-added context.

  30. def plan(plan: Filter): ServerBuilder

    Definition Classes
    PlanServer
  31. def portBinding(binding: PortBinding): Server

    Add a port binding to this server.

    Add a port binding to this server.

    Definition Classes
    ServerPortBindings
  32. val portBindings: List[PortBinding]

    Definition Classes
    Server → StartableServer
  33. def ports: Traversable[Int]

    Ports used by this server, reported by super-trait

  34. def resources(path: URL): Server

    Add a resource path to the original, root context

  35. def run(afterStart: (ServerBuilder) ⇒ Unit, afterStop: (ServerBuilder) ⇒ Unit): Unit

    Definition Classes
    RunnableServer
  36. def run(afterStart: (ServerBuilder) ⇒ Unit): Unit

    Definition Classes
    RunnableServer
  37. def run(): Unit

    Definition Classes
    RunnableServer
  38. def start(): Server

    Starts server in the background

    Starts server in the background

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

    Stops server running in the background

    Stops server running in the background

    Definition Classes
    Server → StartableServer
  40. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  41. 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 discribed configuration.

  42. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

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 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