@Beta public final class Uris extends Object
Strings and URIs. Strings can be level 1 RFC6570 form.
ex.
https://api.github.com/repos/{user}
URI.create(String) and result in an IllegalArgumentException.
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.| Modifier and Type | Class and Description |
|---|---|
static class |
Uris.UriBuilder
Mutable URI builder that can be in level 1 RFC6570 template form.
|
| Constructor and Description |
|---|
Uris() |
| Modifier and Type | Method and Description |
|---|---|
static char |
firstChar(CharSequence in) |
static boolean |
isToken(CharSequence right,
char token) |
static char |
lastChar(CharSequence in) |
static boolean |
lastCharIsToken(CharSequence left,
char token) |
static Uris.UriBuilder |
uriBuilder(CharSequence template) |
static Uris.UriBuilder |
uriBuilder(URI uri) |
public static Uris.UriBuilder uriBuilder(CharSequence template)
template - URI string that can be in level 1 RFC6570 form.public static Uris.UriBuilder uriBuilder(URI uri)
in - uripublic static boolean lastCharIsToken(CharSequence left, char token)
public static char lastChar(CharSequence in)
public static char firstChar(CharSequence in)
public static boolean isToken(CharSequence right, char token)
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.