net.refractions.udig.catalog.ui
Class Identifier

java.lang.Object
  extended by net.refractions.udig.catalog.ui.Identifier

public class Identifier
extends java.lang.Object

URLs are used for resolve.getId(), this class contains utility methods to help work with urls used in this manner.

Since:
0.9.0
Author:
jgarnett

Constructor Summary
Identifier()
           
 
Method Summary
static boolean isFile(java.net.URL url)
           
static boolean isGraphic(java.net.URL url)
           
static boolean isJDBC(java.net.URL url)
           
static boolean isMemory(java.net.URL url)
           
static boolean isWFS(java.net.URL url)
           
static boolean isWMS(java.net.URL url)
           
static java.lang.String labelResource(java.net.URL url)
          Aquire "resource " similar to "data/a.shp" from url.
static java.lang.String labelServer(java.net.URL url)
          Aquire "server" similar to "protocol://host:port" from url.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Identifier

public Identifier()
Method Detail

isFile

public static final boolean isFile(java.net.URL url)

isGraphic

public static boolean isGraphic(java.net.URL url)

isMemory

public static boolean isMemory(java.net.URL url)

isWMS

public static boolean isWMS(java.net.URL url)

isWFS

public static final boolean isWFS(java.net.URL url)

isJDBC

public static final boolean isJDBC(java.net.URL url)

labelResource

public static final java.lang.String labelResource(java.net.URL url)
Aquire "resource " similar to "data/a.shp" from url.

According to the followng breakdown:

Here are some examples:

  • Parameters:
    url -
    Returns:
    label describing the URL as a resource (ie file or content)

  • labelServer

    public static final java.lang.String labelServer(java.net.URL url)
    Aquire "server" similar to "protocol://host:port" from url.

    According to the followng breakdown:

    Here are some examples:

  • Parameters:
    server -
    Returns:
    label as if url points to just a server