Package co.privacyone.sdk.restapi.rest
Class RestApi
- java.lang.Object
-
- co.privacyone.sdk.restapi.rest.RestApi
-
- Direct Known Subclasses:
RestClient
public class RestApi extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static intSC_UNAUTHORIZED
-
Constructor Summary
Constructors Constructor Description RestApi()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description okhttp3.Responsedelete(okhttp3.HttpUrl url, java.util.Optional<okhttp3.Headers> headers, okhttp3.RequestBody requestBody)okhttp3.Responseget(okhttp3.HttpUrl url, java.util.Optional<okhttp3.Headers> headers)okhttp3.Responsehead(okhttp3.HttpUrl url, java.util.Optional<okhttp3.Headers> headers)okhttp3.Responsepost(okhttp3.HttpUrl url, okhttp3.RequestBody requestBody, java.util.Optional<okhttp3.Headers> headers)okhttp3.Responseput(okhttp3.HttpUrl url, okhttp3.RequestBody requestBody, java.util.Optional<okhttp3.Headers> headers)
-
-
-
Method Detail
-
head
public okhttp3.Response head(okhttp3.HttpUrl url, java.util.Optional<okhttp3.Headers> headers) throws RemoteServiceException- Throws:
RemoteServiceException
-
get
public okhttp3.Response get(okhttp3.HttpUrl url, java.util.Optional<okhttp3.Headers> headers) throws RemoteServiceException- Throws:
RemoteServiceException
-
post
public okhttp3.Response post(okhttp3.HttpUrl url, okhttp3.RequestBody requestBody, java.util.Optional<okhttp3.Headers> headers) throws RemoteServiceException- Throws:
RemoteServiceException
-
delete
public okhttp3.Response delete(okhttp3.HttpUrl url, java.util.Optional<okhttp3.Headers> headers, @Nullable okhttp3.RequestBody requestBody) throws RemoteServiceException- Throws:
RemoteServiceException
-
put
public okhttp3.Response put(okhttp3.HttpUrl url, okhttp3.RequestBody requestBody, java.util.Optional<okhttp3.Headers> headers) throws RemoteServiceException- Throws:
RemoteServiceException
-
-