root / trunk / applications / appCatalogAndGazetteerClient / src / es / gva / cit / catalog / drivers / AbstractDiscoveryServiceDriver.java @ 27094
History | View | Annotate | Download (3.02 KB)
1 |
package es.gva.cit.catalog.drivers; |
---|---|
2 |
|
3 |
import java.net.URI; |
4 |
|
5 |
import com.iver.utiles.swing.jcomboServer.ServerData; |
6 |
|
7 |
import es.gva.cit.catalog.ui.search.SearchAditionalPropertiesPanel; |
8 |
|
9 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
|
10 |
*
|
11 |
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
|
12 |
*
|
13 |
* This program is free software; you can redistribute it and/or
|
14 |
* modify it under the terms of the GNU General Public License
|
15 |
* as published by the Free Software Foundation; either version 2
|
16 |
* of the License, or (at your option) any later version.
|
17 |
*
|
18 |
* This program is distributed in the hope that it will be useful,
|
19 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
20 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
21 |
* GNU General Public License for more details.
|
22 |
*
|
23 |
* You should have received a copy of the GNU General Public License
|
24 |
* along with this program; if not, write to the Free Software
|
25 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA.
|
26 |
*
|
27 |
* For more information, contact:
|
28 |
*
|
29 |
* Generalitat Valenciana
|
30 |
* Conselleria d'Infraestructures i Transport
|
31 |
* Av. Blasco Ib??ez, 50
|
32 |
* 46010 VALENCIA
|
33 |
* SPAIN
|
34 |
*
|
35 |
* +34 963862235
|
36 |
* gvsig@gva.es
|
37 |
* www.gvsig.gva.es
|
38 |
*
|
39 |
* or
|
40 |
*
|
41 |
* IVER T.I. S.A
|
42 |
* Salamanca 50
|
43 |
* 46005 Valencia
|
44 |
* Spain
|
45 |
*
|
46 |
* +34 963163400
|
47 |
* dac@iver.es
|
48 |
*/
|
49 |
/* CVS MESSAGES:
|
50 |
*
|
51 |
* $Id$
|
52 |
* $Log$
|
53 |
*
|
54 |
*/
|
55 |
/**
|
56 |
* @author Jorge Piera LLodr? (jorge.piera@iver.es)
|
57 |
*/
|
58 |
public abstract class AbstractDiscoveryServiceDriver implements IDiscoveryServiceDriver { |
59 |
private String serverAnswerReady = null; |
60 |
|
61 |
/*
|
62 |
* (non-Javadoc)
|
63 |
* @see es.gva.cit.catalogClient.drivers.IDiscoveryServiceDriver#getServerAnswerReady()
|
64 |
*/
|
65 |
public String getServerAnswerReady() { |
66 |
return serverAnswerReady;
|
67 |
} |
68 |
|
69 |
/*
|
70 |
* (non-Javadoc)
|
71 |
* @see es.gva.cit.catalogClient.drivers.IDiscoveryServiceDriver#setServerAnswerReady(java.lang.String)
|
72 |
*/
|
73 |
public void setServerAnswerReady(String serverAnswerReady) { |
74 |
this.serverAnswerReady = serverAnswerReady;
|
75 |
} |
76 |
|
77 |
|
78 |
/*
|
79 |
* (non-Javadoc)
|
80 |
* @see es.gva.cit.catalogClient.drivers.ICatalogServiceDriver#getDefaultPort()
|
81 |
*/
|
82 |
public int getDefaultPort() { |
83 |
return 80; |
84 |
} |
85 |
|
86 |
/*
|
87 |
* (non-Javadoc)
|
88 |
* @see es.gva.cit.catalogClient.drivers.ICatalogServiceDriver#getDefaultSchema()
|
89 |
*/
|
90 |
public String getDefaultSchema() { |
91 |
return "http"; |
92 |
} |
93 |
|
94 |
/*
|
95 |
* (non-Javadoc)
|
96 |
* @see es.gva.cit.catalogClient.drivers.ICatalogServiceDriver#isProtocolSupported(java.net.URI)
|
97 |
*/
|
98 |
public boolean isProtocolSupported(URI uri) { |
99 |
return true; |
100 |
} |
101 |
|
102 |
/*
|
103 |
* (non-Javadoc)
|
104 |
* @see es.gva.cit.catalogClient.drivers.ICatalogServiceDriver#getAditionalSearchPanel()
|
105 |
*/
|
106 |
public SearchAditionalPropertiesPanel getAditionalSearchPanel(){
|
107 |
return null; |
108 |
} |
109 |
|
110 |
/*
|
111 |
* (non-Javadoc)
|
112 |
* @see java.lang.Object#toString()
|
113 |
*/
|
114 |
public String toString(){ |
115 |
return getServiceName();
|
116 |
} |
117 |
|
118 |
/* (non-Javadoc)
|
119 |
* @see es.gva.cit.catalog.drivers.IDiscoveryServiceDriver#isOneServer()
|
120 |
*/
|
121 |
public ServerData getOneServer() {
|
122 |
return null; |
123 |
} |
124 |
} |