Class OperationDescriptor
java.lang.Object
org.codehaus.mojo.servicedocgen.descriptor.AbstractDescriptor
org.codehaus.mojo.servicedocgen.descriptor.OperationDescriptor
- All Implemented Interfaces:
Comparable<OperationDescriptor>, Descriptor
public class OperationDescriptor
extends AbstractDescriptor
implements Comparable<OperationDescriptor>
Descriptor of an operation 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 TypeMethodDescriptionintgetId()getPath()booleanvoidsetConsumes(Set<String> consumes) voidsetDeprecated(boolean deprecated) voidsetDescription(String description) voidsetHttpMethod(String method) voidvoidsetJavaMethod(JMethod javaMethod) voidsetParameters(List<ParameterDescriptor> parameters) voidvoidsetProduces(Set<String> produces) voidsetResponses(List<ResponseDescriptor> responses) Methods inherited from class AbstractDescriptor
notNull
-
Constructor Details
-
OperationDescriptor
public OperationDescriptor()
-
-
Method Details
-
getId
- Returns:
- the id
-
setId
- Parameters:
id- is the id to set
-
getPath
- Returns:
- the path
-
setPath
- Parameters:
path- is the path to set
-
getHttpMethod
- Returns:
- the method
-
setHttpMethod
- Parameters:
method- is the method to set
-
getDescription
- Returns:
- the description
-
setDescription
- Parameters:
description- is the description to set
-
isDeprecated
public boolean isDeprecated()- Returns:
- the deprecated
-
setDeprecated
public void setDeprecated(boolean deprecated) - Parameters:
deprecated- is the deprecated to set
-
getConsumes
-
setConsumes
-
getProduces
-
setProduces
-
getParameters
- Returns:
- the parameters
-
setParameters
- Parameters:
parameters- is the parameters to set
-
getResponses
- Returns:
- the responses
-
setResponses
- Parameters:
responses- is the responses to set
-
getJavaMethod
- Returns:
- the javaMethod
-
setJavaMethod
- Parameters:
javaMethod- is the javaMethod to set
-
compareTo
- Specified by:
compareToin interfaceComparable<OperationDescriptor>
-