Class/Object

unfiltered.jetty

Server

Related Docs: object Server | package jetty

Permalink

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, 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
Visibility
  1. Public
  2. All

Instance Constructors

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

    Permalink

Type Members

  1. type ServerBuilder = Server

    Permalink
    Definition Classes
    Server → PlanServer → Server

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. val allInterfacesHost: String

    Permalink
    Definition Classes
    PortBindings
  5. def anylocal: Server

    Permalink
    Definition Classes
    PortBindings
  6. final def asInstanceOf[T0]: T0

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

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

    Permalink

    Add a servlet context with the given path

  9. val contextAdders: List[ContextAdder]

    Permalink
  10. val defaultHttpPort: Int

    Permalink
    Definition Classes
    PortBindings
  11. val defaultHttpsPort: Int

    Permalink
    Definition Classes
    PortBindings
  12. val defaultKeystorePasswordProperty: String

    Permalink
    Definition Classes
    PortBindings
  13. val defaultKeystorePathProperty: String

    Permalink
    Definition Classes
    PortBindings
  14. def destroy(): Server

    Permalink

    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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    PortBindings
  23. val localInterfaceHost: String

    Permalink
    Definition Classes
    PortBindings
  24. def makePlan(plan: ⇒ Filter): Server

    Permalink

    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

    Permalink
    Definition Classes
    AnyRef
  26. final def notify(): Unit

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

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

    Permalink

    Update the server's first-added context.

  29. def plan(plan: Filter): ServerBuilder

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

    Permalink

    Add a port binding to this server.

    Add a port binding to this server.

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

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

    Permalink

    Ports used by this server, reported by super-trait

  33. def requestLogging(filename: String, extended: Boolean = true, dateFormat: String = "dd/MMM/yyyy:HH:mm:ss Z", timezone: String = "GMT", retainDays: Int = 31): Server

    Permalink

    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

  34. val requestLogging: Option[RequestLogging]

    Permalink
  35. def resources(path: URL): Server

    Permalink

    Add a resource path to the original, root context

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

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

    Permalink
    Definition Classes
    RunnableServer
  38. def run(): Unit

    Permalink
    Definition Classes
    RunnableServer
  39. def start(): Server

    Permalink

    Starts server in the background

    Starts server in the background

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

    Permalink

    Stops server running in the background

    Stops server running in the background

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

    Permalink
    Definition Classes
    AnyRef
  42. lazy val underlying: org.eclipse.jetty.server.Server

    Permalink

    The mutable underlying jetty server object.

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

  43. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def filter(filter: Filter): ServerBuilder

    Permalink
    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