You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
common-jaxrs-clients/src/main/java/org/gcube/common/calls/jaxrs/TargetFactoryDSL.java

43 lines
778 B
Java

package org.gcube.common.calls.jaxrs;
import javax.ws.rs.client.WebTarget;
import org.gcube.common.gxrest.request.GXWebTargetAdapterRequest;
/**
* Simple DSL for the {@link StubFactory}
*
* @author Fabio Simeoni
*
*/
public interface TargetFactoryDSL {
/**
* Selects the address of the service endpoint or service instance.
*
* @author Fabio Simeoni
*
* @param <T>
*/
interface AtClause {
/**
* Returns a stub for a service endpoint at a given address.
* @param address the address
* @return the stub
*/
GXWebTargetAdapterRequest getAsGxRest(String address);
/**
* Returns a stub for a service endpoint at a given address.
* @param address the address
* @return the stub
*/
WebTarget at(String address);
}
}