public class RestClient
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
asString() |
static RestClient |
get(java.lang.String urlString) |
static RestClient |
method(java.lang.String urlString,
java.lang.String body,
java.nio.charset.Charset charset,
io.netty.handler.codec.http.HttpMethod httpMethod) |
static RestClient |
post(java.lang.String urlString,
java.lang.String body) |
void |
setResponse(io.netty.handler.codec.http.FullHttpResponse response) |
public void setResponse(io.netty.handler.codec.http.FullHttpResponse response)
public java.lang.String asString()
public static RestClient get(java.lang.String urlString) throws java.io.IOException
java.io.IOExceptionpublic static RestClient post(java.lang.String urlString, java.lang.String body) throws java.io.IOException
java.io.IOExceptionpublic static RestClient method(java.lang.String urlString, java.lang.String body, java.nio.charset.Charset charset, io.netty.handler.codec.http.HttpMethod httpMethod) throws java.io.IOException
java.io.IOException