public class URIFactory extends Object
| Constructor and Description |
|---|
URIFactory() |
URIFactory(boolean allowIllegalCharacters) |
| Modifier and Type | Method and Description |
|---|---|
URI |
create(String uri) |
URI |
createWithoutException(String uri)
Simply calls
create(String), but catches any URISyntaxException and wraps it in an
IllegalArgumentException. |
boolean |
isAllowIllegalCharacters() |
boolean |
isAutoEscapeBackslashes() |
void |
setAllowIllegalCharacters(boolean allowIllegalCharacters) |
void |
setAutoEscapeBackslashes(boolean autoEscapeBackslashes) |
public URIFactory()
public URIFactory(boolean allowIllegalCharacters)
public boolean isAllowIllegalCharacters()
public void setAllowIllegalCharacters(boolean allowIllegalCharacters)
public boolean isAutoEscapeBackslashes()
public void setAutoEscapeBackslashes(boolean autoEscapeBackslashes)
public URI create(String uri) throws URISyntaxException
URISyntaxExceptionpublic URI createWithoutException(String uri)
create(String), but catches any URISyntaxException and wraps it in an
IllegalArgumentException.Copyright © 2021. All Rights Reserved.