35 lines
525 B
Java
35 lines
525 B
Java
|
package org.gcube.common.calls.jaxrs;
|
||
|
|
||
|
import javax.ws.rs.client.WebTarget;
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
/**
|
||
|
* 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
|
||
|
*/
|
||
|
WebTarget at(String address);
|
||
|
|
||
|
|
||
|
}
|
||
|
}
|