Class BaseGraphRequestAdapter
java.lang.Object
com.microsoft.kiota.http.OkHttpRequestAdapter
com.microsoft.graph.core.requests.BaseGraphRequestAdapter
- All Implemented Interfaces:
com.microsoft.kiota.RequestAdapter
public class BaseGraphRequestAdapter
extends com.microsoft.kiota.http.OkHttpRequestAdapter
Extension of the OkHttpRequestAdapter which is used as the default for Graph Requests.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnum list of Keys which can be used to access the cloudList map. -
Field Summary
Fields inherited from class com.microsoft.kiota.http.OkHttpRequestAdapter
authenticateChallengedEventKey, errorBodyFoundAttributeName, errorMappingFoundAttributeName, eventResponseHandlerInvokedKey -
Constructor Summary
ConstructorsConstructorDescriptionBaseGraphRequestAdapter(com.microsoft.kiota.authentication.AuthenticationProvider authenticationProvider) Constructor requiring only an AuthenticationProviderBaseGraphRequestAdapter(com.microsoft.kiota.authentication.AuthenticationProvider authenticationProvider, BaseGraphRequestAdapter.Clouds cloud, String version) Constructor requiring an AuthenticationProvider, optional National Cloud, and optional Version.BaseGraphRequestAdapter(com.microsoft.kiota.authentication.AuthenticationProvider authenticationProvider, BaseGraphRequestAdapter.Clouds cloud, String version, GraphClientOption graphClientOption) Constructor requiring an AuthenticationProvider, optional National Cloud, optional Version, and required GraphClientOption.BaseGraphRequestAdapter(com.microsoft.kiota.authentication.AuthenticationProvider authenticationProvider, BaseGraphRequestAdapter.Clouds cloud, String version, okhttp3.OkHttpClient client) Constructor requiring an AuthenticationProvider, optional National Cloud, optional Version, and required OkHttpClient.BaseGraphRequestAdapter(com.microsoft.kiota.authentication.AuthenticationProvider authenticationProvider, com.microsoft.kiota.serialization.ParseNodeFactory parseNodeFactory, com.microsoft.kiota.serialization.SerializationWriterFactory serializationWriterFactory, okhttp3.OkHttpClient client, GraphClientOption graphClientOption, String baseUrl) The default BaseGraphRequestAdapter constructor, includes all configurable properties.BaseGraphRequestAdapter(com.microsoft.kiota.authentication.AuthenticationProvider authenticationProvider, String baseUrl) Constructor requiring an AuthenticationProvider and a base URL.BaseGraphRequestAdapter(com.microsoft.kiota.authentication.AuthenticationProvider authenticationProvider, String baseUrl, GraphClientOption graphClientOption) Constructor requiring an AuthenticationProvider, base URL, and GraphClientOption.BaseGraphRequestAdapter(com.microsoft.kiota.authentication.AuthenticationProvider authenticationProvider, String baseUrl, okhttp3.OkHttpClient client) Constructor requiring an AuthenticationProvider, base URL, and an OkHttpClient. -
Method Summary
Methods inherited from class com.microsoft.kiota.http.OkHttpRequestAdapter
convertToNativeRequest, enableBackingStore, getBaseUrl, getRequestFromRequestInformation, getSerializationWriterFactory, send, sendCollection, sendEnum, sendEnumCollection, sendPrimitive, sendPrimitiveCollection, setBaseUrl
-
Constructor Details
-
BaseGraphRequestAdapter
public BaseGraphRequestAdapter(@Nonnull com.microsoft.kiota.authentication.AuthenticationProvider authenticationProvider, @Nullable com.microsoft.kiota.serialization.ParseNodeFactory parseNodeFactory, @Nullable com.microsoft.kiota.serialization.SerializationWriterFactory serializationWriterFactory, @Nullable okhttp3.OkHttpClient client, @Nullable GraphClientOption graphClientOption, @Nullable String baseUrl) The default BaseGraphRequestAdapter constructor, includes all configurable properties. Note: GraphClientOption will be ignored if you also choose to include an OKHttpClient.- Parameters:
authenticationProvider- the AuthenticationProvider for use in requests.parseNodeFactory- the ParseNodeFactory for use in requests.serializationWriterFactory- the SerializationWriterFactory for use in requests.client- the OkHttpClient for use in requests.graphClientOption- the GraphClientOption for use in requests.baseUrl- the base URL for use in requests.
-
BaseGraphRequestAdapter
public BaseGraphRequestAdapter(@Nonnull com.microsoft.kiota.authentication.AuthenticationProvider authenticationProvider) Constructor requiring only an AuthenticationProvider- Parameters:
authenticationProvider- the AuthenticationProvider for use in requests.
-
BaseGraphRequestAdapter
public BaseGraphRequestAdapter(@Nonnull com.microsoft.kiota.authentication.AuthenticationProvider authenticationProvider, @Nonnull String baseUrl) Constructor requiring an AuthenticationProvider and a base URL.- Parameters:
authenticationProvider- the AuthenticationProvider for use in requests.baseUrl- the base URL for use in requests.
-
BaseGraphRequestAdapter
public BaseGraphRequestAdapter(@Nonnull com.microsoft.kiota.authentication.AuthenticationProvider authenticationProvider, @Nonnull String baseUrl, @Nonnull okhttp3.OkHttpClient client) Constructor requiring an AuthenticationProvider, base URL, and an OkHttpClient.- Parameters:
authenticationProvider- the AuthenticationProvider for use in requests.baseUrl- the base URL for use in requests.client- the OkHttpClient for use in requests.
-
BaseGraphRequestAdapter
public BaseGraphRequestAdapter(@Nonnull com.microsoft.kiota.authentication.AuthenticationProvider authenticationProvider, @Nonnull String baseUrl, @Nonnull GraphClientOption graphClientOption) Constructor requiring an AuthenticationProvider, base URL, and GraphClientOption.- Parameters:
authenticationProvider- the AuthenticationProvider for use in requests.baseUrl- the base URL for use in requests.graphClientOption- the GraphClientOption for use in requests.
-
BaseGraphRequestAdapter
public BaseGraphRequestAdapter(@Nonnull com.microsoft.kiota.authentication.AuthenticationProvider authenticationProvider, @Nullable BaseGraphRequestAdapter.Clouds cloud, @Nullable String version) Constructor requiring an AuthenticationProvider, optional National Cloud, and optional Version.- Parameters:
authenticationProvider- the AuthenticationProvider for use in requests.cloud- the National Cloud for use in requests.version- the Graph version for use in requests.
-
BaseGraphRequestAdapter
public BaseGraphRequestAdapter(@Nonnull com.microsoft.kiota.authentication.AuthenticationProvider authenticationProvider, @Nullable BaseGraphRequestAdapter.Clouds cloud, @Nullable String version, @Nonnull okhttp3.OkHttpClient client) Constructor requiring an AuthenticationProvider, optional National Cloud, optional Version, and required OkHttpClient.- Parameters:
authenticationProvider- the AuthenticationProvider for use in requests.cloud- the National Cloud for use in requests.version- the Graph version for use in requests.client- the OkHttpClient for use in requests.
-
BaseGraphRequestAdapter
public BaseGraphRequestAdapter(@Nonnull com.microsoft.kiota.authentication.AuthenticationProvider authenticationProvider, @Nullable BaseGraphRequestAdapter.Clouds cloud, @Nullable String version, @Nonnull GraphClientOption graphClientOption) Constructor requiring an AuthenticationProvider, optional National Cloud, optional Version, and required GraphClientOption.- Parameters:
authenticationProvider- the AuthenticationProvider for use in requests.cloud- the National Cloud for use in requests.version- the Graph version for use in requests.graphClientOption- the GraphClientOption for use in requests.
-
-
Method Details