public class VariantODataIdQuery extends Object implements Variant
It's focused on OData v2
Example of query having a single unnamed id:
http://services.odata.org/OData/OData.svc/Category(1)/Products?$top=2&$orderby=name
Example of query having a composite (named) id:
http://services.odata.org/OData/OData.svc/DisplayItem(key1=2L,key2='B0EB1CA')
Reference:
http://www.odata.org/documentation/uri-conventions
Modifier and Type | Field and Description |
---|---|
static String |
RESOURCE_ID_PREFIX
In order to identify the unnamed id we add this prefix to the resource name *
|
Constructor and Description |
---|
VariantODataIdQuery() |
Modifier and Type | Method and Description |
---|---|
Vector<NameValuePair> |
getParamList()
Gets the list of parameters handled by this variant.
|
String |
setEscapedParameter(HttpMessage msg,
NameValuePair originalPair,
String param,
String value) |
void |
setMessage(HttpMessage msg) |
String |
setParameter(HttpMessage msg,
NameValuePair originalPair,
String param,
String value) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLeafName, getTreePath, setParameters
public static final String RESOURCE_ID_PREFIX
public void setMessage(HttpMessage msg)
setMessage
in interface Variant
public Vector<NameValuePair> getParamList()
Variant
getParamList
in interface Variant
List
containing the parameterspublic String setParameter(HttpMessage msg, NameValuePair originalPair, String param, String value)
setParameter
in interface Variant
public String setEscapedParameter(HttpMessage msg, NameValuePair originalPair, String param, String value)
setEscapedParameter
in interface Variant