org.odata4j.cxf.consumer
Class ODataCxfConsumer
java.lang.Object
org.odata4j.consumer.AbstractODataConsumer
org.odata4j.cxf.consumer.ODataCxfConsumer
- All Implemented Interfaces:
- ODataConsumer
public class ODataCxfConsumer
- extends AbstractODataConsumer
ODataConsumer
is the client-side interface to an OData service.
Use create(String)
or one of the other static factory methods to connect to an existing OData service.
Methods inherited from class org.odata4j.consumer.AbstractODataConsumer |
callFunction, createEntity, createLink, deleteEntity, deleteEntity, deleteEntity, deleteLink, getEntities, getEntities, getEntities, getEntitiesCount, getEntity, getEntity, getEntity, getEntity, getEntity, getEntity, getEntitySets, getLinks, getMetadata, getServiceRootUri, mergeEntity, mergeEntity, mergeEntity, mergeEntity, updateEntity, updateLink |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
create
public static ODataCxfConsumer create(String serviceRootUri)
- Creates a new consumer for the given OData service uri.
Wrapper for ODataCxfConsumer.newBuilder(serviceRootUri).build()
.
- Parameters:
serviceRootUri
- the service uri e.g. http://services.odata.org/Northwind/Northwind.svc/
- Returns:
- a new OData consumer
getClient
protected ODataClient getClient()
- Specified by:
getClient
in class AbstractODataConsumer
newBuilder
public static ODataCxfConsumer.Builder newBuilder(String serviceRootUri)
- Constructs a new builder for an
ODataCxfConsumer
object.
- Parameters:
serviceRootUri
- the OData service root uri
http://odata4j.org