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

org.webpieces.plugins.hsqldb.H2DbConfig Maven / Gradle / Ivy

There is a newer version: 2.1.1
Show newest version
package org.webpieces.plugins.hsqldb;

import java.util.function.Function;
import java.util.function.Supplier;

public class H2DbConfig {

	private Supplier port = () -> 0; //default to 0 if not set
	private String pluginPath = "/@db";
	private Function convertDomain = null;

	public H2DbConfig() {
	}
	
	public H2DbConfig(Supplier port, String urlPath) {
		super();
		this.port = port;
		this.pluginPath = urlPath;
	}

	public Supplier getPort() {
		return port;
	}

	public String getPluginPath() {
		return pluginPath;
	}

	/**
	 * For twitter internal use with serviceproxy.  If set, instead of using the port, to hit,
	 * we use the domain name change.. 
	 */
	public Function getConvertDomain() {
		return convertDomain;
	}

	public void setConvertDomain(Function convertDomain) {
		this.convertDomain = convertDomain;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy