@Test public final void testGetProtocolStandalone() throws Exception { TeiidURL url = new TeiidURL("mm: assertNotNull(url); assertEquals("mm: }
public String getAppServerURL() { if (appServerURL == null) { StringBuffer sb = new StringBuffer(); if (usingSSL) { sb.append(SECURE_PROTOCOL); } else { sb.append(DEFAULT_PROTOCOL); } Iterator<HostInfo> iter = hosts.iterator(); while (iter.hasNext()) { HostInfo host = iter.next(); boolean ipv6HostName = host.getHostName().indexOf(':') != -1; if (ipv6HostName) { sb.append('['); } sb.append(host.getHostName()); if (ipv6HostName) { sb.append(']'); } sb.append(COLON_DELIMITER); sb.append(host.getPortNumber()); if (iter.hasNext()) { sb.append(COMMA_DELIMITER); } } appServerURL = sb.toString(); } return appServerURL; }
TeiidURL { public String getAppServerURL() { if (appServerURL == null) { StringBuffer sb = new StringBuffer(); if (usingSSL) { sb.append(SECURE_PROTOCOL); } else { sb.append(DEFAULT_PROTOCOL); } Iterator<HostInfo> iter = hosts.iterator(); while (iter.hasNext()) { HostInfo host = iter.next(); boolean ipv6HostName = host.getHostName().indexOf(':') != -1; if (ipv6HostName) { sb.append('['); } sb.append(host.getHostName()); if (ipv6HostName) { sb.append(']'); } sb.append(COLON_DELIMITER); sb.append(host.getPortNumber()); if (iter.hasNext()) { sb.append(COMMA_DELIMITER); } } appServerURL = sb.toString(); } return appServerURL; } }
TeiidURL { public String getAppServerURL() { if (appServerURL == null) { StringBuffer sb = new StringBuffer(); if (usingSSL) { sb.append(SECURE_PROTOCOL); } else { sb.append(DEFAULT_PROTOCOL); } Iterator<HostInfo> iter = hosts.iterator(); while (iter.hasNext()) { HostInfo host = iter.next(); boolean ipv6HostName = host.getHostName().indexOf(':') != -1; if (ipv6HostName) { sb.append('['); } sb.append(host.getHostName()); if (ipv6HostName) { sb.append(']'); } sb.append(COLON_DELIMITER); sb.append(host.getPortNumber()); if (iter.hasNext()) { sb.append(COMMA_DELIMITER); } } appServerURL = sb.toString(); } return appServerURL; } TeiidURL(String serverURL);  TeiidURL(String host, int port, boolean secure); }
TeiidURL { public String getAppServerURL() { if (appServerURL == null) { StringBuffer sb = new StringBuffer(); if (usingSSL) { sb.append(SECURE_PROTOCOL); } else { sb.append(DEFAULT_PROTOCOL); } Iterator<HostInfo> iter = hosts.iterator(); while (iter.hasNext()) { HostInfo host = iter.next(); boolean ipv6HostName = host.getHostName().indexOf(':') != -1; if (ipv6HostName) { sb.append('['); } sb.append(host.getHostName()); if (ipv6HostName) { sb.append(']'); } sb.append(COLON_DELIMITER); sb.append(host.getPortNumber()); if (iter.hasNext()) { sb.append(COMMA_DELIMITER); } } appServerURL = sb.toString(); } return appServerURL; } TeiidURL(String serverURL);  TeiidURL(String host, int port, boolean secure); static boolean isValidServerURL(String serverURL); List<HostInfo> getHostInfo(); String getHosts(); String getPorts(); static int validatePort(String port); static String validatePort(int portNumber); String getAppServerURL(); String toString(); boolean equals(Object obj); int hashCode(); boolean isUsingSSL(); }
TeiidURL { public String getAppServerURL() { if (appServerURL == null) { StringBuffer sb = new StringBuffer(); if (usingSSL) { sb.append(SECURE_PROTOCOL); } else { sb.append(DEFAULT_PROTOCOL); } Iterator<HostInfo> iter = hosts.iterator(); while (iter.hasNext()) { HostInfo host = iter.next(); boolean ipv6HostName = host.getHostName().indexOf(':') != -1; if (ipv6HostName) { sb.append('['); } sb.append(host.getHostName()); if (ipv6HostName) { sb.append(']'); } sb.append(COLON_DELIMITER); sb.append(host.getPortNumber()); if (iter.hasNext()) { sb.append(COMMA_DELIMITER); } } appServerURL = sb.toString(); } return appServerURL; } TeiidURL(String serverURL);  TeiidURL(String host, int port, boolean secure); static boolean isValidServerURL(String serverURL); List<HostInfo> getHostInfo(); String getHosts(); String getPorts(); static int validatePort(String port); static String validatePort(int portNumber); String getAppServerURL(); String toString(); boolean equals(Object obj); int hashCode(); boolean isUsingSSL(); static final String DOT_DELIMITER; static final String DOUBLE_SLASH_DELIMITER; static final String COMMA_DELIMITER; static final String COLON_DELIMITER; static final String BACKSLASH_DELIMITER; static final String DEFAULT_PROTOCOL; static final String SECURE_PROTOCOL; static final String INVALID_FORMAT_SERVER; }