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.Session
io.vertx.core.http.HttpServerRequest
io.vertx.core.http.HttpServerResponse
io.vertx.core.eventbus.EventBus
io.vertx.core.Vertx
io.vertx.ext.auth.User
io.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();
}
}