public final class ODataClientBuilder extends Object
Builder to create an ODataClient for the API client library. This builder is dependent that an according implementation for the ODataClient and or EdmEnabledODataClient is available in class path.
This Builder should only be used in use cases were a direct access to the client-core
library is not possible.
If direct access is possible it is highly recommended to use the
ODataClientFactory
provided in the client-core
library.
By default the ODataClientBuilder use the default Olingo V4 client core implementations
(org.apache.olingo.client.core.ODataClientImpl
and
org.apache.olingo.client.core.EdmEnabledODataClientImpl
) which can be
overwritten via the System properties ODATA_CLIENT_IMPL_SYS_PROPERTY
and ODATA_EMD_CLIENT_IMPL_SYS_PROPERTY
.
Modifier and Type | Class and Description |
---|---|
static class |
ODataClientBuilder.ClientBuilder
Builder class
|
Modifier and Type | Field and Description |
---|---|
static String |
ODATA_CLIENT_IMPL_SYS_PROPERTY |
static String |
ODATA_EMD_CLIENT_IMPL_SYS_PROPERTY |
Modifier and Type | Method and Description |
---|---|
static ODataClient |
createClient()
Create an new ODataClient based on via system property ODATA_CLIENT_IMPL_SYS_PROPERTY
class name or if not net the default ODATA_CLIENT_IMPL_CLASS set class.
|
static ODataClientBuilder.ClientBuilder |
with(String serviceRoot)
Initiate the builder for an EdmEnabledODataClient.
|
public static final String ODATA_CLIENT_IMPL_SYS_PROPERTY
public static final String ODATA_EMD_CLIENT_IMPL_SYS_PROPERTY
public static ODataClient createClient()
public static ODataClientBuilder.ClientBuilder with(String serviceRoot)
serviceRoot
- service root to useCopyright © 2013–2018 The Apache Software Foundation. All rights reserved.