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)
|
||||
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("(");
|
||||
|
|
Loading…
Reference in New Issue