ak58588 commented on this pull request.


> -
+   
+   /**
+   * this is the method to parse container name and blob name from the 
HttpRequest. 
+   * applicable for the cases with SAS Authentication 
+   * 
+   */ 
+   public String[] cutUri (URI uri) throws NullPointerException, 
IllegalArgumentException {
+      String path = uri.getPath();
+      String[] result = path.split("/");
+      if (result.length < 2) {
+         throw new IllegalArgumentException();
+      }
+      for (int i = 1; i < result.length; i++){
+         if (result[i] == null) {
+            throw new NullPointerException();

Done!

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/1270#discussion_r255516242

Reply via email to