public class ServiceDescriptor extends AbstractDescriptor
Descriptor
of a service.ServicesDescriptor.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 |
---|
ServiceDescriptor() |
Modifier and Type | Method and Description |
---|---|
String |
getBasePath() |
Set<String> |
getConsumes() |
String |
getDescription() |
String |
getId() |
JType |
getJavaType() |
String |
getName() |
List<OperationDescriptor> |
getOperations() |
Map<String,List<OperationDescriptor>> |
getOperationsGroupedByHttpMethod() |
Set<String> |
getProduces() |
void |
setBasePath(String basePath) |
void |
setConsumes(Set<String> consumes) |
void |
setDescription(String description) |
void |
setId(String id) |
void |
setJavaType(JType javaType) |
void |
setName(String name) |
void |
setOperations(List<OperationDescriptor> paths) |
void |
setProduces(Set<String> produces) |
notNull
public String getId()
public void setId(String id)
id
- is the id to setpublic String getName()
public void setName(String name)
name
- is the name to setpublic String getDescription()
public void setDescription(String description)
description
- is the description to setpublic String getBasePath()
public void setBasePath(String basePath)
basePath
- is the basePath to setpublic List<OperationDescriptor> getOperations()
public Map<String,List<OperationDescriptor>> getOperationsGroupedByHttpMethod()
Map
mapping
from HTTP-method
to OperationDescriptor
.public void setOperations(List<OperationDescriptor> paths)
paths
- is the paths to setpublic void setConsumes(Set<String> consumes)
consumes
- is the consumes to setpublic void setProduces(Set<String> produces)
produces
- is the produces to setpublic JType getJavaType()
public void setJavaType(JType javaType)
javaType
- is the javaType to setCopyright © 2015–2021 MojoHaus. All rights reserved.