org.odata4j.cxf.consumer
Class ODataCxfConsumer

java.lang.Object
  extended by org.odata4j.consumer.AbstractODataConsumer
      extended by 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.


Nested Class Summary
static class ODataCxfConsumer.Builder
           
 
Nested classes/interfaces inherited from interface org.odata4j.consumer.ODataConsumer
ODataConsumer.Dump
 
Field Summary
 
Fields inherited from interface org.odata4j.consumer.ODataConsumer
dump
 
Method Summary
static ODataCxfConsumer create(String serviceRootUri)
          Creates a new consumer for the given OData service uri.
protected  ODataClient getClient()
           
static ODataCxfConsumer.Builder newBuilder(String serviceRootUri)
          Constructs a new builder for an ODataCxfConsumer object.
 
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
 

Method Detail

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