You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@olingo.apache.org by mi...@apache.org on 2016/01/25 21:31:26 UTC

[46/51] [abbrv] olingo-odata4 git commit: OLINGO-853: Correcting the encoding of datetime properties correctly to be used in a URI

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/OLINGO-832_StreamSerializerPoC
Commit: 16d238f96fa881f587a76d3bc6d00be11c110437
Parents: 03aa1d0
Author: Ramesh Reddy <ra...@jboss.org>
Authored: Thu Jan 21 16:01:59 2016 -0600
Committer: Ramesh Reddy <ra...@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("(");