BaseClient<nativeRequestType> Class
- java.
lang. Object - com.
microsoft. graph. core. BaseClient<nativeRequestType>
- com.
Type Parameters
- nativeRequestType
type of a request for the native http client
Implements
public class BaseClient<nativeRequestType>
implements IBaseClient<nativeRequestType>
A client that communications with an OData service
Field Summary
| Modifier and Type | Field and Description |
|---|---|
| static final java.lang.String |
DEFAULT_GRAPH_ENDPOINT
The default endpoint for the Microsoft Graph Service |
Constructor Summary
| Modifier | Constructor | Description |
|---|---|---|
| protected | BaseClient() |
Restricted constructor |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Custom |
customRequest(String url, Class<T> responseType)
Send a custom request to Graph |
| static com.microsoft.graph.core.BaseClient.Builder<nativeClient,nativeRequest> |
<nativeClient,nativeRequest>builder(Class<nativeClient> nativeClientClass, Class<nativeRequest> nativeRequestClass)
Gets the builder to start configuring the client |
|
Batch |
batch()
Get the batch request builder. |
| static com.microsoft.graph.core.BaseClient.Builder<okhttp3.OkHttpClient,okhttp3.Request> |
builder()
Gets the builder to start configuring the client |
|
Custom |
customRequest(String url)
Send a custom request to Graph |
|
IHttp |
getHttpProvider()
Gets the HTTP provider |
| ILogger |
getLogger()
Gets the logger |
| ISerializer |
getSerializer()
Gets the serializer |
| java.lang.String |
getServiceRoot()
Gets the service root |
| java.lang.String |
getServiceSDKVersion()
Gets the service SDK version if the service SDK is in use, null otherwise |
| protected void |
setHttpProvider(IHttpProvider<nativeRequestType> httpProvider)
Sets the HTTP provider |
| protected void |
setLogger(ILogger logger)
Sets the logger |
| void |
setSerializer(ISerializer serializer)
Sets the serializer |
| void |
setServiceRoot(String value)
Sets the service root |
Methods inherited from java.lang.Object
Field Details
DEFAULT_GRAPH_ENDPOINT
public static final String DEFAULT_GRAPH_ENDPOINT
The default endpoint for the Microsoft Graph Service
Constructor Details
BaseClient
protected BaseClient()
Restricted constructor
Method Details
customRequest
public CustomRequestBuilder
Send a custom request to Graph
Parameters:
Returns:
<nativeClient,nativeRequest>builder
public static BaseClient.Builder
Gets the builder to start configuring the client
Parameters:
Returns:
batch
public BatchRequestBuilder batch()
Get the batch request builder.
Returns:
builder
public static BaseClient.Builder
Gets the builder to start configuring the client
Returns:
customRequest
public CustomRequestBuilder
Send a custom request to Graph
Parameters:
Returns:
getHttpProvider
public IHttpProvider
Gets the HTTP provider
Returns:
getLogger
public ILogger getLogger()
Gets the logger
Returns:
getSerializer
public ISerializer getSerializer()
Gets the serializer
Returns:
getServiceRoot
public String getServiceRoot()
Gets the service root
getServiceSDKVersion
public String getServiceSDKVersion()
Gets the service SDK version if the service SDK is in use, null otherwise
Returns:
setHttpProvider
protected void setHttpProvider(IHttpProvider
Sets the HTTP provider
Parameters:
setLogger
protected void setLogger(ILogger logger)
Sets the logger
Parameters:
setSerializer
public void setSerializer(ISerializer serializer)
Sets the serializer
Parameters:
setServiceRoot
public void setServiceRoot(String value)
Sets the service root
Parameters: