com.yahoo.vespa.jaxrs.client.JaxRsStrategy Maven / Gradle / Ivy
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.jaxrs.client;
import java.io.IOException;
import java.util.function.Function;
/**
* This interface allows different strategies for accessing server-side JAX-RS APIs programmatically.
*
* @author bakksjo
*/
public interface JaxRsStrategy {
R apply(final Function function) throws IOException;
default R apply(final Function function, JaxRsTimeouts timeouts) throws IOException {
return apply(function);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy