| java.lang.Object |
| ↳ |
org.odata4j.consumer.behaviors.OClientBehaviors |
Class Overview
A static factory to create built-in OClientBehavior instances.
Summary
| Public Methods |
|
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.
|
|
[Expand]
Inherited Methods |
From class
java.lang.Object
|
Object
|
clone()
|
|
boolean
|
equals(Object arg0)
|
|
void
|
finalize()
|
|
final
Class<?>
|
getClass()
|
|
int
|
hashCode()
|
|
final
void
|
notify()
|
|
final
void
|
notifyAll()
|
|
String
|
toString()
|
|
final
void
|
wait()
|
|
final
void
|
wait(long arg0, int arg1)
|
|
final
void
|
wait(long arg0)
|
|
Public Methods
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
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
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
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