org.odata4j.consumer.behaviors
Class OClientBehaviors

java.lang.Object
  extended by org.odata4j.consumer.behaviors.OClientBehaviors

public class OClientBehaviors
extends Object

A static factory to create built-in OClientBehavior instances.


Method Summary
static OClientBehavior azureTables(String account, String key)
          Creates a behavior that signs requests properly for the Azure Table Storage service.
static OClientBehavior basicAuth(String user, String password)
          Creates a behavior that does http basic authentication.
static OClientBehavior methodTunneling(String... methodsToTunnel)
          Creates a behavior that tunnels specific http request methods through POST.
static OClientBehavior rateLimit(long millis)
          Creates a behavior that sleeps a specified amount of time before each client request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

azureTables

public static OClientBehavior azureTables(String account,
                                          String key)
Creates a behavior that signs requests properly for the Azure Table Storage service.

Parameters:
account - azure account key
key - azure secret key
Returns:
a behavior that signs requests properly for the Azure Table Storage service

basicAuth

public static OClientBehavior basicAuth(String user,
                                        String password)
Creates a behavior that does http basic authentication.

Parameters:
user - the basic auth user
password - the basic auth password
Returns:
a behavior that does http basic authentication

methodTunneling

public static OClientBehavior methodTunneling(String... methodsToTunnel)
Creates a behavior that tunnels specific http request methods through POST.

Parameters:
methodsToTunnel - the methods to tunnel. e.g. MERGE
Returns:
a behavior that tunnels specific http request methods through POST

rateLimit

public static OClientBehavior rateLimit(long millis)
Creates a behavior that sleeps a specified amount of time before each client request.

Parameters:
millis - the time to sleep in milliseconds
Returns:
a behavior that sleeps a specified amount of time before each client request


http://odata4j.org