throws SQLException { if (traceOn()) { trace(”@acceptsURL (url=” + url + “)”); } boolean rc = false; // Get the subname from the url. If the url is not valid for // this driver, a null will be returned. if (getSubname(url) != null) { rc = true; } if (traceOn()) { trace(” ” + rc); } return rc; } //———————————————————————- — // getSubname // Given a URL, return the subname. Returns null if the protocol is // not “jdbc” or the subprotocol is not “simpletext.” //———————————————————————- — public String getSubname( String url) { String subname = null; String protocol = “JDBC”; String subProtocol = “SIMPLETEXT”; // Convert to uppercase and trim all leading and trailing // blanks. url = (url.toUpperCase()).trim(); // Make sure the protocol is jdbc: if (url.startsWith(protocol)) { // Strip off the protocol url = url.substring (protocol.length()); // Look for the colon if (url.startsWith(”:”)) { url = url.substring(1); // Check the subprotocol if (url.startsWith(subProtocol)) { // Strip off the subprotocol, leaving the subname url = url.substring(subProtocol.length()); //———————————————————————- — public boolean acceptsURL( String url)
Check our reliable web hosting section. Most often, a reliable protocol is also connection-oriented. However, this is not always so. For example, TCP/IP is a connection-oriented protocol, with the virtual circuit ID consisting of source and destination IP addresses and port numbers. However, there are also unreliable protocols that are connection-oriented as well. These include ATM and Frame Relay, on which 90% or more of all Internet traffic is passed.