T
- type of the responsepublic interface RestCall<T>
String response = fusion.restCall(String.class) .get("http://query/query-pipelines/my-pipeline/collections/my-collection/select") .param("q", "id:example_1") .execute();
Modifier and Type | Interface and Description |
---|---|
static interface |
RestCall.RestCallBuilder<T> |
Modifier and Type | Method and Description |
---|---|
RestCall.RestCallBuilder<T> |
delete(java.lang.String serviceUrl)
Perform DELETE call.
|
RestCall.RestCallBuilder<T> |
get(java.lang.String serviceUrl)
Perform GET call.
|
RestCall.RestCallBuilder<T> |
post(java.lang.String serviceUrl)
Perform POST call.
|
RestCall.RestCallBuilder<T> |
put(java.lang.String serviceUrl)
Perform PUT call.
|
RestCall.RestCallBuilder<T> get(java.lang.String serviceUrl)
serviceUrl
- service URL to make call toRestCall.RestCallBuilder<T> put(java.lang.String serviceUrl)
serviceUrl
- service URL to make call toRestCall.RestCallBuilder<T> post(java.lang.String serviceUrl)
serviceUrl
- service URL to make call toRestCall.RestCallBuilder<T> delete(java.lang.String serviceUrl)
serviceUrl
- service URL to make call to