ice.util.net
Class URLResolver

java.lang.Object
  extended byice.util.net.URLResolver
Direct Known Subclasses:
UrlMaster

public class URLResolver
extends Object


Field Summary
protected static int JAVA_URL_RESOLVE
           
protected static int REPLACE_URL_RESOLVE
           
protected static int SLASH_URL_RESOLVE
           
 
Constructor Summary
URLResolver()
           
 
Method Summary
static String getHost(String url)
           
static String getPath(String url)
           
static int getPort(String url)
           
static String getProtocol(String url)
           
protected static int getResolveType(String base, int protocolLength)
           
static URL newURL(String url)
           
static URL newURL(URL base, String urlFragment)
           
static String resolve(String base, String fragment)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SLASH_URL_RESOLVE

protected static final int SLASH_URL_RESOLVE
See Also:
Constant Field Values

REPLACE_URL_RESOLVE

protected static final int REPLACE_URL_RESOLVE
See Also:
Constant Field Values

JAVA_URL_RESOLVE

protected static final int JAVA_URL_RESOLVE
See Also:
Constant Field Values
Constructor Detail

URLResolver

public URLResolver()
Method Detail

resolve

public static String resolve(String base,
                             String fragment)

getResolveType

protected static int getResolveType(String base,
                                    int protocolLength)

getProtocol

public static String getProtocol(String url)

getHost

public static String getHost(String url)

getPort

public static int getPort(String url)

getPath

public static String getPath(String url)

newURL

public static URL newURL(String url)

newURL

public static URL newURL(URL base,
                         String urlFragment)