io.quarkus.vertx.web.Body Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quarkus-reactive-routes Show documentation
Show all versions of quarkus-reactive-routes Show documentation
REST framework offering the route model to define non blocking endpoints
package io.quarkus.vertx.web;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import io.vertx.core.buffer.Buffer;
import io.vertx.core.json.JsonArray;
import io.vertx.core.json.JsonObject;
import io.vertx.ext.web.RoutingContext;
/**
* Identifies a route method parameter that should be injected with a value returned from:
*
* - {@link RoutingContext#getBody()} for type {@link Buffer}
* - {@link RoutingContext#getBodyAsString()} for type {@link String}
* - {@link RoutingContext#getBodyAsJson()} for type {@link JsonObject}
* - {@link RoutingContext#getBodyAsJsonArray()} for type {@link JsonArray}
* - {@link RoutingContext#getBodyAsJson()} and {@link JsonObject#mapTo(Class)} for any other type
*
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.PARAMETER)
public @interface Body {
}