|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.edg.data.util.naming.URIFactory
Create SURLs
Constructor Summary | |
protected |
URIFactory()
we never construct one of these |
Method Summary | |
static java.net.URI |
make(java.lang.String uri)
|
static java.net.URI |
makeFileURI(java.lang.String path)
given a path on disk, make a file URI from it. |
static java.net.URI |
makeGuid(java.lang.String guid)
|
static java.net.URI |
makeHostURI(java.lang.String hostname)
|
static java.net.URI |
makeLfn(java.lang.String lfn)
|
static java.net.URI |
makeLogical(java.lang.String uri)
|
static java.net.URI |
makePhysical(java.lang.String uri)
|
static java.net.URI |
makeSfn(java.lang.String hostname,
java.lang.String path)
Create a new SFN Surl, provided with a hostname, and a path on that host. |
static java.net.URI |
makeSurl(java.lang.String hostname)
Create a new Surl, provided with only a hostname. |
static java.net.URI |
makeSurl(java.lang.String hostname,
int port,
java.lang.String path)
Create a new Surl, provided with a hostname, port and a path on that host. |
static java.net.URI |
makeSurl(java.lang.String hostname,
java.lang.String path)
Create a new Surl, provided with a hostname, and a path on that host. |
static java.net.URI |
makeTurl(java.lang.String turl)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected URIFactory()
Method Detail |
public static java.net.URI make(java.lang.String uri) throws java.net.URISyntaxException
java.net.URISyntaxException
public static java.net.URI makePhysical(java.lang.String uri) throws java.net.URISyntaxException
java.net.URISyntaxException
public static java.net.URI makeLogical(java.lang.String uri) throws java.net.URISyntaxException
java.net.URISyntaxException
public static java.net.URI makeLfn(java.lang.String lfn) throws java.net.URISyntaxException
java.net.URISyntaxException
public static java.net.URI makeGuid(java.lang.String guid) throws java.net.URISyntaxException
java.net.URISyntaxException
public static java.net.URI makeSfn(java.lang.String hostname, java.lang.String path) throws java.net.URISyntaxException
null
. The path may be
null
. If it is not null
, it must be an
absolute path, i.e. should start with a leading '/'
.
hostname
- the hostpath
- the path on the host.
java.net.URISyntaxException
- if the hostname was null
, or
an invalid hostname or the path does not begin with a leading slashpublic static java.net.URI makeSurl(java.lang.String hostname) throws java.net.URISyntaxException
null
.
hostname
- the host
java.net.URISyntaxException
- if the hostname was null
, or
an invalid hostnamepublic static java.net.URI makeSurl(java.lang.String hostname, java.lang.String path) throws java.net.URISyntaxException
null
. The path may be
null
. If it is not null
, it must be an
absolute path, i.e. should start with a leading '/'
.
hostname
- the hostpath
- the path on the host.
java.net.URISyntaxException
- if the hostname was null
, or
an invalid hostname or the path does not begin with a leading slashpublic static java.net.URI makeSurl(java.lang.String hostname, int port, java.lang.String path) throws java.net.URISyntaxException
null
. The path may be
null
. If it is not null
, it must be an
absolute path, i.e. should start with a leading '/'
.
hostname
- the hostport
- path
- the path on the host.
java.net.URISyntaxException
- if the hostname was null
, or
an invalid hostname or the path does not begin with a leading slashpublic static java.net.URI makeFileURI(java.lang.String path) throws java.net.URISyntaxException
null
if
path
is null
.
path
- the path
java.net.URISyntaxException
public static java.net.URI makeHostURI(java.lang.String hostname) throws java.net.URISyntaxException
java.net.URISyntaxException
public static java.net.URI makeTurl(java.lang.String turl) throws java.net.URISyntaxException
java.net.URISyntaxException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |