public class MethodAttributes extends Object
| Constructor and Description |
|---|
MethodAttributes(String[] methodProducesNew,
String defaultConsumesMediaType,
String defaultProducesMediaType,
Map<String,io.swagger.v3.oas.models.responses.ApiResponse> genericMapResponse)
Instantiates a new Method attributes.
|
MethodAttributes(String defaultConsumesMediaType,
String defaultProducesMediaType)
Instantiates a new Method attributes.
|
MethodAttributes(String defaultConsumesMediaType,
String defaultProducesMediaType,
String[] methodConsumes,
String[] methodProduces,
String[] headers)
Instantiates a new Method attributes.
|
| Modifier and Type | Method and Description |
|---|---|
void |
calculateConsumesProduces(Method method)
Calculate consumes produces.
|
io.swagger.v3.oas.models.responses.ApiResponses |
calculateGenericMapResponse(Map<String,io.swagger.v3.oas.models.responses.ApiResponse> genericMapResponse)
Calculate generic map response api responses.
|
String[] |
getClassConsumes()
Get class consumes string [ ].
|
String[] |
getClassProduces()
Get class produces string [ ].
|
Map<String,io.swagger.v3.oas.models.responses.ApiResponse> |
getGenericMapResponse()
Gets generic map response.
|
Map<String,String> |
getHeaders()
Gets headers.
|
com.fasterxml.jackson.annotation.JsonView |
getJsonViewAnnotation()
Gets json view annotation.
|
com.fasterxml.jackson.annotation.JsonView |
getJsonViewAnnotationForRequestBody()
Gets json view annotation for request body.
|
String[] |
getMethodConsumes()
Get method consumes string [ ].
|
String[] |
getMethodProduces()
Get method produces string [ ].
|
boolean |
isMethodOverloaded()
Is method overloaded boolean.
|
boolean |
isNoApiResponseDoc()
Is no api response doc boolean.
|
boolean |
isWithResponseBodySchemaDoc()
Is with response body schema doc boolean.
|
void |
setClassConsumes(String[] classConsumes)
Sets class consumes.
|
void |
setClassProduces(String[] classProduces)
Sets class produces.
|
void |
setJsonViewAnnotation(com.fasterxml.jackson.annotation.JsonView jsonViewAnnotation)
Sets json view annotation.
|
void |
setJsonViewAnnotationForRequestBody(com.fasterxml.jackson.annotation.JsonView jsonViewAnnotationForRequestBody)
Sets json view annotation for request body.
|
void |
setMethodOverloaded(boolean overloaded)
Sets method overloaded.
|
void |
setWithApiResponseDoc(boolean withApiDoc)
Sets with api response doc.
|
void |
setWithResponseBodySchemaDoc(boolean withResponseBodySchemaDoc)
Sets with response body schema doc.
|
public MethodAttributes(String[] methodProducesNew, String defaultConsumesMediaType, String defaultProducesMediaType, Map<String,io.swagger.v3.oas.models.responses.ApiResponse> genericMapResponse)
methodProducesNew - the method produces newdefaultConsumesMediaType - the default consumes media typedefaultProducesMediaType - the default produces media typegenericMapResponse - the generic map responsepublic MethodAttributes(String defaultConsumesMediaType, String defaultProducesMediaType)
defaultConsumesMediaType - the default consumes media typedefaultProducesMediaType - the default produces media typepublic MethodAttributes(String defaultConsumesMediaType, String defaultProducesMediaType, String[] methodConsumes, String[] methodProduces, String[] headers)
defaultConsumesMediaType - the default consumes media typedefaultProducesMediaType - the default produces media typemethodConsumes - the method consumesmethodProduces - the method producesheaders - the headerspublic String[] getClassProduces()
public void setClassProduces(String[] classProduces)
classProduces - the class producespublic String[] getClassConsumes()
public void setClassConsumes(String[] classConsumes)
classConsumes - the class consumespublic String[] getMethodProduces()
public String[] getMethodConsumes()
public void calculateConsumesProduces(Method method)
method - the methodpublic boolean isMethodOverloaded()
public void setMethodOverloaded(boolean overloaded)
overloaded - the overloadedpublic void setWithApiResponseDoc(boolean withApiDoc)
withApiDoc - the with api docpublic boolean isNoApiResponseDoc()
public com.fasterxml.jackson.annotation.JsonView getJsonViewAnnotation()
public void setJsonViewAnnotation(com.fasterxml.jackson.annotation.JsonView jsonViewAnnotation)
jsonViewAnnotation - the json view annotationpublic com.fasterxml.jackson.annotation.JsonView getJsonViewAnnotationForRequestBody()
public void setJsonViewAnnotationForRequestBody(com.fasterxml.jackson.annotation.JsonView jsonViewAnnotationForRequestBody)
jsonViewAnnotationForRequestBody - the json view annotation for request bodypublic io.swagger.v3.oas.models.responses.ApiResponses calculateGenericMapResponse(Map<String,io.swagger.v3.oas.models.responses.ApiResponse> genericMapResponse)
genericMapResponse - the generic map responsepublic Map<String,io.swagger.v3.oas.models.responses.ApiResponse> getGenericMapResponse()
public boolean isWithResponseBodySchemaDoc()
public void setWithResponseBodySchemaDoc(boolean withResponseBodySchemaDoc)
withResponseBodySchemaDoc - the with response body schema docCopyright © 2021. All rights reserved.