org.odata4j.jersey.consumer
Class ODataJerseyConsumers

java.lang.Object
  extended by org.odata4j.jersey.consumer.ODataJerseyConsumers

public class ODataJerseyConsumers
extends Object

A static factory to create ODataJerseyConsumer instances preconfigured for specific services.


Method Summary
static ODataConsumer azureTables(String account, String key)
          Creates a new OData consumer for the Azure Table Storage service.
static ODataConsumer dallas(String serviceRootUri, String accountKey, String uniqueUserId)
          Creates a new OData consumer for the (now obsolete?) "dallas" service.
static ODataConsumer dataMarket(String serviceRootUri, String accountKey)
          Creates a new OData consumer for the Windows Azure DataMarket service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

azureTables

public static ODataConsumer azureTables(String account,
                                        String key)
Creates a new OData consumer for the Azure Table Storage service.

Parameters:
account - azure account key
key - azure secret key
Returns:
a new OData consumer for the Azure Table Storage service
See Also:
[msdn] Table Service API

dallas

public static ODataConsumer dallas(String serviceRootUri,
                                   String accountKey,
                                   String uniqueUserId)
Creates a new OData consumer for the (now obsolete?) "dallas" service.

Parameters:
serviceRootUri - the service uri
accountKey - dallas account key
uniqueUserId - dallas user id
Returns:
a new OData consumer for the (now obsolete?) "dallas" service

dataMarket

public static ODataConsumer dataMarket(String serviceRootUri,
                                       String accountKey)
Creates a new OData consumer for the Windows Azure DataMarket service.

Parameters:
serviceRootUri - the service uri
accountKey - account key for basic authentication
Returns:
a new OData consumer for the Windows Azure DataMarket service


http://odata4j.org