Package org.jclouds.http
Class Uris
java.lang.Object
org.jclouds.http.Uris
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 byURI.create(String) and result in an IllegalArgumentException.
Limitations
In order to reduce complexity not needed in jclouds, this doesn't supportURI.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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classMutable URI builder that can be in level 1 RFC6570 template form. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic charstatic 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)
-
Constructor Details
-
Uris
public Uris()
-
-
Method Details
-
uriBuilder
- Parameters:
template- URI string that can be in level 1 RFC6570 form.
-
uriBuilder
- Parameters:
in- uri
-
lastCharIsToken
-
lastChar
-
firstChar
-
isToken
-