public class ClientFactory
extends java.lang.Object
ClientFactory
creates Http clients to access services within the SDA Platform or
external services.Modifier and Type | Method and Description |
---|---|
ExternalClientBuilder |
externalClient()
Starts creation of a client that calls APIs outside of the SDA SE Platform.
|
ExternalClientBuilder |
externalClient(HttpClientConfiguration httpClientConfiguration)
Starts creation of a client that calls APIs outside of the SDA SE Platform.
|
PlatformClientBuilder |
platformClient()
Starts creation of a client that calls APIs within the SDA SE Platform.
|
PlatformClientBuilder |
platformClient(HttpClientConfiguration httpClientConfiguration)
Starts creation of a client that calls APIs within the SDA SE Platform.
|
public PlatformClientBuilder platformClient()
Trace-Token
from the incoming request or a new Trace-Token
to the API resources and can optionally send a Consumer-Token
or pass through the
Authorization
header from the incoming request.
The client is using gzip compression.
public PlatformClientBuilder platformClient(HttpClientConfiguration httpClientConfiguration)
Trace-Token
from the incoming request or a new Trace-Token
to the API resources and can optionally send a Consumer-Token
or pass through the
Authorization
header from the incoming request.httpClientConfiguration
- Allows to pass additional configuration for the http client.public ExternalClientBuilder externalClient()
The client is using gzip compression.
public ExternalClientBuilder externalClient(HttpClientConfiguration httpClientConfiguration)
httpClientConfiguration
- Allows to pass additional configuration for the http client.