Class Uris


  • @Beta
    public final class Uris
    extends Object
    Functions on Strings and URIs. Strings can be level 1 RFC6570 form. ex.
      https://api.github.com/repos/{user}
     

    Reminder

    Unresolved RFC6570 templates are not supported by URI.create(String) and result in an IllegalArgumentException.

    Limitations

    In order to reduce complexity not needed in jclouds, this doesn't support URI.getUserInfo(), URI.getFragment(), or matrix params. Matrix params can be achieved via adding ; refs in the http path directly. Moreover, since jclouds only uses level 1 templates, this doesn't support the additional forms noted in the RFC.
    Since:
    1.6
    • Constructor Detail

      • Uris

        public Uris()
    • Method Detail

      • lastCharIsToken

        public static boolean lastCharIsToken​(CharSequence left,
                                              char token)
      • lastChar

        public static char lastChar​(CharSequence in)
      • firstChar

        public static char firstChar​(CharSequence in)
      • isToken

        public static boolean isToken​(CharSequence right,
                                      char token)