Class/Object

com.markfeeney.circlet

JettyOptions

Related Docs: object JettyOptions | package circlet

Permalink

case class JettyOptions(join: Boolean = true, host: Option[String] = None, httpPort: Int = 80, maxThreads: Int = 50, minThreads: Int = 8, daemonThreads: Boolean = false, configFn: (Server) ⇒ Unit = _ =>, maxIdleTime: Int = 200000, allowHttp: Boolean = true, allowSsl: Boolean = false, sslPort: Int = 443, sendDateHeader: Boolean = true, outputBufferSize: Int = 32768, requestHeaderSize: Int = 8192, responseHeaderSize: Int = 8192, sendServerVersion: Boolean = true, keyStore: Option[SslStoreConfig] = None, keyStorePassword: Option[String] = None, trustStore: Option[SslStoreConfig] = None, trustStorePassword: Option[String] = None, clientAuth: Option[ClientAuth] = None, excludeCiphers: Vector[String] = Vector.empty, excludeProtocols: Vector[String] = Vector.empty) extends Product with Serializable

Options for configuring Jetty.

join

If true, calls join() on Server instance (blocking till server shuts down)

host

The network interface connectors will bind to. If None or 0.0.0.0, binds to all interfaces.

httpPort

A ServerConnector will be created listening on this port.

maxThreads

Max threads in the threadpool used by connectors to run (eventually) the handler.

minThreads

Minimum threads to keep alive in the Jetty threadpool.

daemonThreads

If true, all threads in Jetty's threadpool will be daemon threads.

configFn

A function to mess around with the Server instance before start is called.

maxIdleTime

The max idle time for a connection (roughly Socket.setSoTimeout(int))

allowHttp

If true an HTTP connector is setup listening on port

allowSsl

If true an SSL connector is setup listing on sslPort

sslPort

The port to listen for SSL connections if enableSsl is true.

sendDateHeader

If true, include date in HTTP headers

outputBufferSize

The size of the buffer into which the response is aggregated before being sent to the client. Larger buffer is less likely to block content producer, but could increase from client's perspective.

requestHeaderSize

Max size of a request header. Larger sizes allow for more cookies or stuff encoded in a URL.

responseHeaderSize

Max size of a response header. Similar use cases as requestHeaderSize.

sendServerVersion

If true, send the Server header in responses.

keyStore

Specifies the keystore (private certs) to use for SSL connections

keyStorePassword

Password for keystore

trustStore

Specifies the keystore (public certs) to use for SSL connections

trustStorePassword

Password for trustStore

clientAuth

Policy for client SSL authentication (i.e. Need/Want).

excludeCiphers

Cipher suites to exclude when using SSL

excludeProtocols

Protocols to exclude when using SSL

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JettyOptions
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new JettyOptions(join: Boolean = true, host: Option[String] = None, httpPort: Int = 80, maxThreads: Int = 50, minThreads: Int = 8, daemonThreads: Boolean = false, configFn: (Server) ⇒ Unit = _ =>, maxIdleTime: Int = 200000, allowHttp: Boolean = true, allowSsl: Boolean = false, sslPort: Int = 443, sendDateHeader: Boolean = true, outputBufferSize: Int = 32768, requestHeaderSize: Int = 8192, responseHeaderSize: Int = 8192, sendServerVersion: Boolean = true, keyStore: Option[SslStoreConfig] = None, keyStorePassword: Option[String] = None, trustStore: Option[SslStoreConfig] = None, trustStorePassword: Option[String] = None, clientAuth: Option[ClientAuth] = None, excludeCiphers: Vector[String] = Vector.empty, excludeProtocols: Vector[String] = Vector.empty)

    Permalink

    join

    If true, calls join() on Server instance (blocking till server shuts down)

    host

    The network interface connectors will bind to. If None or 0.0.0.0, binds to all interfaces.

    httpPort

    A ServerConnector will be created listening on this port.

    maxThreads

    Max threads in the threadpool used by connectors to run (eventually) the handler.

    minThreads

    Minimum threads to keep alive in the Jetty threadpool.

    daemonThreads

    If true, all threads in Jetty's threadpool will be daemon threads.

    configFn

    A function to mess around with the Server instance before start is called.

    maxIdleTime

    The max idle time for a connection (roughly Socket.setSoTimeout(int))

    allowHttp

    If true an HTTP connector is setup listening on port

    allowSsl

    If true an SSL connector is setup listing on sslPort

    sslPort

    The port to listen for SSL connections if enableSsl is true.

    sendDateHeader

    If true, include date in HTTP headers

    outputBufferSize

    The size of the buffer into which the response is aggregated before being sent to the client. Larger buffer is less likely to block content producer, but could increase from client's perspective.

    requestHeaderSize

    Max size of a request header. Larger sizes allow for more cookies or stuff encoded in a URL.

    responseHeaderSize

    Max size of a response header. Similar use cases as requestHeaderSize.

    sendServerVersion

    If true, send the Server header in responses.

    keyStore

    Specifies the keystore (private certs) to use for SSL connections

    keyStorePassword

    Password for keystore

    trustStore

    Specifies the keystore (public certs) to use for SSL connections

    trustStorePassword

    Password for trustStore

    clientAuth

    Policy for client SSL authentication (i.e. Need/Want).

    excludeCiphers

    Cipher suites to exclude when using SSL

    excludeProtocols

    Protocols to exclude when using SSL

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 allowHttp: Boolean

    Permalink

    If true an HTTP connector is setup listening on port

  5. val allowSsl: Boolean

    Permalink

    If true an SSL connector is setup listing on sslPort

  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. val clientAuth: Option[ClientAuth]

    Permalink

    Policy for client SSL authentication (i.e.

    Policy for client SSL authentication (i.e. Need/Want).

  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. val configFn: (Server) ⇒ Unit

    Permalink

    A function to mess around with the Server instance before start is called.

  10. val daemonThreads: Boolean

    Permalink

    If true, all threads in Jetty's threadpool will be daemon threads.

  11. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  12. val excludeCiphers: Vector[String]

    Permalink

    Cipher suites to exclude when using SSL

  13. val excludeProtocols: Vector[String]

    Permalink

    Protocols to exclude when using SSL

  14. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  16. val host: Option[String]

    Permalink

    The network interface connectors will bind to.

    The network interface connectors will bind to. If None or 0.0.0.0, binds to all interfaces.

  17. val httpPort: Int

    Permalink

    A ServerConnector will be created listening on this port.

  18. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  19. val join: Boolean

    Permalink

    If true, calls join() on Server instance (blocking till server shuts down)

  20. val keyStore: Option[SslStoreConfig]

    Permalink

    Specifies the keystore (private certs) to use for SSL connections

  21. val keyStorePassword: Option[String]

    Permalink

    Password for keystore

  22. val maxIdleTime: Int

    Permalink

    The max idle time for a connection (roughly Socket.setSoTimeout(int))

  23. val maxThreads: Int

    Permalink

    Max threads in the threadpool used by connectors to run (eventually) the handler.

  24. val minThreads: Int

    Permalink

    Minimum threads to keep alive in the Jetty threadpool.

  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. val outputBufferSize: Int

    Permalink

    The size of the buffer into which the response is aggregated before being sent to the client.

    The size of the buffer into which the response is aggregated before being sent to the client. Larger buffer is less likely to block content producer, but could increase from client's perspective.

  29. val requestHeaderSize: Int

    Permalink

    Max size of a request header.

    Max size of a request header. Larger sizes allow for more cookies or stuff encoded in a URL.

  30. val responseHeaderSize: Int

    Permalink

    Max size of a response header.

    Max size of a response header. Similar use cases as requestHeaderSize.

  31. val sendDateHeader: Boolean

    Permalink

    If true, include date in HTTP headers

  32. val sendServerVersion: Boolean

    Permalink

    If true, send the Server header in responses.

  33. val sslPort: Int

    Permalink

    The port to listen for SSL connections if enableSsl is true.

  34. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  35. val trustStore: Option[SslStoreConfig]

    Permalink

    Specifies the keystore (public certs) to use for SSL connections

  36. val trustStorePassword: Option[String]

    Permalink

    Password for trustStore

  37. final def wait(): Unit

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

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

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

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped