public final class RestProxyFactory extends Object
createProxy(Class, InvocationHandler, Interceptor...)| Modifier and Type | Method and Description |
|---|---|
static <I> I |
createProxy(Class<I> restInterface,
String baseUrl) |
static <I> I |
createProxy(Class<I> restInterface,
String baseUrl,
ClientConfig config,
Interceptor... interceptors)
Create a proxy implementation of restInterface.
|
public static <I> I createProxy(Class<I> restInterface, String baseUrl, ClientConfig config, Interceptor... interceptors)
Path, GET,
POST, QueryParam, FormParam, HeaderParam, PathParam.I - The interface to implementrestInterface - The interface to implementbaseUrl - The service base baseUrlconfig - Client configurationinterceptors - The interceptors that will be able to intercept all proxy method callsCopyright © 2012–2021. All rights reserved.