public class RestClient extends RestApi
SC_UNAUTHORIZED| Constructor and Description |
|---|
RestClient(java.lang.String authenticationHost,
int authenticationPort,
java.lang.String accountName,
java.lang.String accountPassword) |
| Modifier and Type | Method and Description |
|---|---|
co.privacyone.cerberus.restmodel.account.AuthResponseModel |
authenticate() |
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 RestClient(java.lang.String authenticationHost,
int authenticationPort,
java.lang.String accountName,
java.lang.String accountPassword)
public co.privacyone.cerberus.restmodel.account.AuthResponseModel authenticate()
throws RemoteServiceException
RemoteServiceExceptionpublic okhttp3.Response head(okhttp3.HttpUrl url,
java.util.Optional<okhttp3.Headers> headers)
throws RemoteServiceException
head in class RestApiRemoteServiceExceptionpublic okhttp3.Response get(okhttp3.HttpUrl url,
java.util.Optional<okhttp3.Headers> headers)
throws RemoteServiceException
get in class RestApiRemoteServiceExceptionpublic okhttp3.Response post(okhttp3.HttpUrl url,
okhttp3.RequestBody requestBody,
java.util.Optional<okhttp3.Headers> headers)
throws RemoteServiceException
post in class RestApiRemoteServiceExceptionpublic okhttp3.Response delete(okhttp3.HttpUrl url,
java.util.Optional<okhttp3.Headers> headers,
@Nullable
okhttp3.RequestBody requestBody)
throws RemoteServiceException
delete in class RestApiRemoteServiceExceptionpublic okhttp3.Response put(okhttp3.HttpUrl url,
okhttp3.RequestBody requestBody,
java.util.Optional<okhttp3.Headers> headers)
throws RemoteServiceException
put in class RestApiRemoteServiceExceptionCopyright © 2020. All rights reserved.