org.arquillian.ape.nosql.couchdb.CouchDbOptions Maven / Gradle / Ivy
The newest version!
package org.arquillian.ape.nosql.couchdb;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import org.arquillian.ape.core.RunnerExpressionParser;
import org.ektorp.http.StdHttpClient;
public class CouchDbOptions implements Map {
static final String USERNAME = "username";
static final String PASSWORD = "password";
static final String CACHING = "caching";
static final String ENABLE_SSL = "enableSsl";
static final String RELAXED_SSL = "relaxedSsl";
static final String SSL_FACTORY_SOCKET = "sslFactorySocket";
private Map options = new HashMap<>();
private CouchDbOptions() {
}
CouchDbOptions(Map options) {
this.options.putAll(options);
}
public static CouchDbConfigurationOptions options() {
return new CouchDbConfigurationOptions();
}
@Override
public int size() {
return options.size();
}
@Override
public boolean isEmpty() {
return options.isEmpty();
}
@Override
public boolean containsKey(Object key) {
return options.containsKey(key);
}
@Override
public boolean containsValue(Object value) {
return options.containsValue(value);
}
@Override
public Object get(Object key) {
return options.get(key);
}
@Override
public Object put(String key, Object value) {
return options.put(key, value);
}
@Override
public Object remove(Object key) {
return options.remove(key);
}
@Override
public void putAll(Map extends String, ?> m) {
options.putAll(m);
}
@Override
public void clear() {
options.clear();
}
@Override
public Set keySet() {
return options.keySet();
}
@Override
public Collection