public class RestApi
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
SC_UNAUTHORIZED |
| Constructor and Description |
|---|
RestApi() |
| Modifier and Type | Method and Description |
|---|---|
okhttp3.Response |
delete(okhttp3.HttpUrl url,
java.util.Optional<okhttp3.Headers> headers,
okhttp3.RequestBody requestBody) |
okhttp3.Response |
get(okhttp3.HttpUrl url,
java.util.Optional<okhttp3.Headers> headers) |
okhttp3.Response |
head(okhttp3.HttpUrl url,
java.util.Optional<okhttp3.Headers> headers) |
okhttp3.Response |
post(okhttp3.HttpUrl url,
okhttp3.RequestBody requestBody,
java.util.Optional<okhttp3.Headers> headers) |
okhttp3.Response |
put(okhttp3.HttpUrl url,
okhttp3.RequestBody requestBody,
java.util.Optional<okhttp3.Headers> headers) |
public okhttp3.Response head(okhttp3.HttpUrl url,
java.util.Optional<okhttp3.Headers> headers)
throws RemoteServiceException
RemoteServiceExceptionpublic okhttp3.Response get(okhttp3.HttpUrl url,
java.util.Optional<okhttp3.Headers> headers)
throws RemoteServiceException
RemoteServiceExceptionpublic okhttp3.Response post(okhttp3.HttpUrl url,
okhttp3.RequestBody requestBody,
java.util.Optional<okhttp3.Headers> headers)
throws RemoteServiceException
RemoteServiceExceptionpublic okhttp3.Response delete(okhttp3.HttpUrl url,
java.util.Optional<okhttp3.Headers> headers,
@Nullable
okhttp3.RequestBody requestBody)
throws RemoteServiceException
RemoteServiceExceptionpublic okhttp3.Response put(okhttp3.HttpUrl url,
okhttp3.RequestBody requestBody,
java.util.Optional<okhttp3.Headers> headers)
throws RemoteServiceException
RemoteServiceExceptionCopyright © 2020. All rights reserved.