public class SwaggerInterfaceParser extends Object
| Constructor and Description |
|---|
SwaggerInterfaceParser(Class<?> swaggerInterface,
SerializerAdapter<?> serializer)
Create a new SwaggerInterfaceParser object with the provided fully qualified interface
name.
|
SwaggerInterfaceParser(Class<?> swaggerInterface,
SerializerAdapter<?> serializer,
String host)
Create a new SwaggerInterfaceParser object with the provided fully qualified interface
name.
|
| Modifier and Type | Method and Description |
|---|---|
SwaggerMethodParser |
methodParser(Method swaggerMethod)
Get the method parser that is associated with the provided swaggerMethod.
|
public SwaggerInterfaceParser(Class<?> swaggerInterface, SerializerAdapter<?> serializer)
swaggerInterface - The interface that will be parsed.serializer - The serializer that will be used to serialize non-String header values and query values.public SwaggerInterfaceParser(Class<?> swaggerInterface, SerializerAdapter<?> serializer, String host)
swaggerInterface - The interface that will be parsed.serializer - The serializer that will be used to serialize non-String header values and query values.host - The host of URLs that this Swagger interface targets.public SwaggerMethodParser methodParser(Method swaggerMethod)
swaggerMethod - The method to generate a parser for./**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/