org.odata4j.jersey.consumer
Class ODataJerseyConsumer

java.lang.Object
  extended by org.odata4j.consumer.AbstractODataConsumer
      extended by org.odata4j.jersey.consumer.ODataJerseyConsumer
All Implemented Interfaces:
ODataConsumer

public class ODataJerseyConsumer
extends AbstractODataConsumer

OData consumer based on Jersey.


Nested Class Summary
static class ODataJerseyConsumer.Builder
          Builder for ODataJerseyConsumer objects.
 
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 ODataJerseyConsumer create(String serviceRootUri)
          Creates a new consumer for the given OData service uri.
protected  ODataClient getClient()
           
static ODataJerseyConsumer.Builder newBuilder(String serviceRootUri)
          Constructs a new builder for an ODataJerseyConsumer 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 ODataJerseyConsumer create(String serviceRootUri)
Creates a new consumer for the given OData service uri.

Wrapper for ODataJerseyConsumer.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 ODataJerseyConsumer.Builder newBuilder(String serviceRootUri)
Constructs a new builder for an ODataJerseyConsumer object.

Parameters:
serviceRootUri - the OData service root uri


http://odata4j.org