public class SingleUriService extends Object implements HttpService
Constructor and Description |
---|
SingleUriService(URI server,
okhttp3.OkHttpClient client) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
static URL |
getFullUrl(URI base,
String extraPath) |
HttpResponse |
makeRequest(String path,
okhttp3.Request.Builder requestBuilder) |
public SingleUriService(URI server, okhttp3.OkHttpClient client)
public HttpResponse makeRequest(String path, okhttp3.Request.Builder requestBuilder) throws IOException
makeRequest
in interface HttpService
IOException
public void close()
close
in interface HttpService
close
in interface AutoCloseable
public static URL getFullUrl(URI base, String extraPath) throws MalformedURLException
MalformedURLException