| Package | Description |
|---|---|
| com.microsoft.rest.v2 |
The package contains the runtime classes required for AutoRest generated
clients to compile and function.
|
| com.microsoft.rest.v2.http |
This package contains the HTTP abstractions between the AnnotationParser's RestProxy and whatever
HTTP client we choose to use.
|
| Modifier and Type | Method and Description |
|---|---|
static HttpPipeline |
RestProxy.createDefaultPipeline()
Create the default HttpPipeline.
|
static HttpPipeline |
RestProxy.createDefaultPipeline(RequestPolicyFactory credentialsPolicy)
Create the default HttpPipeline.
|
static HttpPipeline |
RestProxy.createDefaultPipeline(ServiceClientCredentials credentials)
Create the default HttpPipeline.
|
HttpPipeline |
ServiceClient.httpPipeline() |
| Modifier and Type | Method and Description |
|---|---|
static <A> A |
RestProxy.create(Class<A> swaggerInterface,
HttpPipeline httpPipeline)
Create a proxy implementation of the provided Swagger interface.
|
static <A> A |
RestProxy.create(Class<A> swaggerInterface,
HttpPipeline httpPipeline,
SerializerAdapter<?> serializer)
Create a proxy implementation of the provided Swagger interface.
|
| Constructor and Description |
|---|
RestProxy(HttpPipeline httpPipeline,
SerializerAdapter<?> serializer,
SwaggerInterfaceParser interfaceParser)
Create a new instance of RestProxy.
|
ServiceClient(HttpPipeline httpPipeline)
Initializes a new instance of the ServiceClient class.
|
| Modifier and Type | Method and Description |
|---|---|
HttpPipeline |
HttpPipelineBuilder.build()
Create a new HttpPipeline from the RequestPolicy factories that have been added to this
HttpPipeline builder.
|
static HttpPipeline |
HttpPipeline.build(HttpClient httpClient,
RequestPolicyFactory... requestPolicyFactories)
Build a new HttpPipeline that will use the provided HttpClient and RequestPolicy factories.
|
static HttpPipeline |
HttpPipeline.build(HttpPipelineOptions pipelineOptions,
Iterable<RequestPolicyFactory> requestPolicyFactories)
Build a new HttpPipeline that will use the provided HttpClient and RequestPolicy factories.
|
static HttpPipeline |
HttpPipeline.build(HttpPipelineOptions pipelineOptions,
RequestPolicyFactory... requestPolicyFactories)
Build a new HttpPipeline that will use the provided HttpClient and RequestPolicy factories.
|
static HttpPipeline |
HttpPipeline.build(Iterable<RequestPolicyFactory> requestPolicyFactories)
Build a new HttpPipeline that will use the provided RequestPolicy factories.
|
static HttpPipeline |
HttpPipeline.build(RequestPolicyFactory... requestPolicyFactories)
Build a new HttpPipeline that will use the provided RequestPolicy factories.
|
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/