Class Operation
- java.lang.Object
-
- io.vertx.reactivex.ext.web.openapi.Operation
-
public class Operation extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<Operation>__TYPE_ARG
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)OperationfailureHandler(Handler<RoutingContext> handler)Mount a failure handler for this operationOperationgetDelegate()HttpMethodgetHttpMethod()StringgetOpenAPIPath()StringgetOperationId()JsonObjectgetOperationModel()Operationhandler(Handler<RoutingContext> handler)Mount an handler for this operationinthashCode()static OperationnewInstance(Operation arg)OperationrouteToEventBus(String address)Route an incoming request to this operation to a Web API ServiceOperationrouteToEventBus(String address, DeliveryOptions options)Route an incoming request to this operation to a Web API ServiceStringtoString()
-
-
-
Method Detail
-
getDelegate
public Operation getDelegate()
-
handler
public Operation handler(Handler<RoutingContext> handler)
Mount an handler for this operation- Parameters:
handler-- Returns:
-
failureHandler
public Operation failureHandler(Handler<RoutingContext> handler)
Mount a failure handler for this operation- Parameters:
handler-- Returns:
-
routeToEventBus
public Operation routeToEventBus(String address)
Route an incoming request to this operation to a Web API Service- Parameters:
address-- Returns:
-
routeToEventBus
public Operation routeToEventBus(String address, DeliveryOptions options)
Route an incoming request to this operation to a Web API Service- Parameters:
address-options-- Returns:
-
getOperationId
public String getOperationId()
- Returns:
- operationId of this operation
-
getOperationModel
public JsonObject getOperationModel()
- Returns:
- model of this operation
-
getHttpMethod
public HttpMethod getHttpMethod()
- Returns:
- http method of this operation
-
getOpenAPIPath
public String getOpenAPIPath()
- Returns:
- path in OpenAPI style
-
-