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 |
frag |
protected String |
host |
protected boolean |
isfile |
protected String |
originaluri |
protected String |
path |
protected List<String> |
protocols |
protected String |
query |
protected String |
trueurl |
protected URI |
url |
static EnumSet<XURI.Parts> |
URLALL |
static EnumSet<XURI.Parts> |
URLONLY |
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() |
Map<String,String> |
getFields() |
String |
getFrag() |
String |
getHost() |
String |
getLeadProtocol() |
String |
getOriginal() |
Map<String,String> |
getParameters() |
String |
getPath() |
List<String> |
getProtocols() |
String |
getQuery() |
String |
getUserinfo() |
boolean |
isFile() |
void |
setBaseProtocol(String base) |
String |
toString() |
public static final EnumSet<XURI.Parts> URLONLY
public static final EnumSet<XURI.Parts> URLALL
protected String originaluri
protected String trueurl
protected URI url
protected boolean isfile
protected String baseprotocol
protected String userinfo
protected String host
protected String path
protected String query
protected String frag
public XURI(String path) throws URISyntaxException
URISyntaxException
public String getOriginal()
public String getLeadProtocol()
public String getBaseProtocol()
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 urlCopyright © 1999–2015 UCAR/Unidata. All rights reserved.