package eu.dnetlib.enabling.tools; import javax.xml.ws.wsaddressing.W3CEndpointReference; /** * Instances of this type resolve EPR references to service endpoints. * * @author marko * */ public interface ServiceResolver { /** * return a service client given an EPR instance. * * @param * the service type * @param clazz * needed for type inference of type parameter * @param epr * EPR * @return a service client reference */ T getService(Class clazz, W3CEndpointReference epr); /** * Extract the resource identifier embedded in the EPR. * * @param epr end point reference * @return resource identifier */ String getResourceIdentifier(W3CEndpointReference epr); }