Skip to content

Commit

Permalink
Address the code review feedback.
Browse files Browse the repository at this point in the history
  • Loading branch information
Albert Cheng committed Oct 16, 2012
1 parent 6de7de5 commit 00bb3a6
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ public ClientResponse handle(ClientRequest request) throws ClientHandlerExceptio
}

URI originalURI = request.getURI();
String queryString = originalURI.getQuery();
request.setURI(locationManager.getRedirectedURI(originalURI));

ClientResponse response = getNext().handle(request);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

import java.net.URI;
import java.net.URISyntaxException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;

Expand All @@ -42,10 +41,7 @@ public URI getRedirectedURI(URI originalURI) {
String queryString = originalURI.getQuery();

if (queryString != null && !queryString.isEmpty()) {
Map<String, String> queryParams = parseQueryString(queryString);
for (String key : new ArrayList<String>(queryParams.keySet())) {
uriBuilder.queryParam(key, queryParams.get(key));
}
uriBuilder.replaceQuery(queryString);
}
return uriBuilder.build();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
* Options class for listing access policies
* No options available at this time.
*/
public class ListAccessPolicyOptions {
public class ListAccessPolicyOptions extends ListOptions {

}
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
/**
* The Class ListLocatorsOptions.
*/
public class ListLocatorsOptions {
public class ListLocatorsOptions extends ListOptions {

}

0 comments on commit 00bb3a6

Please sign in to comment.