|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthu.midori.kosmos.server.util.UrlUtils
public class UrlUtils
Utility methods for manipulating complicated URLs.
Constructor Summary | |
---|---|
UrlUtils()
|
Method Summary | |
---|---|
static java.lang.String |
getBaseUrl(java.lang.String url)
Returns the "base part" (the part that doesn't contain the path and query parts) of the given URL. |
static java.lang.String |
parseAdditionalItemFromUrl(java.lang.String url)
TODO |
static java.lang.String[] |
parseUserInfoFromUrl(java.lang.String url)
Returns a two-element array with the username and password from the given URL, or null if those are not specified in the URL. |
static java.lang.String |
removeUserInfoFromUrl(java.lang.String url)
Removes the userinfo part from the given URL. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UrlUtils()
Method Detail |
---|
public static java.lang.String getBaseUrl(java.lang.String url) throws java.net.MalformedURLException
java.net.MalformedURLException
public static java.lang.String removeUserInfoFromUrl(java.lang.String url) throws java.net.MalformedURLException
java.net.MalformedURLException
public static java.lang.String[] parseUserInfoFromUrl(java.lang.String url) throws java.net.MalformedURLException
null
if those are not specified in the URL.
java.net.MalformedURLException
public static java.lang.String parseAdditionalItemFromUrl(java.lang.String url)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |