org.odata4j.consumer
Class ODataConsumers
java.lang.Object
org.odata4j.consumer.ODataConsumers
public class ODataConsumers
- extends Object
ODataConsumer
is the client-side interface to an OData service.
Use create(String)
or newBuilder(String)
to connect to an existing OData service.
If found, the Jersey implementation of ODataConsumer
is used by default. Otherwise
the CXF implementation is loaded. If specified the odata4j.consumerimpl
system property
overrules this default behavior. Its value can be either one of the predefined constants jersey
and cxf
or any other concrete full class name, e.g. foo.bar.OtherConsumer
. By convention, foo.bar.OtherConsumer
must implement a factory
method public static ODataConsumer.Builder newBuilder(String serviceRootUri)
.
- See Also:
ODataConsumer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CONSUMERIMPL_PROPERTY
public static final String CONSUMERIMPL_PROPERTY
- See Also:
- Constant Field Values
CXF_CONSUMER_CLASSNAME
public static final String CXF_CONSUMER_CLASSNAME
- See Also:
- Constant Field Values
CXF_CONSUMERIMPL
public static final String CXF_CONSUMERIMPL
- See Also:
- Constant Field Values
JERSEY_CONSUMER_CLASSNAME
public static final String JERSEY_CONSUMER_CLASSNAME
- See Also:
- Constant Field Values
JERSEY_CONSUMERIMPL
public static final String JERSEY_CONSUMERIMPL
- See Also:
- Constant Field Values
ODataConsumers
public ODataConsumers()
create
public static ODataConsumer create(String serviceRootUri)
- Creates a new
ODataConsumer
for the given OData service root uri.
Wrapper for ODataConsumers.newBuilder(serviceRootUri).build()
.
- Parameters:
serviceRootUri
- the OData service root uri
- Returns:
- a new OData consumer
newBuilder
public static ODataConsumer.Builder newBuilder(String serviceRootUri)
- Constructs a new builder for an
ODataConsumer
object.
- Parameters:
serviceRootUri
- the OData service root uri
http://odata4j.org