|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.stackmob.sdkapi.http.HttpService
public abstract class HttpService
| Constructor Summary | |
|---|---|
HttpService()
|
|
| Method Summary | |
|---|---|
abstract HttpResponse |
delete(DeleteRequest req)
execute a DELETE request |
abstract Future<HttpResponse> |
deleteAsync(DeleteRequest req)
execute a DELETE request in the background |
abstract HttpResponse |
get(GetRequest req)
execute a GET request |
abstract Future<HttpResponse> |
getAsync(GetRequest req)
execute a GET request in the background |
abstract boolean |
isWhitelisted(String url)
determines whether the given URL is on the whitelist |
abstract HttpResponse |
post(PostRequest req)
execute a POST request |
abstract Future<HttpResponse> |
postAsync(PostRequest req)
execute a POST request in the background |
abstract HttpResponse |
put(PutRequest req)
execute a PUT request |
abstract Future<HttpResponse> |
putAsync(PutRequest req)
execute a PUT request in the background |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HttpService()
| Method Detail |
|---|
public abstract boolean isWhitelisted(String url)
url - the URL to test
public abstract HttpResponse get(GetRequest req)
throws AccessDeniedException,
TimeoutException
req - the request to execute
AccessDeniedException - if the request was rate limited, whitelisted,
or for any other reason denied by the StackMob custom code environment
TimeoutException
public abstract Future<HttpResponse> getAsync(GetRequest req)
throws AccessDeniedException
req - the request to execute
AccessDeniedException - if the request was rate limited, whitelisted,
or for any other reason denied by the StackMob custom code environment
public abstract HttpResponse post(PostRequest req)
throws AccessDeniedException,
TimeoutException
req - the request to execute
AccessDeniedException - if the request was rate limited, whitelisted,
or for any other reason denied by the StackMob custom code environment
TimeoutException
public abstract Future<HttpResponse> postAsync(PostRequest req)
throws AccessDeniedException
req - the request to execute
AccessDeniedException - if the request was rate limited, whitelisted,
or for any other reason denied by the StackMob custom code environment
public abstract HttpResponse put(PutRequest req)
throws AccessDeniedException,
TimeoutException
req - the request to execute
AccessDeniedException - if the request was rate limited, whitelisted,
or for any other reason denied by the StackMob custom code environment
TimeoutException
public abstract Future<HttpResponse> putAsync(PutRequest req)
throws AccessDeniedException
req - the request to execute
AccessDeniedException - if the request was rate limited, whitelisted,
or for any other reason denied by the StackMob custom code environment
public abstract HttpResponse delete(DeleteRequest req)
throws AccessDeniedException,
TimeoutException
req - the request to execute
AccessDeniedException - if the request was rate limited, whitelisted,
or for any other reason denied by the StackMob custom code environment
TimeoutException
public abstract Future<HttpResponse> deleteAsync(DeleteRequest req)
throws AccessDeniedException
req - the request to execute
AccessDeniedException - if the request was rate limited, whitelisted,
or for any other reason denied by the StackMob custom code environment
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||