// Decompiled by DJ v2.6.6.51 Copyright 2000 Atanas Neshkov  Date: 10/2/2001 11:03:24
// Home Page : http://members.fortunecity.com/neshkov/dj.html  - Check often for new version!
// Decompiler options: packimports(3) 
// Source File Name:   com/macromedia/generator/protocol/fgjdbc/Handler

package com.macromedia.generator.protocol.fgjdbc;

import java.io.IOException;
import java.net.*;

// Referenced classes of package com.macromedia.generator.protocol.fgjdbc:
//            FgjdbcURLConnection

public class Handler extends URLStreamHandler
{

    public Handler()
    {
    }

    public synchronized URLConnection openConnection(URL url)
        throws IOException
    {
        String s = url.getHost();
        FgjdbcURLConnection fgjdbcurlconnection;
        if(s == null || s.equals("") || s.equals("~") || s.equals("localhost"))
            fgjdbcurlconnection = new FgjdbcURLConnection(url);
        else
            throw new IOException("Unable to connect to: " + url.toExternalForm());
        return fgjdbcurlconnection;
    }
}