com.jslsolucoes.jax.rs.client.se.api.JaxRsApiClientResponse Maven / Gradle / Ivy
package com.jslsolucoes.jax.rs.client.se.api;
import java.util.Map;
import javax.ws.rs.core.Response.Status;
public interface JaxRsApiClientResponse extends AutoCloseable {
public Status status();
public Boolean wasStatus(Status status);
public Boolean wasOk();
public Boolean wasServiceUnavailable();
public Boolean wasNotFound();
public Boolean wasCreated();
public Boolean wasBadRequest();
public Boolean wasUnauthorized();
public Boolean wasForbidden();
public T onStatus(Status status, Class clazz);
public T onOk(Class clazz);
public T onUnauthorized(Class clazz);
public T onForbidden(Class clazz);
public T onCreated(Class clazz);
public T onBadRequest(Class clazz);
public T onNotFound(Class clazz);
public T onStatusFollow(Status status, Class clazz);
public T onStatusFollow(Status status, Class clazz, Map headers);
public T onOkFollow(Class clazz);
public T onOkFollow(Class clazz, Map headers);
public T onCreatedFollow(Class clazz);
public T onCreatedFollow(Class clazz, Map headers);
public void close();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy