olingo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rare...@apache.org
Subject olingo-odata4 git commit: OLINGO-853: Correcting the encoding of datetime properties correctly to be used in a URI
Date Thu, 21 Jan 2016 22:02:13 GMT
Repository: olingo-odata4
Updated Branches:
  refs/heads/master 03aa1d07d -> 16d238f96


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


Project: http://git-wip-us.apache.org/repos/asf/olingo-odata4/repo
Commit: http://git-wip-us.apache.org/repos/asf/olingo-odata4/commit/16d238f9
Tree: http://git-wip-us.apache.org/repos/asf/olingo-odata4/tree/16d238f9
Diff: http://git-wip-us.apache.org/repos/asf/olingo-odata4/diff/16d238f9

Branch: refs/heads/master
Commit: 16d238f96fa881f587a76d3bc6d00be11c110437
Parents: 03aa1d0
Author: Ramesh Reddy <rareddy@jboss.org>
Authored: Thu Jan 21 16:01:59 2016 -0600
Committer: Ramesh Reddy <rareddy@jboss.org>
Committed: Thu Jan 21 16:01:59 2016 -0600

----------------------------------------------------------------------
 .../apache/olingo/server/core/responses/EntityResponse.java | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/16d238f9/lib/server-core-ext/src/main/java/org/apache/olingo/server/core/responses/EntityResponse.java
----------------------------------------------------------------------
diff --git a/lib/server-core-ext/src/main/java/org/apache/olingo/server/core/responses/EntityResponse.java
b/lib/server-core-ext/src/main/java/org/apache/olingo/server/core/responses/EntityResponse.java
index 5bf86a3..064ad6f 100644
--- a/lib/server-core-ext/src/main/java/org/apache/olingo/server/core/responses/EntityResponse.java
+++ b/lib/server-core-ext/src/main/java/org/apache/olingo/server/core/responses/EntityResponse.java
@@ -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("(");


Mime
View raw message