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

com.googlecode.openbox.foo.request.addfoo.AddFooRequest Maven / Gradle / Ivy

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

import com.googlecode.openbox.foo.ClientVersion;
import com.googlecode.openbox.foo.request.JsonBodyFooRequest;
import com.googlecode.openbox.http.requests.PostRequest;

public class AddFooRequest extends
		JsonBodyFooRequest {
	public static final String API_PATH = "foo";

	private final AddFooParam requestBody;

	public AddFooRequest(String url, ClientVersion version,
			AddFooParam requestBody) {
		super(url, version);
		setApiPath();
		this.requestBody = requestBody;
	}

	@Override
	public String getMethod() {
		return PostRequest.METHOD_NAME;
	}

	@Override
	public AddFooParam getJsonObjectBody() {
		return requestBody;
	}

	@Override
	public String getRestPath() {
		return API_PATH;
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy