OLINGO-853: Correcting the encoding of datetime properties correctly to be used in a URI
This commit is contained in:
parent
03aa1d07d9
commit
16d238f96f
|
@ -175,14 +175,9 @@ public class EntityResponse extends ServiceResponse {
|
||||||
public static String buildLocation(String baseURL, Entity entity, String enitySetName, EdmEntityType type)
|
public static String buildLocation(String baseURL, Entity entity, String enitySetName, EdmEntityType type)
|
||||||
throws EdmPrimitiveTypeException {
|
throws EdmPrimitiveTypeException {
|
||||||
StringBuilder location = new StringBuilder();
|
StringBuilder location = new StringBuilder();
|
||||||
location.append(baseURL).append("/").append(enitySetName);
|
|
||||||
location.append(buildKeySegmentsURI(entity, type));
|
|
||||||
return location.toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
public static String buildKeySegmentsURI(Entity entity, EdmEntityType type)
|
location.append(baseURL).append("/").append(enitySetName);
|
||||||
throws EdmPrimitiveTypeException {
|
|
||||||
StringBuilder location = new StringBuilder();
|
|
||||||
int i = 0;
|
int i = 0;
|
||||||
boolean usename = type.getKeyPredicateNames().size() > 1;
|
boolean usename = type.getKeyPredicateNames().size() > 1;
|
||||||
location.append("(");
|
location.append("(");
|
||||||
|
|
Loading…
Reference in New Issue