Class ServicesDescriptor
java.lang.Object
org.codehaus.mojo.servicedocgen.descriptor.AbstractDescriptor
org.codehaus.mojo.servicedocgen.descriptor.ServicesDescriptor
- All Implemented Interfaces:
Descriptor
Toplevel
Descriptor for all discovered services.- Author:
- hohwille
- See Also:
-
Field Summary
Fields inherited from interface Descriptor
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ServicesDescriptorgetHost()getInfo()intgetPort()voidsetBasePath(String basePath) voidsetConsumes(Set<String> consumes) voidsetErrors(List<ErrorDescriptor> errors) voidsetExternalDocs(ExternalDocumentationDescriptor externalDocs) voidvoidsetInfo(InfoDescriptor info) voidsetJavadocs(List<JavaDocDescriptor> javadocs) voidsetPort(int port) voidsetProduces(Set<String> produces) voidsetSchemaDefinitionJson(String schemaDefinitionJson) voidsetSchemaDefinitionYaml(String schemaDefinitionYaml) voidsetSchemes(Set<String> schemes) voidsetServices(List<ServiceDescriptor> services) Methods inherited from class AbstractDescriptor
notNull
-
Constructor Details
-
ServicesDescriptor
public ServicesDescriptor()The constructor.
-
-
Method Details
-
getInfo
- Returns:
- the info
-
setInfo
- Parameters:
info- is the info to set
-
getHost
- Returns:
- the host
-
setHost
- Parameters:
host- is the host to set
-
getPort
public int getPort()- Returns:
- the port
-
setPort
public void setPort(int port) - Parameters:
port- is the port to set
-
getBasePath
- Returns:
- the basePath
-
setBasePath
- Parameters:
basePath- is the basePath to set
-
getJavadocs
- Returns:
- the javadocs
-
setJavadocs
- Parameters:
javadocs- is the javadocs to set
-
getSchemes
-
setSchemes
-
getConsumes
-
setConsumes
-
getProduces
-
setProduces
-
getServices
- Returns:
- the services
-
setServices
- Parameters:
services- is the services to set
-
getErrors
- Returns:
- the errors
-
setErrors
- Parameters:
errors- is the errors to set
-
getExternalDocs
- Returns:
- the externalDocs
-
setExternalDocs
- Parameters:
externalDocs- is the externalDocs to set
-
getSchemaDefinitionJson
- Returns:
- the schema definition as json
-
setSchemaDefinitionJson
- Parameters:
schemaDefinitionJson- is the schema definition as json to set
-
getSchemaDefinitionYaml
- Returns:
- the schema definition as yaml
-
setSchemaDefinitionYaml
- Parameters:
schemaDefinitionYaml- is the schema definition as yaml to set
-
createDefault
- Returns:
- a new default instance of
ServiceDescriptor.
-