Operations: How to Get Client Configuration

GetClientConfigurationOperation is used to return a client configuration, which is saved on the server and overrides client behavior.

Syntax

GetClientConfigurationOperation()

public static class Result {
    private long etag;
    private ClientConfiguration configuration;

    public long getEtag() {
        return etag;
    }

    public void setEtag(long etag) {
        this.etag = etag;
    }

    public ClientConfiguration getConfiguration() {
        return configuration;
    }

    public void setConfiguration(ClientConfiguration configuration) {
        this.configuration = configuration;
    }
}
Return Value
Etag String Etag of configuration
Configuration ClientConfiguration configuration which will be used by the client API

Example

GetClientConfigurationOperation.Result config
    = store.maintenance().send(new GetClientConfigurationOperation());
ClientConfiguration clientConfiguration = config.getConfiguration();