com.SoftWoehr.JTOpenContrib.QCDemo
Class QCJdbcURL

java.lang.Object
  |
  +--com.SoftWoehr.JTOpenContrib.QCDemo.QCJdbcURL

public class QCJdbcURL
extends java.lang.Object

A class to canonicalize JDBC URL's.


Field Summary
 java.util.Vector arguments
          Optional arguments portion of JDBC URL, e.g., "?user=fred&password=blue"
 java.lang.String driver
          Driver portion of JDBC URL.
 java.lang.String protocol
          Protocol portion of JDBC URL.
 java.lang.String server
          Server portion of JDBC URL.
 
Constructor Summary
QCJdbcURL()
          Creates new QCJdbcURL
QCJdbcURL(java.lang.String url)
          Create a URL representation from a URL string.
 
Method Summary
 java.lang.String getURL()
          Returns a string representation of the URL.
static void main(java.lang.String[] argv)
          Just testing.
 void parseURL(java.lang.String url)
          Parse a string URL into the fields of this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

protocol

public java.lang.String protocol
Protocol portion of JDBC URL.

driver

public java.lang.String driver
Driver portion of JDBC URL.

server

public java.lang.String server
Server portion of JDBC URL.

arguments

public java.util.Vector arguments
Optional arguments portion of JDBC URL, e.g., "?user=fred&password=blue"
Constructor Detail

QCJdbcURL

public QCJdbcURL()
Creates new QCJdbcURL

QCJdbcURL

public QCJdbcURL(java.lang.String url)
Create a URL representation from a URL string.
Parameters:
url - The URL string of the form jdbc:driver:server<options>
Method Detail

parseURL

public void parseURL(java.lang.String url)
Parse a string URL into the fields of this object.
Parameters:
url - The URL string.

getURL

public java.lang.String getURL()
Returns a string representation of the URL.
Returns:
The string for the URL.

main

public static void main(java.lang.String[] argv)
Just testing. Pass this main() a string URL to parse and it will parse it and display the parts and its string reconstruction of same.
Parameters:
argv - argv[0] == A URL to parse.