public class UriUtils extends Object
Constructor and Description |
---|
UriUtils() |
Modifier and Type | Method and Description |
---|---|
static URI |
create(String s)
Create a URI from a String, with proper quoting.
|
static URI |
quote(String s)
Create a URI from a string, with proper quoting.
|
static URI |
quote(URL u)
Create a URI from a URL, with proper quoting.
|
public static URI quote(String s) throws URISyntaxException
s
- the string to quoteURISyntaxException
- passthrupublic static URI quote(URL u) throws URISyntaxException
u
- the input URLURISyntaxException
- passthruCopyright © 2006–2017 The Apache Software Foundation. All rights reserved.