|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.odata4j.consumer.ODataClientRequest
public class ODataClientRequest
Generic OData http request builder used by the low-level ODataClient api.
Also interesting for developers of custom OClientBehavior implementations.
ODataClient| Constructor Summary | |
|---|---|
ODataClientRequest(String method,
String url,
Map<String,String> headers,
Map<String,String> queryParams,
Object payload)
|
|
| Method Summary | |
|---|---|
static ODataClientRequest |
delete(String url)
Creates a new DELETE request. |
static ODataClientRequest |
get(String url)
Creates a new GET request. |
Map<String,String> |
getHeaders()
Gets the request http headers. |
String |
getMethod()
Gets the request http method. |
Object |
getPayload()
Gets the normalized OData payload. |
Map<String,String> |
getQueryParams()
Gets the request query parameters. |
String |
getUrl()
Gets the request url. |
ODataClientRequest |
header(String name,
String value)
Sets an http request header. |
static ODataClientRequest |
merge(String url,
Entry entry)
Creates a new MERGE request. |
static ODataClientRequest |
merge(String url,
SingleLink link)
Creates a new MERGE request. |
ODataClientRequest |
method(String method)
Sets the http request method. |
static ODataClientRequest |
post(String url,
Entry entry)
Creates a new POST request. |
static ODataClientRequest |
post(String url,
SingleLink link)
Creates a new POST request. |
static ODataClientRequest |
put(String url,
Entry entry)
Creates a new PUT request. |
static ODataClientRequest |
put(String url,
SingleLink link)
Creates a new PUT request. |
ODataClientRequest |
queryParam(String name,
String value)
Sets a request query parameter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ODataClientRequest(String method,
String url,
Map<String,String> headers,
Map<String,String> queryParams,
Object payload)
| Method Detail |
|---|
public static ODataClientRequest delete(String url)
url - the request url
public static ODataClientRequest get(String url)
url - the request url
public Map<String,String> getHeaders()
public String getMethod()
public Object getPayload()
public Map<String,String> getQueryParams()
public String getUrl()
public ODataClientRequest header(String name,
String value)
name - the header namevalue - the header value
public static ODataClientRequest merge(String url,
Entry entry)
url - the request urlentry - the normalized OData payload
public static ODataClientRequest merge(String url,
SingleLink link)
url - the request urllink - the link
public ODataClientRequest method(String method)
method - the method
public static ODataClientRequest post(String url,
Entry entry)
url - the request urlentry - the normalized OData payload
public static ODataClientRequest post(String url,
SingleLink link)
url - the request urllink - the link
public static ODataClientRequest put(String url,
Entry entry)
url - the request urlentry - the normalized OData payload
public static ODataClientRequest put(String url,
SingleLink link)
url - the request urllink - the link
public ODataClientRequest queryParam(String name,
String value)
name - the query parameter namevalue - the query parameter value
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||