1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
 * %W% %E%
 *
 * Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved.
 * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */

package com.sun.deploy.net.protocol.chrome;

import java.io.IOException;
import java.net.URL;
import java.net.ProtocolException;
import java.net.InetAddress;
import java.net.UnknownHostException;


public final class ChromeURLConnection extends java.net.URLConnection
{
    URL url = null;

    /**
     * Construct a ChromeURLConnection object.
     */
    public ChromeURLConnection(URL u) throws IOException 
    {
    super(u);
    url = u;
    }


    public void connect() throws IOException 
    {
    // Cannot connect to a chrome:// URL (yet)
    throw new IOException("Cannot connect to " + url);
    }
}
			
			

Browsed Source: [clear]