/*
 * ExtendedURLStreamHandlerFactory.java
 *
 * Created on October 11, 2001, 2:24 PM
 */

package test.protocol.sar;

import java.net.URLStreamHandlerFactory;
import java.net.URLStreamHandler;

/**
 *
 * @author  mtoma
 * @version
 */
public class SarURLStreamHandlerFactory implements URLStreamHandlerFactory
{    
    /**
     * Creates a new <code>URLStreamHandler</code> instance with the specified
     * protocol.
     *
     * @param   protocol   the protocol ("<code>ftp</code>",
     *                    "<code>http</code>", "<code>nntp</code>", etc.).
     * @return  a <code>URLStreamHandler</code> for the specific protocol.
     * @see     java.net.URLStreamHandler
     */
    public URLStreamHandler createURLStreamHandler( String protocol )
    {
        Handler handler = null;
        
        if ( "sar".equals( protocol ) )
        {
            handler = new Handler();
        }
        
        return handler;
    }
    
}

