Package org.springdoc.core.fn
Class RouterOperation
java.lang.Object
org.springdoc.core.fn.RouterOperation
- All Implemented Interfaces:
Comparable<RouterOperation>
The type Router operation.
- Author:
- bnasslahsen
-
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new Router operation.RouterOperation(String path, org.springframework.web.bind.annotation.RequestMethod[] methods, String[] consumes, String[] produces, String[] headers, String[] params) Instantiates a new Router operation.RouterOperation(RouterOperation routerOperationAnnotation) Instantiates a new Router operation.RouterOperation(RouterOperation routerOperationAnnotation, RouterFunctionData routerFunctionData) Instantiates a new Router operation.RouterOperation(RouterOperation routerOperation, org.springframework.web.bind.annotation.RequestMethod requestMethod) Instantiates a new Router operation.RouterOperation(RouterFunctionData routerFunctionData) Instantiates a new Router operation. -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(RouterOperation routerOperation) booleanClass<?>Gets bean class.Gets bean method.String[]Get consumes string [ ].String[]Get headers string [ ].org.springframework.web.bind.annotation.RequestMethod[]Get methods request method [ ].io.swagger.v3.oas.annotations.OperationGets operation.io.swagger.v3.oas.models.OperationGets operation model.Class<?>[]Get parameter types class [ ].String[]Gets params.getPath()Gets path.String[]Get produces string [ ].Gets query params.inthashCode()voidsetBeanClass(Class<?> beanClass) Sets bean class.voidsetBeanMethod(String beanMethod) Sets bean method.voidsetConsumes(String[] consumes) Sets consumes.voidsetHeaders(String[] headers) Sets headers.voidsetMethods(org.springframework.web.bind.annotation.RequestMethod[] methods) Sets methods.voidsetOperation(io.swagger.v3.oas.annotations.Operation operation) Sets operation.voidsetOperationModel(io.swagger.v3.oas.models.Operation operationModel) Sets operation model.voidsetParameterTypes(Class<?>[] parameterTypes) Sets parameter types.voidSets params.voidSets path.voidsetProduces(String[] produces) Sets produces.voidsetQueryParams(Map<String, String> queryParams) Sets query params.
-
Constructor Details
-
RouterOperation
public RouterOperation()Instantiates a new Router operation. -
RouterOperation
Instantiates a new Router operation.- Parameters:
routerOperationAnnotation- the router operation annotation
-
RouterOperation
public RouterOperation(RouterOperation routerOperationAnnotation, RouterFunctionData routerFunctionData) Instantiates a new Router operation.- Parameters:
routerOperationAnnotation- the router operation annotationrouterFunctionData- the router function data
-
RouterOperation
public RouterOperation(String path, org.springframework.web.bind.annotation.RequestMethod[] methods, String[] consumes, String[] produces, String[] headers, String[] params) Instantiates a new Router operation.- Parameters:
path- the pathmethods- the methodsconsumes- the consumesproduces- the producesheaders- the headers
-
RouterOperation
Instantiates a new Router operation.- Parameters:
routerFunctionData- the router function data
-
RouterOperation
public RouterOperation(RouterOperation routerOperation, org.springframework.web.bind.annotation.RequestMethod requestMethod) Instantiates a new Router operation.- Parameters:
routerOperation- the router operationrequestMethod- the request method
-
-
Method Details
-
getPath
Gets path.- Returns:
- the path
-
setPath
Sets path.- Parameters:
path- the path
-
getMethods
public org.springframework.web.bind.annotation.RequestMethod[] getMethods()Get methods request method [ ].- Returns:
- the request method [ ]
-
setMethods
public void setMethods(org.springframework.web.bind.annotation.RequestMethod[] methods) Sets methods.- Parameters:
methods- the methods
-
getConsumes
Get consumes string [ ].- Returns:
- the string [ ]
-
setConsumes
Sets consumes.- Parameters:
consumes- the consumes
-
getProduces
Get produces string [ ].- Returns:
- the string [ ]
-
setProduces
Sets produces.- Parameters:
produces- the produces
-
getBeanClass
Gets bean class.- Returns:
- the bean class
-
setBeanClass
Sets bean class.- Parameters:
beanClass- the bean class
-
getBeanMethod
Gets bean method.- Returns:
- the bean method
-
setBeanMethod
Sets bean method.- Parameters:
beanMethod- the bean method
-
getParameterTypes
Get parameter types class [ ].- Returns:
- the class [ ]
-
setParameterTypes
Sets parameter types.- Parameters:
parameterTypes- the parameter types
-
getOperation
public io.swagger.v3.oas.annotations.Operation getOperation()Gets operation.- Returns:
- the operation
-
setOperation
public void setOperation(io.swagger.v3.oas.annotations.Operation operation) Sets operation.- Parameters:
operation- the operation
-
getHeaders
Get headers string [ ].- Returns:
- the string [ ]
-
setHeaders
Sets headers.- Parameters:
headers- the headers
-
getQueryParams
Gets query params.- Returns:
- the query params
-
setQueryParams
Sets query params.- Parameters:
queryParams- the query params
-
getParams
Gets params.- Returns:
- the params
-
setParams
Sets params.- Parameters:
params-
-
getOperationModel
public io.swagger.v3.oas.models.Operation getOperationModel()Gets operation model.- Returns:
- the operation model
-
setOperationModel
public void setOperationModel(io.swagger.v3.oas.models.Operation operationModel) Sets operation model.- Parameters:
operationModel- the operation model
-
compareTo
- Specified by:
compareToin interfaceComparable<RouterOperation>
-
equals
-
hashCode
public int hashCode()
-