Package com.microsoft.graph.core
Interface IBaseClient<nativeRequestType>
- Type Parameters:
nativeRequestType- type of a request for the native http client
- All Known Implementing Classes:
BaseClient
public interface IBaseClient<nativeRequestType>
A client that communications with an OData service
-
Method Summary
Modifier and TypeMethodDescriptionbatch()Get the batch request builder.CustomRequestBuilder<com.google.gson.JsonElement>customRequest(String url)Gets a builder to execute a custom request with a generic JSONObject response<T> CustomRequestBuilder<T>customRequest(String url, Class<T> responseType)Gets a builder to execute a custom requestGets the HTTP providerGets the loggerGets the serializerGets the service rootGets the service SDK version if the service SDK is in use, null otherwisevoidsetServiceRoot(String value)Sets the service root
-
Method Details
-
getServiceRoot
Gets the service root- Returns:
- the service root
-
setServiceRoot
Sets the service root- Parameters:
value- the service root
-
getHttpProvider
Gets the HTTP provider- Returns:
- the HTTP provider
-
getLogger
Gets the logger- Returns:
- the logger
-
getSerializer
Gets the serializer- Returns:
- the serializer
-
customRequest
@Nonnull <T> CustomRequestBuilder<T> customRequest(@Nonnull String url, @Nonnull Class<T> responseType)Gets a builder to execute a custom request- Type Parameters:
T- the type to deserialize the response to- Parameters:
url- the url to send the request toresponseType- the class to deserialize the response to- Returns:
- the custom request builder
-
customRequest
Gets a builder to execute a custom request with a generic JSONObject response- Parameters:
url- the url to send the request to- Returns:
- the custom request builder
-
batch
Get the batch request builder.- Returns:
- a request builder to execute a batch.
-
getServiceSDKVersion
Gets the service SDK version if the service SDK is in use, null otherwise- Returns:
- the service SDK version if the service SDK is in use, null otherwise
-