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