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

com.googlecode.openbox.foo.request.AbstractFooRequest Maven / Gradle / Ivy

There is a newer version: 2.1.6
Show newest version
package com.googlecode.openbox.foo.request;


import com.googlecode.openbox.foo.ClientVersion;
import com.googlecode.openbox.http.Request;

public abstract class AbstractFooRequest extends Request {

	private ClientVersion version;

	public AbstractFooRequest(String url, ClientVersion version) {
		super(url);
		this.version = version;
	}

	protected abstract String getRestPath();

	private String getVersionLevelPath() {
		return "/demos/" + version.getVersion() + "/";
	}

	public void setApiPath() {
		getURIBuilder().setPath(getVersionLevelPath() + getRestPath());
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy