public class ApacheHttpClientAdapter extends AbstractHttpClientAdapter
| Modifier and Type | Class and Description |
|---|---|
static class |
ApacheHttpClientAdapter.Builder<T extends ApacheHttpClientAdapter.Builder<T>> |
url| Modifier | Constructor and Description |
|---|---|
protected |
ApacheHttpClientAdapter(ApacheHttpClientAdapter.Builder<?> builder) |
| Modifier and Type | Method and Description |
|---|---|
static ApacheHttpClientAdapter.Builder<?> |
builder() |
int |
doGet(java.lang.String url)
Attempts to send a group of payloads with a
GET request to the configured endpoint.
|
int |
doPost(java.lang.String url,
java.lang.String payload)
Attempts to send a group of payloads with a
POST request to the configured endpoint.
|
java.lang.Object |
getHttpClient()
Returns the HttpClient in use; it is up to the developer
to cast it back to its original class.
|
get, getUrl, postprotected ApacheHttpClientAdapter(ApacheHttpClientAdapter.Builder<?> builder)
public static ApacheHttpClientAdapter.Builder<?> builder()
public java.lang.Object getHttpClient()
getHttpClient in interface HttpClientAdaptergetHttpClient in class AbstractHttpClientAdapterpublic int doGet(java.lang.String url)
doGet in class AbstractHttpClientAdapterurl - the URL sendpublic int doPost(java.lang.String url,
java.lang.String payload)
doPost in class AbstractHttpClientAdapterurl - the URL to send topayload - the payload to send