c

wvlet.airframe.http

HttpSyncClientAdapter

class HttpSyncClientAdapter[F[_], Req, Resp] extends HttpSyncClientAdapterBase[F, Req, Resp]

A synchronous HttpClient that awaits responses.

Linear Supertypes
HttpSyncClientAdapterBase[F, Req, Resp], HttpSyncClient[Req, Resp], AutoCloseable, HttpSyncClientBase[Req, Resp], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. HttpSyncClientAdapter
  2. HttpSyncClientAdapterBase
  3. HttpSyncClient
  4. AutoCloseable
  5. HttpSyncClientBase
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new HttpSyncClientAdapter(asyncClient: HttpClient[F, Req, Resp])

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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def awaitF[A](f: F[A]): A
    Attributes
    protected
    Definition Classes
    HttpSyncClientAdapterBase
  6. def buildGETRequest(resourcePath: String, requestBody: JSONObject): Request
    Attributes
    protected
    Definition Classes
    HttpSyncClient
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  8. def close(): Unit
    Definition Classes
    HttpSyncClientAdapter → AutoCloseable
  9. def convertAs[A](response: Response, surface: Surface): A
    Attributes
    protected
    Definition Classes
    HttpSyncClient
  10. def delete[OperationResponse](resourcePath: String, requestFilter: (Req) ⇒ Req = identity)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[OperationResponse]): OperationResponse
  11. def deleteOps[Resource, OperationResponse](resourcePath: String, resource: Resource, requestFilter: (Req) ⇒ Req = identity)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[Resource], arg1: scala.reflect.api.JavaUniverse.TypeTag[OperationResponse]): OperationResponse
  12. def deleteRaw(resourcePath: String, requestFilter: (Req) ⇒ Req = identity): Resp
  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  15. def get[Resource](resourcePath: String, requestFilter: (Req) ⇒ Req = identity)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[Resource]): Resource
  16. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  17. def getOps[Resource, OperationResponse](resourcePath: String, resource: Resource, requestFilter: (Req) ⇒ Req)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[Resource], arg1: scala.reflect.api.JavaUniverse.TypeTag[OperationResponse]): OperationResponse
  18. def getResource[ResourceRequest, Resource](resourcePath: String, resourceRequest: ResourceRequest, requestFilter: (Req) ⇒ Req = identity)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[ResourceRequest], arg1: scala.reflect.api.JavaUniverse.TypeTag[Resource]): Resource
    Definition Classes
    HttpSyncClientBase
  19. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  20. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  21. def list[OperationResponse](resourcePath: String, requestFilter: (Req) ⇒ Req = identity)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[OperationResponse]): OperationResponse
  22. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  24. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  25. def patch[Resource](resourcePath: String, resource: Resource, requestFilter: (Req) ⇒ Req = identity)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[Resource]): Resource
  26. def patchOps[Resource, OperationResponse](resourcePath: String, resource: Resource, requestFilter: (Req) ⇒ Req = identity)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[Resource], arg1: scala.reflect.api.JavaUniverse.TypeTag[OperationResponse]): OperationResponse
  27. def patchRaw[Resource](resourcePath: String, resource: Resource, requestFilter: (Req) ⇒ Req = identity)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[Resource]): Resp
  28. def post[Resource](resourcePath: String, resource: Resource, requestFilter: (Req) ⇒ Req = identity)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[Resource]): Resource
  29. def postOps[Resource, OperationResponse](resourcePath: String, resource: Resource, requestFilter: (Req) ⇒ Req = identity)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[Resource], arg1: scala.reflect.api.JavaUniverse.TypeTag[OperationResponse]): OperationResponse
  30. def postRaw[Resource](resourcePath: String, resource: Resource, requestFilter: (Req) ⇒ Req = identity)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[Resource]): Resp
  31. def put[Resource](resourcePath: String, resource: Resource, requestFilter: (Req) ⇒ Req = identity)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[Resource]): Resource
  32. def putOps[Resource, OperationResponse](resourcePath: String, resource: Resource, requestFilter: (Req) ⇒ Req = identity)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[Resource], arg1: scala.reflect.api.JavaUniverse.TypeTag[OperationResponse]): OperationResponse
  33. def putRaw[Resource](resourcePath: String, resource: Resource, requestFilter: (Req) ⇒ Req = identity)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[Resource]): Resp
  34. def send(req: Req, requestFilter: (Req) ⇒ Req = identity): Resp

    Send an HTTP request and get the response.

    Send an HTTP request and get the response. It will throw an exception for non successful responses (after reaching the max retry)

    Definition Classes
    HttpSyncClientAdapterHttpSyncClient
    Exceptions thrown

    HttpClientException for non-retryable error is happend

    HttpClientMaxRetryException if max retry reaches

  35. def sendSafe(req: Req, requestFilter: (Req) ⇒ Req = identity): Resp

    Send an HTTP request and returns a response (or the last response if the request is retried)

    Send an HTTP request and returns a response (or the last response if the request is retried)

    Definition Classes
    HttpSyncClientAdapterHttpSyncClient
  36. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  37. def toString(): String
    Definition Classes
    AnyRef → Any
  38. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  40. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from HttpSyncClientAdapterBase[F, Req, Resp]

Inherited from HttpSyncClient[Req, Resp]

Inherited from AutoCloseable

Inherited from HttpSyncClientBase[Req, Resp]

Inherited from AnyRef

Inherited from Any

Ungrouped