The files are reformatted in order to suit the requirements of coveo maven fmt plug-in of v.2.5.1
Signed-off-by: Victor Rubezhny <vrubezhny@redhat.com>
* CHE-8557: No Dto available for FormattingOptions
The Dto isn't needed for FormattingOptions as it is really a specialized
Map and the types that contain a FormattingOptions field handle
the field as a Map during JSON serialize/deserialize
Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
* CHE-8557: Test cases for Either deserializing
Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
* CHE-8557: Fix Either handling when deserializing on the server
Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
* CHE-8557: Use actual type for Map conversions
The is necessary to ensure handling types which are of type Map are
still instantiated in their real type. Consider
DocumentFormattingParams.setOptions() which takes a FormattingOptions
class.
Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
* CHE-8557: Register LSP4J's Either adapter factory
This is effectively a follow up CHE-3103 which uses Gson directly
to serialize/deserialize Json. To support LSP4J's Either types,
the either type adapter factory is needed.
Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
* load EitherTypeAdapterFactory for registration
Signed-off-by: Valeriy Svydenko <vsvydenk@redhat.com>
* Streaming approach for DTO serialization
* use Reader/Writer directly in DtoFactory, do not create full JSON texts
* read/write DTOs using direct streaming methods instead of building trees
* configure Gson type adapters instead of generating tree building code
Signed-off-by: Tareq Sharafy <tareq.sha@gmail.com>
* add missing javadoc
* DefaultHttpJsonRequest extensibility
make it easier to extend and allow mocking in any unit test
* Make package-protected c'tors and methods protected
* Make the HTTP method GET by default
Signed-off-by: Tareq Sharafy <tareq.sha@gmail.com>
* Allow creating a DTO from JsonElement directly
avoid an unnecessary double serialization if a JsonElement is available
and a DTO needs to be created from it.
Signed-off-by: Tareq Sharafy <tareq.sha@gmail.com>
* Add a converter for java.nio.Path
Signed-off-by: Tareq Sharafy <tareq.sha@gmail.com>