public class KUrl extends Object implements Serializable
| Constructor and Description |
|---|
KUrl(String url) |
KUrl(String[] elements) |
KUrl(String protocol,
String[] elements) |
| Modifier and Type | Method and Description |
|---|---|
KUrl |
concat(KUrl url) |
KUrl |
concat(String url) |
boolean |
equals(Object obj) |
boolean |
equalsIgnoreProtocol(Object obj) |
String |
getDomain() |
String[] |
getElements() |
String |
getExtension() |
String |
getFileNameNoExtension() |
String |
getName() |
KUrl |
getParentURL() |
String |
getProtocol() |
int |
hashCode() |
boolean |
isRelative() |
String |
mangled() |
String |
mangled(boolean allowFileSep) |
protected void |
normalize() |
protected String |
normalizeDomain(String s)
removes 'www' in case and removes country code.
|
KUrl |
prepend(String name) |
boolean |
startsWith(KUrl base) |
static String |
stripDoubleSeps(String url) |
String |
toString() |
String |
toUrlString() |
String |
toUrlString(boolean withProtocol) |
KUrl |
unified()
removes www, protocol and country
|
protected void normalize()
public String getProtocol()
public String[] getElements()
public String getExtension()
public String getFileNameNoExtension()
public String toUrlString()
public String mangled()
public String mangled(boolean allowFileSep)
public String toUrlString(boolean withProtocol)
public KUrl getParentURL()
public String getName()
public boolean equalsIgnoreProtocol(Object obj)
public boolean isRelative()
public boolean startsWith(KUrl base)
public KUrl unified()
protected String normalizeDomain(String s)
s - public String getDomain()
Copyright © 2015. All rights reserved.