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
- Alphabetic
- By Inheritance
- Server
- Serializable
- Product
- Equals
- PortBindings
- PlanServer
- RunnableServer
- StartableServer
- Server
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Server(portBindings: List[PortBinding], contextAdders: List[ContextAdder], requestLogging: Option[RequestLogging] = None)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val allInterfacesHost: String
- Definition Classes
- PortBindings
- def anylocal: Server
- Definition Classes
- PortBindings
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def context(path: String)(block: (ContextAdder) => ContextAdder): Server
Add a servlet context with the given path
- val contextAdders: List[ContextAdder]
- val defaultHttpPort: Int
- Definition Classes
- PortBindings
- val defaultHttpsPort: Int
- Definition Classes
- PortBindings
- val defaultKeystorePasswordProperty: String
- Definition Classes
- PortBindings
- val defaultKeystorePathProperty: String
- Definition Classes
- PortBindings
- 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
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def http(port: Int = defaultHttpPort, host: String = allInterfacesHost): Server
- Definition Classes
- PortBindings
- def https(port: Int = defaultHttpsPort, host: String = allInterfacesHost, keyStorePath: String, keyStorePassword: String): Server
- Definition Classes
- PortBindings
- def httpsSysProperties(port: Int = defaultHttpsPort, host: String = allInterfacesHost, keyStorePathProperty: String = defaultKeystorePathProperty, keyStorePasswordProperty: String = defaultKeystorePasswordProperty): Server
- Definition Classes
- PortBindings
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def local(port: Int): Server
- Definition Classes
- PortBindings
- val localInterfaceHost: String
- Definition Classes
- PortBindings
- 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
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def originalContext(replace: (ContextAdder) => ContextAdder): Server
Update the server's first-added context.
- def plan(plan: Filter): ServerBuilder
- Definition Classes
- PlanServer
- def portBinding(binding: PortBinding): Server
Add a port binding to this server.
Add a port binding to this server.
- Definition Classes
- Server → PortBindings
- val portBindings: List[PortBinding]
- Definition Classes
- Server → StartableServer
- def ports: Iterable[Int]
Ports used by this server, reported by super-trait
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- 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
- val requestLogging: Option[RequestLogging]
- def resources(path: URL): Server
Add a resource path to the original, root context
- def run(afterStart: (ServerBuilder) => Unit, afterStop: (ServerBuilder) => Unit): Unit
- Definition Classes
- RunnableServer
- def run(afterStart: (ServerBuilder) => Unit): Unit
- Definition Classes
- RunnableServer
- def run(): Unit
- Definition Classes
- RunnableServer
- def start(): Server
Starts server in the background
Starts server in the background
- Definition Classes
- Server → StartableServer
- def stop(): Server
Stops server running in the background
Stops server running in the background
- Definition Classes
- Server → StartableServer
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- 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.
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
Deprecated Value Members
- def filter(filter: Filter): ServerBuilder
- Annotations
- @deprecated
- Deprecated
(Since version 0.8.1) Use
plan(filter)