org.optaplanner.openshift.employeerostering.shared.admin.AdminRestServiceBuilder Maven / Gradle / Ivy
The newest version!
package org.optaplanner.openshift.employeerostering.shared.admin;
import com.github.nmorel.gwtjackson.client.ObjectWriter;
import com.github.nmorel.gwtjackson.rest.api.RestCallback;
import com.github.nmorel.gwtjackson.rest.api.RestRequestBuilder;
import com.google.gwt.core.client.GWT;
import com.google.gwt.http.client.Request;
import com.google.gwt.http.client.RequestBuilder;
import java.lang.Void;
import java.time.ZoneId;
/**
* Generated REST service builder for {@link org.optaplanner.openshift.employeerostering.shared.admin.AdminRestService}.
*/
public final class AdminRestServiceBuilder {
private static ObjectWriter1 objectwriter1;
private AdminRestServiceBuilder() {
}
private static ObjectWriter1 getObjectWriter1() {
if (objectwriter1 == null) {
objectwriter1 = GWT.create(ObjectWriter1.class);
}
return objectwriter1;
}
public static final RestRequestBuilder resetApplication(final ZoneId zoneId) {
return new RestRequestBuilder()
.method(RequestBuilder.POST)
.url("/admin/reset")
.body(zoneId)
.bodyConverter(getObjectWriter1());
}
public static final Request resetApplication(final ZoneId zoneId, RestCallback _callback_) {
return resetApplication(zoneId)
.callback(_callback_)
.send();
}
interface ObjectWriter1 extends ObjectWriter {
}
}