com.jslsolucoes.jax.rs.client.se.api.impl.DefaultJaxRsApiClientWebTarget Maven / Gradle / Ivy
package com.jslsolucoes.jax.rs.client.se.api.impl;
import javax.ws.rs.client.WebTarget;
import com.jslsolucoes.jax.rs.client.se.api.JaxRsApiClient;
import com.jslsolucoes.jax.rs.client.se.api.JaxRsApiClientRequest;
import com.jslsolucoes.jax.rs.client.se.api.JaxRsApiClientWebTarget;
public class DefaultJaxRsApiClientWebTarget implements JaxRsApiClientWebTarget {
private WebTarget webTarget;
private JaxRsApiClient jaxRsApiClient;
public DefaultJaxRsApiClientWebTarget(JaxRsApiClient jaxRsApiClient,WebTarget webTarget) {
this.jaxRsApiClient = jaxRsApiClient;
this.webTarget = webTarget;
}
@Override
public JaxRsApiClientWebTarget path(String path) {
return new DefaultJaxRsApiClientWebTarget(jaxRsApiClient,webTarget.path(path));
}
@Override
public JaxRsApiClientWebTarget queryParam(String name, Object value) {
return new DefaultJaxRsApiClientWebTarget(jaxRsApiClient,webTarget.queryParam(name, value));
}
@Override
public JaxRsApiClientWebTarget queryParam(String name, Object... values) {
return new DefaultJaxRsApiClientWebTarget(jaxRsApiClient,webTarget.queryParam(name, values));
}
@Override
public JaxRsApiClientRequest request() {
return new DefaultJaxRsApiClientRequest(jaxRsApiClient,webTarget.request());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy