public final class UrlUtils extends Object
Modifier and Type | Method and Description |
---|---|
String |
capitalize(String string)
Changes the first character to uppercase.
|
String |
cleanURL(String url)
Removes the query string and the extension of a REST URL.
|
String |
getExtension(String url)
Gets the extension used in the URL, if any.
|
static UrlUtils |
getInstance()
Returns the unique instance of this class.
|
Boolean |
isIdentifier(String string)
Checks if an element of the URL is an identifier.
|
String |
removeQueryString(String string)
Removes every character after '?'.
|
String |
singularize(String noun)
Gets the singular of a plural.
|
public static UrlUtils getInstance()
public String removeQueryString(String string)
string
- String.public String cleanURL(String url)
url
- URL to clean.public String capitalize(String string)
string
- String.public Boolean isIdentifier(String string)
public String singularize(String noun)
noun
- Name.Copyright © 2012 ElPaso Software. All Rights Reserved.