Method Summary |
|
final public static boolean | isFile(URL url) |
public static boolean | isGraphic(URL url) |
final public static boolean | isJDBC(URL url) |
public static boolean | isMemory(URL url) |
final public static boolean | isWFS(URL url) |
public static boolean | isWMS(URL url) |
final public static String | labelResource(URL url) Aquire "resource " similar to "data/a.shp" from url.
According to the followng breakdown:
- http path is returned
- last entry in the file path is returned
- last two elements of the file path is returned
- jdbc table name is returned
- WFS typeName is returned
Here are some examples:
- file:///C:/java/workspace/shapefiles/a.shp becomes "a.shp"
- http://www.refractions.net:8080/geoserver/wfs?REQUEST=GetCapabilities&SERVICE=WFS&type=topp:ROAD
becomes "topp:ROAD"
- http://www.refractions.net:8080/data/a.shp becomes "data/a.shp"
- ftp://ftp.refractions.net/data/a.shp becomes "data/a.shp"
- http://kraken.postgis.jdbc:5432/production....
|
final public static String | labelServer(URL url) Aquire "server" similar to "protocol://host:port" from url. |