RestProxy Class

Definition

Type to create a proxy implementation for an interface describing REST API methods. RestProxy can create proxy implementations for interfaces with methods that return deserialized Java objects as well as asynchronous Single objects that resolve to a deserialized Java object.

public final class RestProxy implements InvocationHandler
Inheritance
java.lang.Object
RestProxy
Implements
java.lang.reflect.InvocationHandler

Inherited Members

java.lang.Object.clone() java.lang.Object.equals(java.lang.Object) java.lang.Object.finalize() java.lang.Object.getClass() java.lang.Object.hashCode() java.lang.Object.notify() java.lang.Object.notifyAll() java.lang.Object.toString() java.lang.Object.wait() java.lang.Object.wait(long) java.lang.Object.wait(long,int)

Methods

<A>create(Class<A> swaggerInterface)

Create a proxy implementation of the provided Swagger interface.

<A>create(Class<A> swaggerInterface, HttpPipeline httpPipeline)

Create a proxy implementation of the provided Swagger interface.

<A>create(Class<A> swaggerInterface, HttpPipeline httpPipeline, SerializerAdapter serializer)

Create a proxy implementation of the provided Swagger interface.

invoke(Object proxy, Method method, Object[] args)
send(HttpRequest request, Context contextData)

Send the provided request asynchronously, applying any request policies provided to the HttpClient instance.

Applies to