Package io.getstream.services.framework
Class StreamHTTPClient
java.lang.Object
io.getstream.services.framework.StreamHTTPClient
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionStreamHTTPClient(String apiKey, String apiSecret) StreamHTTPClient(String apiKey, String apiSecret, StreamClientOptions options) StreamHTTPClient(String apiKey, String apiSecret, okhttp3.OkHttpClient httpClient) StreamHTTPClient(Properties properties) StreamHTTPClient(Properties properties, StreamClientOptions options) -
Method Summary
Modifier and TypeMethodDescriptionokhttp3.OkHttpClientbooleanorg.slf4j.LoggerThe SLF4J logger for structured events (a no-op logger when none was injected).com.fasterxml.jackson.databind.ObjectMapperOpt-in auto-retry policy (default: disabled, no retries).
-
Field Details
-
API_KEY_PROP_NAME
- See Also:
-
API_SECRET_PROP_NAME
- See Also:
-
API_TIMEOUT_PROP_NAME
- See Also:
-
API_URL_PROP_NAME
- See Also:
-
API_LOG_LEVEL_PROP_NAME
- See Also:
-
API_CONNECTION_MAX_AGE_PROP_NAME
- See Also:
-
-
Constructor Details
-
StreamHTTPClient
-
StreamHTTPClient
-
StreamHTTPClient
public StreamHTTPClient(@NotNull String apiKey, @NotNull String apiSecret, @NotNull StreamClientOptions options) -
StreamHTTPClient
public StreamHTTPClient() -
StreamHTTPClient
- Throws:
IllegalArgumentException
-
StreamHTTPClient
public StreamHTTPClient(Properties properties, @NotNull StreamClientOptions options) throws IllegalArgumentException - Throws:
IllegalArgumentException
-
-
Method Details
-
getHttpClient
@NotNull public okhttp3.OkHttpClient getHttpClient() -
getObjectMapper
@NotNull public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper() -
getBaseUrl
-
getLogger
@NotNull public org.slf4j.Logger getLogger()The SLF4J logger for structured events (a no-op logger when none was injected). -
getLogBodies
public boolean getLogBodies() -
getRetryConfig
Opt-in auto-retry policy (default: disabled, no retries). -
getApiSecret
-
getApiKey
-