public abstract class RestAPICall extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
API_VERSION |
protected String |
contentType |
protected org.apache.http.HttpEntity |
entity |
protected org.apache.http.HttpHost |
target |
protected URI |
uri |
protected boolean |
useAdmin |
| Constructor and Description |
|---|
RestAPICall(org.apache.http.HttpEntity entity,
URI uri) |
RestAPICall(org.apache.http.HttpEntity entity,
URI uri,
boolean useAdmin) |
| Modifier and Type | Method and Description |
|---|---|
abstract org.apache.http.HttpResponse |
execute() |
protected org.apache.http.HttpResponse |
sendRequest(org.apache.http.client.methods.HttpUriRequest request) |
void |
setContentType(String contentType) |
public static final String API_VERSION
protected org.apache.http.HttpEntity entity
protected URI uri
protected org.apache.http.HttpHost target
protected String contentType
protected boolean useAdmin
public RestAPICall(org.apache.http.HttpEntity entity,
URI uri,
boolean useAdmin)
public RestAPICall(org.apache.http.HttpEntity entity,
URI uri)
public abstract org.apache.http.HttpResponse execute()
throws AppException
AppExceptionprotected org.apache.http.HttpResponse sendRequest(org.apache.http.client.methods.HttpUriRequest request)
throws AppException
AppExceptionpublic void setContentType(String contentType)
Copyright © 2020. All rights reserved.