public class XURI
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
XURI.Parts |
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
baseprotocol |
protected java.lang.String |
frag |
protected java.lang.String |
host |
protected boolean |
isfile |
protected java.lang.String |
originaluri |
protected java.lang.String |
path |
protected java.util.List<java.lang.String> |
protocols |
protected java.lang.String |
query |
protected java.lang.String |
trueurl |
protected java.net.URI |
url |
static java.util.EnumSet<XURI.Parts> |
URLALL |
static java.util.EnumSet<XURI.Parts> |
URLONLY |
protected java.lang.String |
userinfo |
Constructor and Description |
---|
XURI(java.lang.String path) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
assemble(java.util.EnumSet<XURI.Parts> parts)
Reassemble the url using the specified parts
|
static java.lang.String |
canonical(java.lang.String s)
Canonicalize a part of a URL
|
java.lang.String |
getBaseProtocol() |
java.util.Map<java.lang.String,java.lang.String> |
getFields() |
java.lang.String |
getFrag() |
java.lang.String |
getHost() |
java.lang.String |
getLeadProtocol() |
java.lang.String |
getOriginal() |
java.util.Map<java.lang.String,java.lang.String> |
getParameters() |
java.lang.String |
getPath() |
java.util.List<java.lang.String> |
getProtocols() |
java.lang.String |
getQuery() |
java.lang.String |
getUserinfo() |
boolean |
isFile() |
void |
setBaseProtocol(java.lang.String base) |
java.lang.String |
toString() |
public static final java.util.EnumSet<XURI.Parts> URLONLY
public static final java.util.EnumSet<XURI.Parts> URLALL
protected java.lang.String originaluri
protected java.util.List<java.lang.String> protocols
protected java.lang.String trueurl
protected java.net.URI url
protected boolean isfile
protected java.lang.String baseprotocol
protected java.lang.String userinfo
protected java.lang.String host
protected java.lang.String path
protected java.lang.String query
protected java.lang.String frag
public XURI(java.lang.String path) throws java.net.URISyntaxException
java.net.URISyntaxException
public java.lang.String getOriginal()
public java.util.List<java.lang.String> getProtocols()
public java.lang.String getLeadProtocol()
public java.lang.String getBaseProtocol()
public void setBaseProtocol(java.lang.String base)
public boolean isFile()
public java.lang.String getUserinfo()
public java.lang.String getHost()
public java.lang.String getPath()
public java.lang.String getQuery()
public java.lang.String getFrag()
public java.util.Map<java.lang.String,java.lang.String> getFields()
public java.util.Map<java.lang.String,java.lang.String> getParameters()
public java.lang.String assemble(java.util.EnumSet<XURI.Parts> parts)
parts
- to includepublic static java.lang.String canonical(java.lang.String s)
s
- part of the urlpublic java.lang.String toString()
toString
in class java.lang.Object