public class ServicesDescriptor extends AbstractDescriptor
Descriptor for all discovered services.getServices()HTTP_METHOD_DELETE, HTTP_METHOD_GET, HTTP_METHOD_HEAD, HTTP_METHOD_OPTIONS, HTTP_METHOD_PATCH, HTTP_METHOD_POST, HTTP_METHOD_PUT, LOCATION_BODY, LOCATION_COOKIE, LOCATION_FORM_DATA, LOCATION_HEADER, LOCATION_PATH, LOCATION_QUERY, SCHEME_HTTP, SCHEME_HTTPS, SCHEME_WS, SCHEME_WSS, STATUS_CODE_BAD_REQUEST, STATUS_CODE_CONFLICT, STATUS_CODE_FORBIDDEN, STATUS_CODE_INTERNAL_SERVER_ERROR, STATUS_CODE_NO_CONTENT, STATUS_CODE_SUCCESS, STATUS_CODE_UNAUTHORIZED| Constructor and Description |
|---|
ServicesDescriptor()
The constructor.
|
notNullpublic InfoDescriptor getInfo()
public void setInfo(InfoDescriptor info)
info - is the info to setpublic String getHost()
public void setHost(String host)
host - is the host to setpublic int getPort()
public void setPort(int port)
port - is the port to setpublic String getBasePath()
public void setBasePath(String basePath)
basePath - is the basePath to setpublic List<JavaDocDescriptor> getJavadocs()
public void setJavadocs(List<JavaDocDescriptor> javadocs)
javadocs - is the javadocs to setpublic void setConsumes(Set<String> consumes)
consumes - is the consumes to setpublic void setProduces(Set<String> produces)
produces - is the produces to setpublic List<ServiceDescriptor> getServices()
public void setServices(List<ServiceDescriptor> services)
services - is the services to setpublic List<ErrorDescriptor> getErrors()
public void setErrors(List<ErrorDescriptor> errors)
errors - is the errors to setpublic ExternalDocumentationDescriptor getExternalDocs()
public void setExternalDocs(ExternalDocumentationDescriptor externalDocs)
externalDocs - is the externalDocs to setpublic String getSchemaDefinitionJson()
public void setSchemaDefinitionJson(String schemaDefinitionJson)
schemaDefinitionJson - is the schema definition as json to setpublic String getSchemaDefinitionYaml()
public void setSchemaDefinitionYaml(String schemaDefinitionYaml)
schemaDefinitionYaml - is the schema definition as yaml to setpublic static ServicesDescriptor createDefault()
ServiceDescriptor.Copyright © 2015–2021 MojoHaus. All rights reserved.