Package org.teiid.net
Class TeiidURL
- java.lang.Object
-
- org.teiid.net.TeiidURL
-
public class TeiidURL extends Object
Class defines the URL in the Teiid.- Since:
- 4.2
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
TeiidURL.CONNECTION
static interface
TeiidURL.JDBC
-
Field Summary
Fields Modifier and Type Field Description static String
BACKSLASH_DELIMITER
static String
COLON_DELIMITER
static String
COMMA_DELIMITER
static String
DEFAULT_PROTOCOL
static String
DOT_DELIMITER
static String
DOUBLE_SLASH_DELIMITER
static String
INVALID_FORMAT_SERVER
static String
SECURE_PROTOCOL
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getAppServerURL()
Get the Application Server URLList<HostInfo>
getHostInfo()
String
getHosts()
Get a list of hostsString
getPorts()
Get a list of portsint
hashCode()
boolean
isUsingSSL()
static boolean
isValidServerURL(String serverURL)
Validates that a server URL is in the correct format.String
toString()
static String
validatePort(int portNumber)
static int
validatePort(String port)
-
-
-
Field Detail
-
DOT_DELIMITER
public static final String DOT_DELIMITER
- See Also:
- Constant Field Values
-
DOUBLE_SLASH_DELIMITER
public static final String DOUBLE_SLASH_DELIMITER
- See Also:
- Constant Field Values
-
COMMA_DELIMITER
public static final String COMMA_DELIMITER
- See Also:
- Constant Field Values
-
COLON_DELIMITER
public static final String COLON_DELIMITER
- See Also:
- Constant Field Values
-
BACKSLASH_DELIMITER
public static final String BACKSLASH_DELIMITER
- See Also:
- Constant Field Values
-
DEFAULT_PROTOCOL
public static final String DEFAULT_PROTOCOL
- See Also:
- Constant Field Values
-
SECURE_PROTOCOL
public static final String SECURE_PROTOCOL
- See Also:
- Constant Field Values
-
INVALID_FORMAT_SERVER
public static final String INVALID_FORMAT_SERVER
-
-
Constructor Detail
-
TeiidURL
public TeiidURL(String serverURL) throws MalformedURLException
Create an MMURL from the server URL. For use by the server-side.- Parameters:
serverURL
- Expected format: mm[s]://server1:port1[,server2:port2]- Throws:
MalformedURLException
- Since:
- 4.2
-
TeiidURL
public TeiidURL(String host, int port, boolean secure)
-
-
Method Detail
-
isValidServerURL
public static boolean isValidServerURL(String serverURL)
Validates that a server URL is in the correct format.- Parameters:
serverURL
- Expected format: mm[s]://server1:port1[,server2:port2]- Since:
- 4.2
-
getHosts
public String getHosts()
Get a list of hosts- Returns:
- string of host separated by commas
- Since:
- 4.2
-
getPorts
public String getPorts()
Get a list of ports- Returns:
- string of ports seperated by commas
- Since:
- 4.2
-
validatePort
public static int validatePort(String port) throws MalformedURLException
- Throws:
MalformedURLException
-
validatePort
public static String validatePort(int portNumber)
-
getAppServerURL
public String getAppServerURL()
Get the Application Server URL- Returns:
- String for connection to the Server
- Since:
- 4.2
-
toString
public String toString()
- Overrides:
toString
in classObject
- Since:
- 4.2
- See Also:
Object.toString()
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classObject
- Since:
- 4.2
- See Also:
Object.equals(java.lang.Object)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classObject
- Since:
- 4.2
- See Also:
Object.hashCode()
-
isUsingSSL
public boolean isUsingSSL()
-
-