All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.quarkus.vertx.web.Body Maven / Gradle / Ivy

There is a newer version: 3.15.0
Show newest version
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 { }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy