Package org.apache.olingo.client.api
Class ODataClientBuilder.ClientBuilder
java.lang.Object
org.apache.olingo.client.api.ODataClientBuilder.ClientBuilder
- Enclosing class:
- ODataClientBuilder
Builder class
-
Constructor Summary
ConstructorsConstructorDescriptionClientBuilder
(String serviceRoot) Create the builder for an EdmEnabledODataClient. -
Method Summary
Modifier and TypeMethodDescriptionCreate an new EdmEnabledODataClient based on via system property ODATA_EMD_CLIENT_IMPL_SYS_PROPERTY class name or if not net the default ODATA_EDM_CLIENT_IMPL_CLASS set class with before set serviceRoot and optional edm and optinal metadataETag.Set the edm to use for edm enabled clientmetadataETag
(String metadataETag) Set the metadataETag to use for edm enabled client
-
Constructor Details
-
ClientBuilder
Create the builder for an EdmEnabledODataClient.- Parameters:
serviceRoot
- service root to use
-
-
Method Details
-
edm
Set the edm to use for edm enabled client- Parameters:
edm
- edm to use for edm enabled client- Returns:
- current client builder
-
metadataETag
Set the metadataETag to use for edm enabled client- Parameters:
metadataETag
- edm to use for edm enabled client- Returns:
- current client builder
-
createClient
Create an new EdmEnabledODataClient based on via system property ODATA_EMD_CLIENT_IMPL_SYS_PROPERTY class name or if not net the default ODATA_EDM_CLIENT_IMPL_CLASS set class with before set serviceRoot and optional edm and optinal metadataETag.- Returns:
- new created ODataClient
-