> +import org.jclouds.http.HttpRequest;
> +import org.jclouds.http.HttpRequestFilter;
> +
> +/**
> + * Encodes "." as %2e when getting a user with restricted hostname
> + * 
> + * @author Zack Shoylev
> + * 
> + */
> +@Singleton
> +public class EncodeDotsForUserGet implements HttpRequestFilter {
> +   
> +   @Override
> +   public HttpRequest filter(HttpRequest request) throws HttpException {
> +      String endpoint = request.getEndpoint().toString();
> +      Pattern pattern = Pattern.compile("/[^/]*$"); // From last / to the 
> end of the line

Extract as a constant?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-openstack/pull/14/files#r5095965

Reply via email to