Package com.microsoft.kiota
Class ApiClientBuilder
java.lang.Object
com.microsoft.kiota.ApiClientBuilder
Provides a builder for creating an ApiClient and register the default serializers/deserializers.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ParseNodeFactoryEnables the backing store on default parse node factories and the given parse node factory.static SerializationWriterFactoryEnables the backing store on default serialization writers and the given serialization writer.static voidregisterDefaultDeserializer(Supplier<ParseNodeFactory> factorySupplier) Registers the default deserializer to the registry.static voidregisterDefaultSerializer(Supplier<SerializationWriterFactory> factorySupplier) Registers the default serializer to the registry.
-
Method Details
-
registerDefaultSerializer
public static void registerDefaultSerializer(@Nonnull Supplier<SerializationWriterFactory> factorySupplier) Registers the default serializer to the registry.- Parameters:
factorySupplier- the supplier of the factory to be registered.
-
registerDefaultDeserializer
Registers the default deserializer to the registry.- Parameters:
factorySupplier- the supplier of the factory to be registered.
-
enableBackingStoreForSerializationWriterFactory
@Nonnull public static SerializationWriterFactory enableBackingStoreForSerializationWriterFactory(@Nonnull SerializationWriterFactory original) Enables the backing store on default serialization writers and the given serialization writer.- Parameters:
original- The serialization writer to enable the backing store on.- Returns:
- A new serialization writer with the backing store enabled.
-
enableBackingStoreForParseNodeFactory
@Nonnull public static ParseNodeFactory enableBackingStoreForParseNodeFactory(@Nonnull ParseNodeFactory original) Enables the backing store on default parse node factories and the given parse node factory.- Parameters:
original- The parse node factory to enable the backing store on.- Returns:
- A new parse node factory with the backing store enabled.
-