public class HttpEndpoint extends Object
| Constructor and Description |
|---|
HttpEndpoint(URI endpoint) |
HttpEndpoint(URI endpoint,
org.apache.http.impl.client.CloseableHttpClient httpClient) |
HttpEndpoint(URI endpoint,
org.apache.http.impl.client.CloseableHttpClient httpClient,
HttpClientContextFactory clientContextFactory) |
HttpEndpoint(URI endpoint,
Config cfg,
HttpClientContextFactory clientContextFactory) |
HttpEndpoint(URI endpoint,
HttpClientContextFactory clientContextFactory) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
HttpResponse |
exec(String serviceId,
org.brutusin.json.spi.JsonNode input,
ProgressCallback progressCallback) |
URI |
getEndpoint() |
Map<String,HttpServiceItem> |
getServices() |
boolean |
isAvailable() |
static void |
main(String[] args) |
public HttpEndpoint(URI endpoint)
public HttpEndpoint(URI endpoint, HttpClientContextFactory clientContextFactory)
public HttpEndpoint(URI endpoint, Config cfg, HttpClientContextFactory clientContextFactory)
public HttpEndpoint(URI endpoint, org.apache.http.impl.client.CloseableHttpClient httpClient) throws IOException
IOExceptionpublic HttpEndpoint(URI endpoint, org.apache.http.impl.client.CloseableHttpClient httpClient, HttpClientContextFactory clientContextFactory) throws IOException
IOExceptionpublic Map<String,HttpServiceItem> getServices()
public final HttpResponse exec(String serviceId, org.brutusin.json.spi.JsonNode input, ProgressCallback progressCallback) throws IOException
serviceId - input - supports inputstreamsprogressCallback - IOExceptionpublic boolean isAvailable()
public URI getEndpoint()
public void close()
throws IOException
IOExceptionCopyright © 2010–2017. All rights reserved.