org.mashupbots.socko.webserver

WebServer

class WebServer extends Logger

Socko Web Server

val webServer = new WebServer(myWebServerConfig, actorSystem, { server => new RequestHandler(server, routes) })
webServer.start()
...

webServer.stop()
Linear Supertypes
Logger, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. WebServer
  2. Logger
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new WebServer(config: WebServerConfig, routes: PartialFunction[SockoEvent, Unit], actorFactory: ActorRefFactory)

    Constructor that uses the default org.mashupbots.socko.webserver.RequestHandler to process incoming requests

    Constructor that uses the default org.mashupbots.socko.webserver.RequestHandler to process incoming requests

    val webServer = new WebServer(myWebServerConfig, routes, actorSystem)
    webServer.start()
    ...
    
    webServer.stop()
    config

    Web server configuration

    routes

    Routes for processing requests

    actorFactory

    Actor factory (such as an ActorSystem) that can be used to create Socko actors

  2. new WebServer(config: WebServerConfig, actorFactory: ActorRefFactory, handlerFactory: (WebServer) ⇒ ChannelInboundHandler)

    config

    Web server configuration

    actorFactory

    Actor factory (such as an ActorSystem) that can be used to create Socko actors

    handlerFactory

    Factory to create a Netty request handler

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 actorFactory: ActorRefFactory

    Actor factory (such as an ActorSystem) that can be used to create Socko actors

  5. val allChannels: DefaultChannelGroup

    Collection of channels that are currently being used

  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. val config: WebServerConfig

    Web server configuration

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

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

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

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

    Definition Classes
    AnyRef → Any
  13. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  15. lazy val log: Logger

    Logger name is inferred from the class name.

    Logger name is inferred from the class name.

    Definition Classes
    Logger
  16. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  19. val sslManager: Option[SslManager]

    SSL Engine

  20. def start(): Unit

    Starts the server

  21. def stop(): Unit

    Stops the server

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

    Definition Classes
    AnyRef
  23. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. val webLogWriter: Option[ActorRef]

    Actor to which web log events will be sent

  28. val webSocketConnections: WebSocketConnections

    Collection of web socket connections

Inherited from Logger

Inherited from AnyRef

Inherited from Any

Ungrouped