public class ApiInfo extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static ApiInfo |
DEFAULT |
static Contact |
DEFAULT_CONTACT |
| 构造器和说明 |
|---|
ApiInfo(String title,
String description,
String version,
String termsOfServiceUrl,
Contact contact,
String license,
String licenseUrl,
Collection<VendorExtension> vendorExtensions)
Default contstructor
|
ApiInfo(String title,
String description,
String version,
String termsOfServiceUrl,
String contactName,
String license,
String licenseUrl)
已过时。
@since 2.4.0
|
| 限定符和类型 | 方法和说明 |
|---|---|
Contact |
getContact() |
String |
getDescription() |
String |
getLicense() |
String |
getLicenseUrl() |
String |
getTermsOfServiceUrl() |
String |
getTitle() |
List<VendorExtension> |
getVendorExtensions() |
String |
getVersion() |
public static final Contact DEFAULT_CONTACT
public static final ApiInfo DEFAULT
@Deprecated public ApiInfo(String title, String description, String version, String termsOfServiceUrl, String contactName, String license, String licenseUrl)
title - titledescription - descriptionversion - versiontermsOfServiceUrl - terms of servicecontactName - contact namelicense - licence textlicenseUrl - license urlpublic ApiInfo(String title, String description, String version, String termsOfServiceUrl, Contact contact, String license, String licenseUrl, Collection<VendorExtension> vendorExtensions)
title - titledescription - descriptionversion - versiontermsOfServiceUrl - termsOfServiceUrlcontact - contactlicense - licenselicenseUrl - license urlvendorExtensions - vendor extensionspublic String getTitle()
public String getDescription()
public String getTermsOfServiceUrl()
public Contact getContact()
public String getLicense()
public String getLicenseUrl()
public String getVersion()
public List<VendorExtension> getVendorExtensions()
Copyright © 2023. All rights reserved.