Trait

com.groupon.sparklint.server

AdhocServer

Related Doc: package server

Permalink

trait AdhocServer extends RoutingMap with Logging

This mix-in trait will start up a server on the port specified

Usage: 1. Mount endpoint to RoutingMap.routingMap example: https://github.com/http4s/http4s/blob/master/examples/src/main/scala/com/example/http4s/ExampleService.scala 2. call startServer(port)

Since

4/25/16.

Linear Supertypes
Logging, RoutingMap, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AdhocServer
  2. Logging
  3. RoutingMap
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

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 DEFAULT_PORT: Int

    Permalink
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def bindServer(port: Int): Try[Server]

    Permalink
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  12. def getServerAddress: Option[String]

    Permalink
  13. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  14. def htmlResponse(textResponse: Task[Response]): Task[Response]

    Permalink
  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. def jsonResponse(textResponse: Task[Response]): Task[Response]

    Permalink
  17. def log: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  18. def logDebug(message: String): Unit

    Permalink
    Definition Classes
    Logging
  19. def logError(message: String, ex: Throwable): Unit

    Permalink
    Definition Classes
    Logging
  20. def logError(message: String): Unit

    Permalink
    Definition Classes
    Logging
  21. def logInfo(message: String): Unit

    Permalink
    Definition Classes
    Logging
  22. def logTrace(message: String): Unit

    Permalink
    Definition Classes
    Logging
  23. def logWarn(message: String): Unit

    Permalink
    Definition Classes
    Logging
  24. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  27. def router: HttpService

    Permalink
    Definition Classes
    RoutingMap
  28. lazy val routingMap: Map[String, HttpService]

    Permalink
    Definition Classes
    RoutingMap
  29. var server: Option[Server]

    Permalink
  30. def startServer(port: Option[Int] = None): Unit

    Permalink

    start the server with the routingMap and port

    start the server with the routingMap and port

    port

    port to use

    Annotations
    @throws( ... )
    Exceptions thrown

    IllegalArgumentException if the port is smaller than 0 or greater than 65535

  31. def stopServer(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  33. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  34. final def wait(): Unit

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

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

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

Inherited from Logging

Inherited from RoutingMap

Inherited from AnyRef

Inherited from Any

Ungrouped