Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.flexstor.common.util
Class UrlBuilder  view UrlBuilder download UrlBuilder.java

java.lang.Object
  extended bycom.flexstor.common.util.UrlBuilder

public class UrlBuilder
extends java.lang.Object

Builds an URL string.


Field Summary
static int FILE_URL
          Deprecated. use FileAccessProtocol.FILE_ID instead.
static int FTP_URL
          Deprecated. use FileAccessProtocol.FTP_ID instead.
static int HTTP_URL
          Deprecated. use FileAccessProtocol.HTTP_ID instead.
static int NFS_URL
          Deprecated. use FileAccessProtocol.NFS_ID instead.
 
Constructor Summary
private UrlBuilder()
           
 
Method Summary
static java.lang.String buildURLString(int nProtocol, java.lang.String sServer, java.lang.String sLocation, java.lang.String sFile)
          Constructs an URL string.
static java.lang.String buildURLString(java.lang.String sProtocol, java.lang.String sServer, java.lang.String sLocation, java.lang.String sFile)
          Constructs an URL string.
private static java.lang.String resolvePortNumber(java.lang.String sServer)
           
private static java.lang.String resolveProtocol(int nProtocol)
           
private static java.lang.String resolveServerName(java.lang.String sServer)
           
private static java.lang.String stripSlashes(java.lang.String sString)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FILE_URL

public static final int FILE_URL
Deprecated. use FileAccessProtocol.FILE_ID instead.

See Also:
Constant Field Values

HTTP_URL

public static final int HTTP_URL
Deprecated. use FileAccessProtocol.HTTP_ID instead.

See Also:
Constant Field Values

NFS_URL

public static final int NFS_URL
Deprecated. use FileAccessProtocol.NFS_ID instead.

See Also:
Constant Field Values

FTP_URL

public static final int FTP_URL
Deprecated. use FileAccessProtocol.FTP_ID instead.

See Also:
Constant Field Values
Constructor Detail

UrlBuilder

private UrlBuilder()
Method Detail

buildURLString

public static java.lang.String buildURLString(java.lang.String sProtocol,
                                              java.lang.String sServer,
                                              java.lang.String sLocation,
                                              java.lang.String sFile)
Constructs an URL string. Please note that this method will automatically try to resolve the server name to a DNS name. For example "hoth" would be resolver to "hoth.flexstor.com".


buildURLString

public static java.lang.String buildURLString(int nProtocol,
                                              java.lang.String sServer,
                                              java.lang.String sLocation,
                                              java.lang.String sFile)
Constructs an URL string. Please note that this method will automatically try to resolve the server name to a DNS name. For example "hoth" would be resolver to "hoth.flexstor.com".


resolveServerName

private static java.lang.String resolveServerName(java.lang.String sServer)

resolvePortNumber

private static java.lang.String resolvePortNumber(java.lang.String sServer)

resolveProtocol

private static java.lang.String resolveProtocol(int nProtocol)

stripSlashes

private static java.lang.String stripSlashes(java.lang.String sString)