Annotation Type Body


  • @Retention(RUNTIME)
    @Target(PARAMETER)
    public @interface Body
    Identifies a route method parameter that should be injected with a value returned from:
    • RoutingContext.getBody() for type Buffer
    • RoutingContext.getBodyAsString() for type String
    • RoutingContext.getBodyAsJson() for type JsonObject
    • RoutingContext.getBodyAsJsonArray() for type JsonArray
    • RoutingContext.getBodyAsJson() and JsonObject.mapTo(Class) for any other type