OLINGO-853: Correcting the encoding of datetime properties correctly to be used in a URI

This commit is contained in:
Ramesh Reddy 2016-01-21 16:01:59 -06:00
parent 03aa1d07d9
commit 16d238f96f
1 changed files with 2 additions and 7 deletions

View File

@ -175,14 +175,9 @@ public class EntityResponse extends ServiceResponse {
public static String buildLocation(String baseURL, Entity entity, String enitySetName, EdmEntityType type)
throws EdmPrimitiveTypeException {
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)
throws EdmPrimitiveTypeException {
StringBuilder location = new StringBuilder();
location.append(baseURL).append("/").append(enitySetName);
int i = 0;
boolean usename = type.getKeyPredicateNames().size() > 1;
location.append("(");