Parameter type supported.
The parameters ( Not belong to specific ), must be annotated with following
- [x]
javax.ws.rs.QueryParam - [x]
javax.ws.rs.FormParam - [ ]
javax.ws.rs.MatrixParam - [x]
javax.ws.rs.PathParam - [x]
javax.ws.rs.HeaderParam - [x]
javax.ws.rs.CookieParam - [x]
jakarta.ws.rs.BodyParam - [x]
jakarta.ws.rs.StreamParam - [x]
jakarta.ws.rs.SessionParam
The following parameter could be used by type without annotation ( Mustn't include )
io.vertx.ext.web.Sessionio.vertx.core.http.HttpServerRequestio.vertx.core.http.HttpServerResponseio.vertx.core.eventbus.EventBusio.vertx.core.Vertxio.vertx.ext.auth.Userio.vertx.ext.web.RoutingContext
1. Source Code
package org.exmaple;
import io.vertx.core.http.HttpServerRequest;
import io.vertx.up.annotations.EndPoint;
import javax.ws.rs.*;
@Path("/up/example")
@EndPoint
public class ZeroExpApi {
// ... Other
@GET
@Path("/typed/request")
public String sayBody(
final HttpServerRequest request
) {
return request.absoluteURI();
}
}