public interface URLMap
Modifier and Type | Interface and Description |
---|---|
static class |
URLMap.Result |
Modifier and Type | Method and Description |
---|---|
void |
addEntry(String urlprefix,
String fileprefix)
Add an entry into the map.
|
URLMap.Result |
mapPath(String path)
Inverse of mapURL; returns a url path and suffix: U,S
such that mapURL(U)+S = path
Return a Pair specifying:
1.
|
URLMap.Result |
mapURL(String urlpath)
Use some maximal prefix of the url path
to locate the associated file path prefix.
|
URLMap.Result mapURL(String urlpath) throws DapException
urlpath
- a string specifying the url path to be mappedDapException
- if the map fails
Note that this map does not deal with the whole url, only the path part
because as a rule, the host+port is unknown at the time the map is built
and also because there might be multiple hosts using the same map.URLMap.Result mapPath(String path) throws DapException
path
- a string specifying the file path to be mappedDapException
- if the map fails
This is an optional operation and if not supported,
throw UnsupportedOperationException.void addEntry(String urlprefix, String fileprefix) throws DapException
urlprefix
- fileprefix
- DapException
Copyright © 1999–2018 UCAR/Unidata. All rights reserved.