Class

com.socrata.soda2.consumer.http

HttpConsumer

Related Doc: package http

Permalink

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
Visibility
  1. Public
  2. All

Instance Constructors

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

    Permalink

    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.

  2. new HttpConsumer(lowLevel: LowLevelHttp)

    Permalink

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. final def asInstanceOf[T0]: T0

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    Any
  12. val lowLevel: LowLevel

    Permalink
    Definition Classes
    Consumer
  13. final def ne(arg0: AnyRef): Boolean

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

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

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

    Permalink

    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
  17. def query[T](resource: T, soql: String)(implicit ev: ResourceLike[T]): SoQLQuery

    Permalink

    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.

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

    Permalink

    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.

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

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

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

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

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

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

Inherited from Consumer

Inherited from AnyRef

Inherited from Any

Ungrouped