public class ConfigResponse extends java.lang.Object implements RESTResponse
The catalog properties, with overrides and defaults applied, should be used to configure the catalog and for all subsequent requests after this initial config request.
Configuration from the server consists of two sets of key/value pairs.
Modifier and Type | Class and Description |
---|---|
static class |
ConfigResponse.Builder |
Constructor and Description |
---|
ConfigResponse() |
Modifier and Type | Method and Description |
---|---|
static ConfigResponse.Builder |
builder() |
java.util.Map<java.lang.String,java.lang.String> |
defaults()
Properties that should be used as default configuration.
|
java.util.Map<java.lang.String,java.lang.String> |
merge(java.util.Map<java.lang.String,java.lang.String> clientProperties)
Merge client-provided config with server side provided configuration to return a single
properties map which will be used for instantiating and configuring the REST catalog.
|
java.util.Map<java.lang.String,java.lang.String> |
overrides()
Properties that should be used to override client configuration.
|
java.lang.String |
toString() |
void |
validate()
Ensures that a constructed instance of a REST message is valid according to the REST spec.
|
public void validate()
RESTMessage
This is needed when parsing data that comes from external sources and the object might have been constructed without all the required fields present.
validate
in interface RESTMessage
public java.util.Map<java.lang.String,java.lang.String> defaults()
defaults
have the lowest
priority and should be applied before the client provided configuration.public java.util.Map<java.lang.String,java.lang.String> overrides()
overrides
have the
highest priority and should be applied after defaults and any client-provided configuration
properties.public java.util.Map<java.lang.String,java.lang.String> merge(java.util.Map<java.lang.String,java.lang.String> clientProperties)
clientProperties
- - Client provided configurationpublic java.lang.String toString()
toString
in class java.lang.Object
public static ConfigResponse.Builder builder()