public class SwaggerArchiveImpl extends org.jboss.shrinkwrap.impl.base.AssignableBase<org.jboss.shrinkwrap.impl.base.ArchiveBase<?>> implements SwaggerArchive
| Modifier and Type | Field and Description |
|---|---|
static String |
SERVICE_ACTIVATOR_CLASS_NAME |
SWAGGER_CONFIGURATION_PATH| Constructor and Description |
|---|
SwaggerArchiveImpl(org.jboss.shrinkwrap.impl.base.ArchiveBase<?> archive) |
| Modifier and Type | Method and Description |
|---|---|
SwaggerConfigurationAsset |
getConfigurationAsset() |
String[] |
getResourcePackages() |
boolean |
hasContextRoot()
Determine if the archive has a context root configured
|
boolean |
hasResourcePackages()
Determine if the archive has been configured for scanning
|
SwaggerArchive |
setContact(String contact)
Sets the contact information for the application
|
SwaggerArchive |
setContextRoot(String root)
Sets the context root, or base path for the API calls.
|
SwaggerArchive |
setDescription(String description)
Sets the description for the application being exposed by swagger.json
|
SwaggerArchive |
setHost(String host)
Sets the addressable host name and port for the API URLs.
|
SwaggerArchive |
setLicense(String license)
Sets the license of the application.
|
SwaggerArchive |
setLicenseUrl(String licenseUrl)
Sets the license URL for this application
|
SwaggerArchive |
setPrettyPrint(boolean prettyPrint)
Sets whether the swagger.json will be pretty printed.
|
SwaggerArchive |
setResourcePackages(String... packages) |
SwaggerArchive |
setSchemes(String... schemes)
Sets the schemes for the for the API URLs (http, https)
|
SwaggerArchive |
setTermsOfServiceUrl(String url)
Sets the url to be displayed for the application's term's of service
|
SwaggerArchive |
setTitle(String title)
Sets the title of the application being exposed by swagger.json
|
SwaggerArchive |
setVersion(String version)
Sets the version of the API being exposed for this application
|
public static final String SERVICE_ACTIVATOR_CLASS_NAME
public SwaggerArchiveImpl(org.jboss.shrinkwrap.impl.base.ArchiveBase<?> archive)
throws IOException
IOExceptionpublic SwaggerConfigurationAsset getConfigurationAsset()
public SwaggerArchive setResourcePackages(String... packages)
setResourcePackages in interface SwaggerArchivepublic SwaggerArchive setTitle(String title)
SwaggerArchivesetTitle in interface SwaggerArchivetitle - the application's titlepublic SwaggerArchive setDescription(String description)
SwaggerArchivesetDescription in interface SwaggerArchivedescription - the descriptionpublic SwaggerArchive setTermsOfServiceUrl(String url)
SwaggerArchivesetTermsOfServiceUrl in interface SwaggerArchiveurl - the URL stringpublic SwaggerArchive setContact(String contact)
SwaggerArchivesetContact in interface SwaggerArchivecontact - The contact information stringpublic SwaggerArchive setLicense(String license)
SwaggerArchivesetLicense in interface SwaggerArchivelicense - the license textpublic SwaggerArchive setLicenseUrl(String licenseUrl)
SwaggerArchivesetLicenseUrl in interface SwaggerArchivelicenseUrl - the license URL as a stringpublic SwaggerArchive setVersion(String version)
SwaggerArchivesetVersion in interface SwaggerArchiveversion - the version stringpublic SwaggerArchive setSchemes(String... schemes)
SwaggerArchivesetSchemes in interface SwaggerArchiveschemes - One or more strings. Valid values are 'http' and 'https'public SwaggerArchive setHost(String host)
SwaggerArchivesetHost in interface SwaggerArchivehost - the host namepublic SwaggerArchive setContextRoot(String root)
SwaggerArchivesetContextRoot in interface SwaggerArchiveroot - the context rootpublic boolean hasContextRoot()
SwaggerArchivehasContextRoot in interface SwaggerArchivepublic SwaggerArchive setPrettyPrint(boolean prettyPrint)
SwaggerArchivesetPrettyPrint in interface SwaggerArchiveprettyPrint - if true swagger.json will be pretty printedpublic boolean hasResourcePackages()
SwaggerArchivehasResourcePackages in interface SwaggerArchivepublic String[] getResourcePackages()
getResourcePackages in interface SwaggerArchiveCopyright © 2017 JBoss by Red Hat. All rights reserved.