com.socrata.soda2.consumer.http

HttpConsumer

class HttpConsumer extends Consumer

An implementation of com.socrata.soda2.consumer.Consumer which operates on a real HTTP server.

Linear Supertypes
Consumer, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. HttpConsumer
  2. Consumer
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new HttpConsumer(client: AsyncHttpClient, host: String, port: Int, authorization: Authorization, requestId: Option[String])(implicit executionContext: ExecutionContext, timer: ExecutionContextTimer)

  2. new HttpConsumer(client: AsyncHttpClient, host: String, port: Int = 443, authorization: Authorization = NoAuth)(implicit executionContext: ExecutionContext, timer: ExecutionContextTimer)

    Sets up the application's execution environment for making queries.

    Sets up the application's execution environment for making queries.

    client

    The com.ning.http.client.AsyncHttpClient to use for making queries.

    host

    The hostname to which to connect.

    port

    The port on which the SODA2 server is listening for HTTPS traffic.

    authorization

    The authorization strategy to use for making queries with this object.

    executionContext

    A strategy for starting asynchronous tasks.

  3. new HttpConsumer(lowLevel: LowLevelHttp)

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

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

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

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

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

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

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

    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  17. def query[T](resource: T)(implicit ev: ResourceLike[T]): SimpleQuery

    Sets up a builder that can be used to construct and run a complex SoQL query.

    Sets up a builder that can be used to construct and run a complex SoQL query.

    returns

    An object which can be used to build and run the query.

    Definition Classes
    Consumer
  18. def query[T](resource: T, soql: String)(implicit ev: ResourceLike[T]): SoQLQuery

    Prepares to run raw SoQL against the given resource.

    Prepares to run raw SoQL against the given resource.

    returns

    An object which can be used to run the query.

    Definition Classes
    Consumer
    Note

    The library does no syntactic validation of the SoQL. It is simply passed verbatim to the SODA service.

    ,

    This does not actually run the query. Instead it produces an object which can be used to run the query and feed the results into a data consumer.

  19. def query[T](resource: T, parameter: FieldValue, parameters: FieldValue*)(implicit ev: ResourceLike[T]): SimpleQuery

    Prepares to run the given simple query against the given resource.

    Prepares to run the given simple query against the given resource. A "simple query" is one which does only exact-equality comparisons on untransformed columns, and returns the entire rows which match.

    returns

    An object which can be used to run the query.

    Definition Classes
    Consumer
    Note

    This does not actually run the query. Instead it produces an object which can be used to run the query and feed the results into a data consumer.

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

    Definition Classes
    AnyRef
  21. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Consumer

Inherited from AnyRef

Inherited from Any

Ungrouped