org.odata4j.core
Class OClientBehaviors

java.lang.Object
  extended by org.odata4j.core.OClientBehaviors

public class OClientBehaviors
extends Object

A static factory to create built-in OClientBehavior instances.


Method Summary
static OClientBehavior allowSelfSignedCerts()
          Creates a behavior that allows for https services with self-signed certificates.
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

allowSelfSignedCerts

public static OClientBehavior allowSelfSignedCerts()
Creates a behavior that allows for https services with self-signed certificates.

Returns:
a behavior that allows for https services with self-signed certificates

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


http://odata4j.org