Class

io.keen.client.scala

HttpAdapterSpray

Related Doc: package scala

Permalink

class HttpAdapterSpray extends HttpAdapter with Logging

An HttpAdapter built on HTTP client support of the Spray HTTP toolkit.

Akka and Actor Systems

Spray is built upon Akka I/O and uses an Akka ActorSystem to handle HTTP I/O. By default, HttpAdapterSpray creates an ActorSystem for its own use so that it works out of the box. If you are using it within an Akka application, however, it is possible to specify the ActorSystem within which it will run using an implicit parameter.

Source
HttpAdapterSpray.scala
Examples:
  1. Using a custom ActorSystem, implicitly for a scope

    implicit val system = ActorSystem("myapp-system")
    val adapter = new HttpAdapterSpray
  2. ,
  3. Using a custom ActorSystem

    val adapter = new HttpAdapterSpray()(ActorSystem("myapp-system"))
To do

Move the timeout constructor param to config

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. HttpAdapterSpray
  2. Logging
  3. HttpAdapter
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new HttpAdapterSpray(httpTimeoutSeconds: Int = 10)(implicit actorSystem: ActorSystem = ActorSystem("keen-client"))

    Permalink

    httpTimeoutSeconds

    Sets a timeout for HTTP requests, in seconds.

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. implicit val actorSystem: ActorSystem

    Permalink
  5. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def debug(msg: ⇒ Any, t: ⇒ Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  8. def debug(msg: ⇒ Any): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  9. def doRequest(scheme: String, authority: String, path: String, method: String, key: String, body: Option[String] = None, params: Map[String, Option[String]] = Map.empty): Future[Response]

    Permalink

    Perform an HTTP request.

    Perform an HTTP request.

    Definition Classes
    HttpAdapterSprayHttpAdapter
    To do

    Not even documenting the params yet because I'm in the midst of refactoring the hell out of this :-)

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  12. def error(msg: ⇒ Any, t: ⇒ Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  13. def error(msg: ⇒ Any): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  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. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  17. def info(msg: ⇒ Any, t: ⇒ Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  18. def info(msg: ⇒ Any): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  19. def isDebugEnabled: Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  20. def isErrorEnabled: Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  21. def isInfoEnabled: Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  22. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  23. def isTraceEnabled: Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  24. def isWarnEnabled: Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  25. def logger: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  26. def loggerName: String

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  27. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  30. def shutdown(): Unit

    Permalink

    Shuts down HTTP client resources.

    Shuts down HTTP client resources.

    Disconnects any remaining connections. Both idle and active. If you are accessing Keen through a proxy that keeps connections alive this is useful.

    If HttpAdapterSpray's default ActorSystem is in use, it will be shut down; if a custom ActorSystem has been supplied, it will not.

    Definition Classes
    HttpAdapterSprayHttpAdapter
  31. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  32. implicit val timeout: Timeout

    Permalink
  33. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  34. def trace(msg: ⇒ Any, t: ⇒ Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  35. def trace(msg: ⇒ Any): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  36. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. def warn(msg: ⇒ Any, t: ⇒ Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  40. def warn(msg: ⇒ Any): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging

Inherited from Logging

Inherited from HttpAdapter

Inherited from AnyRef

Inherited from Any

Ungrouped