All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.linkedin.restli.client.config.RequestConfigProviderBuilder Maven / Gradle / Ivy

There is a newer version: 4.0.1
Show newest version
package com.linkedin.restli.client.config;

import com.linkedin.restli.client.InboundRequestContextFinder;
import com.linkedin.restli.client.ParSeqRestliClientConfig;
import com.linkedin.restli.client.ParSeqRestliClientConfigBuilder;

class RequestConfigProviderBuilder {

  private final ParSeqRestliClientConfigBuilder _config = new ParSeqRestliClientConfigBuilder();
  private InboundRequestContextFinder _inboundRequestFinder;

  public RequestConfigProvider build() throws RequestConfigKeyParsingException {
    return new RequestConfigProviderImpl(_inboundRequestFinder, _config.build());
  }

  public RequestConfigProviderBuilder addConfig(ParSeqRestliClientConfig config) {
    _config.addConfig(config);
    return this;
  }

  public RequestConfigProviderBuilder setInboundRequestFinder(InboundRequestContextFinder inboundRequestFinder) {
    _inboundRequestFinder = inboundRequestFinder;
    return this;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy