org.jboss.resteasy.reactive.client.impl.AbstractRxInvoker Maven / Gradle / Ivy
package org.jboss.resteasy.reactive.client.impl;
import jakarta.ws.rs.client.Entity;
import jakarta.ws.rs.client.RxInvoker;
import jakarta.ws.rs.core.GenericType;
public abstract class AbstractRxInvoker implements RxInvoker {
@Override
public T get() {
return method("GET");
}
@Override
public T get(Class responseType) {
return method("GET", responseType);
}
@Override
public T get(GenericType responseType) {
return method("GET", responseType);
}
@Override
public T put(Entity> entity) {
return method("PUT");
}
@Override
public T put(Entity> entity, Class responseType) {
return method("PUT", entity, responseType);
}
@Override
public T put(Entity> entity, GenericType responseType) {
return method("PUT", entity, responseType);
}
@Override
public T post(Entity> entity) {
return method("POST");
}
@Override
public T post(Entity> entity, Class responseType) {
return method("PUT", entity, responseType);
}
@Override
public T post(Entity> entity, GenericType responseType) {
return method("PUT", entity, responseType);
}
@Override
public T delete() {
return method("DELETE");
}
@Override
public T delete(Class responseType) {
return method("DELETE", responseType);
}
@Override
public T delete(GenericType responseType) {
return method("DELETE", responseType);
}
@Override
public T head() {
return method("HEAD");
}
@Override
public T options() {
return method("OPTIONS");
}
@Override
public T options(Class responseType) {
return method("OPTIONS", responseType);
}
@Override
public T options(GenericType responseType) {
return method("OPTIONS", responseType);
}
@Override
public T trace() {
return method("TRACE");
}
@Override
public T trace(Class responseType) {
return method("TRACE", responseType);
}
@Override
public T trace(GenericType responseType) {
return method("TRACE", responseType);
}
@Override
public T method(String name) {
return method(name, (GenericType>) null);
}
@Override
public T method(String name, Class responseType) {
return method(name, new GenericType<>(responseType));
}
@Override
public T method(String name, GenericType responseType) {
return method(name, null, responseType);
}
@Override
public T method(String name, Entity> entity) {
return method(name, entity, (GenericType>) null);
}
@Override
public T method(String name, Entity> entity, Class responseType) {
return method(name, entity, new GenericType<>(responseType));
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy