Package com.tccc.commons.httpclient
package com.tccc.commons.httpclient
Provides classes to access REST services hosted in the cloud.
To facilitate this, kOS provides a JsonTemplate
instance.
It wraps a Jetty HttpClient
object and provides
type conversion similar to Spring Framework's RestTemplate
.
When connecting to external services in the cloud using HTTP, JsonTemplate
and the underlying Jetty HttpClient
is the preferred client. However,
when communicating between applications or within a cluster, you should use
the ApiClient
.
- Since:
- 1.0
- Version:
- 2022-10-21
-
ClassesClassDescriptionJsonResp<T>Data class that encapsulates information related to the return values associated with JsonTemplate calls.System component that provides an easy way to issue HTTP/REST calls, such at GET, POST, PUT, and DELETE.