| 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.protocol |
The package contains classes that interfaces defining the behaviors
of the necessary components of a Rest Client.
|
| Modifier and Type | Method and Description |
|---|---|
SwaggerMethodParser |
SwaggerInterfaceParser.methodParser(Method swaggerMethod)
Get the method parser that is associated with the provided swaggerMethod.
|
| Modifier and Type | Method and Description |
|---|---|
io.reactivex.Single<HttpResponse> |
RestProxy.ensureExpectedStatus(HttpResponse response,
SwaggerMethodParser methodParser,
int[] additionalAllowedStatusCodes)
Ensure that the provided HttpResponse has a status code that is defined in the provided
SwaggerMethodParser or is in the int[] of additional allowed status codes.
|
protected Object |
RestProxy.handleAsyncHttpResponse(HttpRequest httpRequest,
io.reactivex.Single<HttpResponse> asyncHttpResponse,
SwaggerMethodParser methodParser,
Type returnType) |
protected io.reactivex.Maybe<?> |
RestProxy.handleBodyReturnTypeAsync(HttpResponse response,
SwaggerMethodParser methodParser,
Type entityType) |
Object |
RestProxy.handleRestReturnType(HttpRequest httpRequest,
io.reactivex.Single<HttpResponse> asyncHttpResponse,
SwaggerMethodParser methodParser,
Type returnType)
Handle the provided asynchronous HTTP response and return the deserialized value.
|
protected Object |
RestProxy.handleResumeOperation(HttpRequest httpRequest,
OperationDescription operationDescription,
SwaggerMethodParser methodParser,
Type returnType) |
| Constructor and Description |
|---|
HttpResponseDecoder(SwaggerMethodParser methodParser,
SerializerAdapter<?> serializer)
Creates an HttpResponseDecoder.
|
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/