Loading [Contrib]/a11y/accessibility-menu.js
Back
Close

Building a HTTP Endpoint with Eclipse Vert.x

cescoffier
9,837 views

Retrieving parameters

Let's now extend our code to retrieve a parameter passed in the url (query). You can retrieve query parameters using the getParam method:

Retrieving query parameters
package io.vertx.playground;
import io.vertx.core.Vertx;
import io.vertx.core.json.JsonObject;
public class HttpServerQueryExample {
public static void main(String... args) {
Vertx vertx = Vertx.vertx();
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Create your playground on Tech.io
This playground was created on Tech.io, our hands-on, knowledge-sharing platform for developers.
Go to tech.io
codingame x discord
Join the CodinGame community on Discord to chat about puzzle contributions, challenges, streams, blog articles - all that good stuff!
JOIN US ON DISCORD
Online Participants