Class ServiceDescriptor
java.lang.Object
org.codehaus.mojo.servicedocgen.descriptor.AbstractDescriptor
org.codehaus.mojo.servicedocgen.descriptor.ServiceDescriptor
- All Implemented Interfaces:
Descriptor
Descriptor of a service.- 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 TypeMethodDescriptiongetId()getName()voidsetBasePath(String basePath) voidsetConsumes(Set<String> consumes) voidsetDescription(String description) voidvoidsetJavaType(JType javaType) voidvoidsetOperations(List<OperationDescriptor> paths) voidsetProduces(Set<String> produces) Methods inherited from class AbstractDescriptor
notNull
-
Constructor Details
-
ServiceDescriptor
public ServiceDescriptor()
-
-
Method Details
-
getId
- Returns:
- the id
-
setId
- Parameters:
id- is the id to set
-
getName
- Returns:
- the name
-
setName
- Parameters:
name- is the name to set
-
getDescription
- Returns:
- the description
-
setDescription
- Parameters:
description- is the description to set
-
getBasePath
- Returns:
- the basePath
-
setBasePath
- Parameters:
basePath- is the basePath to set
-
getOperations
- Returns:
- the paths
-
getOperationsGroupedByHttpMethod
- Returns:
- a
MapmappingfromHTTP-methodtoOperationDescriptor.
-
setOperations
- Parameters:
paths- is the paths to set
-
getConsumes
-
setConsumes
-
getProduces
-
setProduces
-
getJavaType
- Returns:
- the javaType
-
setJavaType
- Parameters:
javaType- is the javaType to set
-