Project

General

Profile

1 668 jones
/**
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$'
9
 *     '$Date$'
10
 * '$Revision$'
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 563 jones
package edu.ucsb.nceas.protocols.metacat;
28
29
import java.io.IOException;
30
import java.net.URL;
31
32 668 jones
/**
33
 * Handle requests for metacat scheme URLs
34
 */
35 563 jones
public class MetacatURLConnection extends java.net.URLConnection
36
{
37 668 jones
  /**
38
   * Construct a new metacat scheme URL connection
39
   *
40
   * @param u the URL to which to connect
41
   */
42 563 jones
  public MetacatURLConnection(URL u)
43
  {
44
    super(u);
45
  }
46
47 668 jones
  /**
48
   * Set the request header for the URL
49
   */
50 563 jones
  public void setRequestHeader(String name, String value)
51
  {
52
  }
53
54 668 jones
  /**
55
   * Make a connection to the URL
56
   */
57 563 jones
  public void connect() throws IOException
58
  {
59
    super.connected = true;
60
  }
61
}