1 /*
2  * Licensed to the Apache Software Foundation (ASF) under one or more
3  * contributor license agreements.  See the NOTICE file distributed with
4  * this work for additional information regarding copyright ownership.
5  * The ASF licenses this file to You under the Apache License, Version 2.0
6  * (the "License"); you may not use this file except in compliance with
7  * the License.  You may obtain a copy of the License at
8  *
9  *     http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17 
18 package tests.support;
19 
20 import java.io.FileInputStream;
21 import java.io.IOException;
22 import java.io.InputStream;
23 import java.util.Hashtable;
24 
25 /**
26  * This class is responsible for providing the dynamic names and addresses for
27  * the java.net classes. There are two directories which need to be placed on an
28  * ftp server and an http server which should accompany this source. The
29  * ftp-files have to be placed on an ftp server and have to be the root of a
30  * user jcltest with password jclpass. The testres files must be available on an
31  * HTTP server and the name and location can be configured below.
32  */
33 public class Support_Configuration {
34 
35     public static final String DomainAddress = "apache.org";
36 
37     public static final String WebName = "jcltest.";
38 
39     public static final String HomeAddress =  WebName + DomainAddress;
40 
41     public static final String TestResourcesDir = "/testres231";
42 
43     public static final String TestResources =  HomeAddress + TestResourcesDir;
44 
45     public static final String HomeAddressResponse = "HTTP/1.1 200 OK";
46 
47     public static final String HomeAddressSoftware = "Jetty(6.0.x)";
48 
49     public static String ProxyServerTestHost = "jcltest.apache.org";
50 
51     public static final String SocksServerTestHost = "jcltest.apache.org";
52 
53     public static final int SocksServerTestPort = 1080;
54 
55     // the bytes for an address which represents an address which is not
56     // one of the addresses for any of our machines on which tests will run
57     // it is used to verify we get the expected error when we try to bind
58     // to an address that is not one of the machines local addresses
59     public static final byte nonLocalAddressBytes[] = { 1, 0, 0, 0 };
60 
61     public static final String FTPTestAddress = "jcltest:jclpass@localhost";
62 
63     public static final String URLConnectionLastModifiedString = "Mon, 14 Jun 1999 21:06:22 GMT";
64 
65     public static final long URLConnectionLastModified = 929394382000L;
66 
67     public static final long URLConnectionDate = 929106872000L;
68 }
69