ak58588 commented on this pull request.
> @@ -110,7 +172,27 @@ HttpRequest replaceDateHeader(HttpRequest request) { request = request.toBuilder().replaceHeaders(Multimaps.forMap(builder.build())).build(); return 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("there is neither ContainerName nor BlobName in the URI path"); + } + for (int i = 1; i < result.length; i++){ + if (result[i] == null) { yes, for the empty string. -- 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_r255884708