Statistics
| Revision:

root / trunk / applications / appCatalogAndGazetteerClient / src / es / gva / cit / catalog / drivers / AbstractDiscoveryServiceDriver.java @ 15558

History | View | Annotate | Download (2.81 KB)

1
package es.gva.cit.catalog.drivers;
2

    
3
import java.net.URI;
4

    
5
import es.gva.cit.catalog.ui.search.SearchAditionalPropertiesPanel;
6

    
7
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
8
 *
9
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
10
 *
11
 * This program is free software; you can redistribute it and/or
12
 * modify it under the terms of the GNU General Public License
13
 * as published by the Free Software Foundation; either version 2
14
 * of the License, or (at your option) any later version.
15
 *
16
 * This program is distributed in the hope that it will be useful,
17
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19
 * GNU General Public License for more details.
20
 *
21
 * You should have received a copy of the GNU General Public License
22
 * along with this program; if not, write to the Free Software
23
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
24
 *
25
 * For more information, contact:
26
 *
27
 *  Generalitat Valenciana
28
 *   Conselleria d'Infraestructures i Transport
29
 *   Av. Blasco Ib??ez, 50
30
 *   46010 VALENCIA
31
 *   SPAIN
32
 *
33
 *      +34 963862235
34
 *   gvsig@gva.es
35
 *      www.gvsig.gva.es
36
 *
37
 *    or
38
 *
39
 *   IVER T.I. S.A
40
 *   Salamanca 50
41
 *   46005 Valencia
42
 *   Spain
43
 *
44
 *   +34 963163400
45
 *   dac@iver.es
46
 */
47
/* CVS MESSAGES:
48
 *
49
 * $Id$
50
 * $Log$
51
 *
52
 */
53
/**
54
 * @author Jorge Piera LLodr? (jorge.piera@iver.es)
55
 */
56
public abstract class AbstractDiscoveryServiceDriver implements IDiscoveryServiceDriver {
57
        private String serverAnswerReady = null;
58

    
59
        /*
60
         * (non-Javadoc)
61
         * @see es.gva.cit.catalogClient.drivers.IDiscoveryServiceDriver#getServerAnswerReady()
62
         */
63
        public String getServerAnswerReady() {        
64
                return serverAnswerReady;
65
        } 
66

    
67
        /*
68
         * (non-Javadoc)
69
         * @see es.gva.cit.catalogClient.drivers.IDiscoveryServiceDriver#setServerAnswerReady(java.lang.String)
70
         */
71
        public void setServerAnswerReady(String serverAnswerReady) {        
72
                this.serverAnswerReady = serverAnswerReady;
73
        } 
74
        
75
        
76
        /*
77
         * (non-Javadoc)
78
         * @see es.gva.cit.catalogClient.drivers.ICatalogServiceDriver#getDefaultPort()
79
         */
80
        public int getDefaultPort() {
81
                return 80;
82
        }
83
        
84
        /*
85
         * (non-Javadoc)
86
         * @see es.gva.cit.catalogClient.drivers.ICatalogServiceDriver#getDefaultSchema()
87
         */
88
        public String getDefaultSchema() {
89
                return "http";
90
        }
91
        
92
        /*
93
         * (non-Javadoc)
94
         * @see es.gva.cit.catalogClient.drivers.ICatalogServiceDriver#isProtocolSupported(java.net.URI)
95
         */
96
        public boolean isProtocolSupported(URI uri) {
97
                return true;
98
        }
99
        
100
        /*
101
         * (non-Javadoc)
102
         * @see es.gva.cit.catalogClient.drivers.ICatalogServiceDriver#getAditionalSearchPanel()
103
         */
104
        public SearchAditionalPropertiesPanel getAditionalSearchPanel(){
105
                return null;
106
        }        
107

    
108
        /*
109
         * (non-Javadoc)
110
         * @see java.lang.Object#toString()
111
         */
112
        public String toString(){
113
                return getServiceName();
114
        }
115

    
116
}