public class OperationDescriptor extends AbstractDescriptor implements Comparable<OperationDescriptor>
Descriptor
of an operation of a service
.ServiceDescriptor.getOperations()
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 |
---|
OperationDescriptor() |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(OperationDescriptor o) |
Set<String> |
getConsumes() |
String |
getDescription() |
String |
getHttpMethod() |
String |
getId() |
JMethod |
getJavaMethod() |
List<ParameterDescriptor> |
getParameters() |
String |
getPath() |
Set<String> |
getProduces() |
List<ResponseDescriptor> |
getResponses() |
boolean |
isDeprecated() |
void |
setConsumes(Set<String> consumes) |
void |
setDeprecated(boolean deprecated) |
void |
setDescription(String description) |
void |
setHttpMethod(String method) |
void |
setId(String id) |
void |
setJavaMethod(JMethod javaMethod) |
void |
setParameters(List<ParameterDescriptor> parameters) |
void |
setPath(String path) |
void |
setProduces(Set<String> produces) |
void |
setResponses(List<ResponseDescriptor> responses) |
notNull
public String getId()
public void setId(String id)
id
- is the id to setpublic String getPath()
public void setPath(String path)
path
- is the path to setpublic String getHttpMethod()
public void setHttpMethod(String method)
method
- is the method to setpublic String getDescription()
public void setDescription(String description)
description
- is the description to setpublic boolean isDeprecated()
public void setDeprecated(boolean deprecated)
deprecated
- is the deprecated 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<ParameterDescriptor> getParameters()
public void setParameters(List<ParameterDescriptor> parameters)
parameters
- is the parameters to setpublic List<ResponseDescriptor> getResponses()
public void setResponses(List<ResponseDescriptor> responses)
responses
- is the responses to setpublic JMethod getJavaMethod()
public void setJavaMethod(JMethod javaMethod)
javaMethod
- is the javaMethod to setpublic int compareTo(OperationDescriptor o)
compareTo
in interface Comparable<OperationDescriptor>
Copyright © 2015–2021 MojoHaus. All rights reserved.