public class JsonHttpHelper
extends java.lang.Object
implements java.lang.AutoCloseable
Constructor and Description |
---|
JsonHttpHelper() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
io.vertx.core.json.JsonObject |
get(java.lang.String url) |
void |
sendPost(java.lang.String url,
io.vertx.core.json.JsonObject content) |
void |
sendPut(java.lang.String url,
io.vertx.core.json.JsonObject content) |
public io.vertx.core.json.JsonObject get(java.lang.String url) throws java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.util.concurrent.TimeoutException, java.io.IOException
java.lang.InterruptedException
java.util.concurrent.ExecutionException
java.util.concurrent.TimeoutException
java.io.IOException
public void sendPost(java.lang.String url, io.vertx.core.json.JsonObject content) throws java.lang.Exception
java.lang.Exception
public void sendPut(java.lang.String url, io.vertx.core.json.JsonObject content) throws java.lang.Exception
java.lang.Exception
public void close()
close
in interface java.lang.AutoCloseable
Copyright © 2021. All Rights Reserved.