Project

General

Profile

1
/**
2
 *  '$RCSfile$'
3
 *    Purpose: Handle Metacat URL connections
4
 *  Copyright: 2000 Regents of the University of California and the
5
 *             National Center for Ecological Analysis and Synthesis
6
 *    Authors: Matt Jones
7
 *
8
 *   '$Author: jones $'
9
 *     '$Date: 2006-11-10 10:25:38 -0800 (Fri, 10 Nov 2006) $'
10
 * '$Revision: 3077 $'
11
 *
12
 * This program is free software; you can redistribute it and/or modify
13
 * it under the terms of the GNU General Public License as published by
14
 * the Free Software Foundation; either version 2 of the License, or
15
 * (at your option) any later version.
16
 *
17
 * This program is distributed in the hope that it will be useful,
18
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20
 * GNU General Public License for more details.
21
 *
22
 * You should have received a copy of the GNU General Public License
23
 * along with this program; if not, write to the Free Software
24
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
25
 */
26

    
27
package edu.ucsb.nceas.protocols.metacat;
28

    
29
import java.io.IOException;
30
import java.net.URL;
31

    
32
/** 
33
 * Handle requests for metacat scheme URLs
34
 */
35
public class MetacatURLConnection extends java.net.URLConnection
36
{
37
  /** 
38
   * Construct a new metacat scheme URL connection
39
   *
40
   * @param u the URL to which to connect
41
   */
42
  public MetacatURLConnection(URL u)
43
  {
44
    super(u);
45
  }
46

    
47
  /** 
48
   * Set the request header for the URL
49
   */
50
  public void setRequestHeader(String name, String value)
51
  {
52
  }
53

    
54
  /** 
55
   * Make a connection to the URL
56
   */
57
  public void connect() throws IOException
58
  {
59
    super.connected = true;
60
  }
61
}
(2-2/2)