public class XURI extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
XURI.Parts |
| Modifier and Type | Field and Description |
|---|---|
protected String |
baseprotocol |
protected String |
formatprotocol |
protected String |
frag |
protected Map<String,String> |
fragfields |
protected String |
host |
protected boolean |
isfile |
protected String |
originaluri |
protected String |
path |
protected String |
query |
protected Map<String,String> |
queryfields |
static EnumSet<XURI.Parts> |
URLALL |
static EnumSet<XURI.Parts> |
URLBASE |
static EnumSet<XURI.Parts> |
URLONLY |
static EnumSet<XURI.Parts> |
URLPATH |
protected String |
userinfo |
| Modifier and Type | Method and Description |
|---|---|
String |
assemble(EnumSet<XURI.Parts> parts)
Reassemble the url using the specified parts
|
static String |
canonical(String s)
Canonicalize a part of a URL
|
String |
getBaseProtocol() |
String |
getFormatProtocol() |
String |
getFrag() |
Map<String,String> |
getFragFields() |
String |
getHost() |
String |
getOriginal() |
String |
getPath() |
String |
getQuery() |
Map<String,String> |
getQueryFields() |
String |
getUserinfo() |
boolean |
isFile() |
protected void |
parsefile(String remainder) |
XURI |
parseFragment(String f) |
protected void |
parsenonfile(String remainder) |
XURI |
parseQuery(String q) |
void |
setBaseProtocol(String base) |
String |
toString() |
public static final EnumSet<XURI.Parts> URLONLY
public static final EnumSet<XURI.Parts> URLALL
public static final EnumSet<XURI.Parts> URLBASE
public static final EnumSet<XURI.Parts> URLPATH
protected String originaluri
protected boolean isfile
protected String baseprotocol
protected String formatprotocol
protected String userinfo
protected String host
protected String path
protected String query
protected String frag
public XURI(String xurl) throws URISyntaxException
URISyntaxExceptionprotected void parsenonfile(String remainder) throws URISyntaxException
URISyntaxExceptionprotected void parsefile(String remainder)
public String getOriginal()
public String getBaseProtocol()
public String getFormatProtocol()
public void setBaseProtocol(String base)
public boolean isFile()
public String getUserinfo()
public String getHost()
public String getPath()
public String getQuery()
public String getFrag()
public String assemble(EnumSet<XURI.Parts> parts)
parts - to includepublic static String canonical(String s)
s - part of the url