Package org.jclouds.http
Class Uris
- java.lang.Object
-
- org.jclouds.http.Uris
-
@Beta public final class Uris extends Object
Functions onStrings andURIs. Strings can be level 1 RFC6570 form. ex.https://api.github.com/repos/{user}Reminder
Unresolved RFC6570 templates are not supported byURI.create(String)and result in anIllegalArgumentException.Limitations
In order to reduce complexity not needed in jclouds, this doesn't supportURI.getUserInfo(),URI.getFragment(), ormatrixparams. 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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUris.UriBuilderMutable URI builder that can be in level 1 RFC6570 template form.
-
Constructor Summary
Constructors Constructor Description Uris()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static charfirstChar(CharSequence in)static booleanisToken(CharSequence right, char token)static charlastChar(CharSequence in)static booleanlastCharIsToken(CharSequence left, char token)static Uris.UriBuilderuriBuilder(CharSequence template)static Uris.UriBuilderuriBuilder(URI uri)
-
-
-
Method Detail
-
uriBuilder
public static Uris.UriBuilder uriBuilder(CharSequence template)
- Parameters:
template- URI string that can be in level 1 RFC6570 form.
-
uriBuilder
public static Uris.UriBuilder uriBuilder(URI uri)
- Parameters:
in- uri
-
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)
-
-