root / trunk / applications / appCatalogAndGazetteerClient / src / es / gva / cit / catalog / drivers / IDiscoveryServiceDriver.java @ 30182
History | View | Annotate | Download (3.21 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.exceptions.NotSupportedProtocolException; |
8 |
import es.gva.cit.catalog.exceptions.NotSupportedVersionException; |
9 |
import es.gva.cit.catalog.querys.DiscoveryServiceQuery; |
10 |
import es.gva.cit.catalog.ui.search.SearchAditionalPropertiesPanel; |
11 |
|
12 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
|
13 |
*
|
14 |
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
|
15 |
*
|
16 |
* This program is free software; you can redistribute it and/or
|
17 |
* modify it under the terms of the GNU General Public License
|
18 |
* as published by the Free Software Foundation; either version 2
|
19 |
* of the License, or (at your option) any later version.
|
20 |
*
|
21 |
* This program is distributed in the hope that it will be useful,
|
22 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
23 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
24 |
* GNU General Public License for more details.
|
25 |
*
|
26 |
* You should have received a copy of the GNU General Public License
|
27 |
* along with this program; if not, write to the Free Software
|
28 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA.
|
29 |
*
|
30 |
* For more information, contact:
|
31 |
*
|
32 |
* Generalitat Valenciana
|
33 |
* Conselleria d'Infraestructures i Transport
|
34 |
* Av. Blasco Ib??ez, 50
|
35 |
* 46010 VALENCIA
|
36 |
* SPAIN
|
37 |
*
|
38 |
* +34 963862235
|
39 |
* gvsig@gva.es
|
40 |
* www.gvsig.gva.es
|
41 |
*
|
42 |
* or
|
43 |
*
|
44 |
* IVER T.I. S.A
|
45 |
* Salamanca 50
|
46 |
* 46005 Valencia
|
47 |
* Spain
|
48 |
*
|
49 |
* +34 963163400
|
50 |
* dac@iver.es
|
51 |
*/
|
52 |
/* CVS MESSAGES:
|
53 |
*
|
54 |
* $Id$
|
55 |
* $Log$
|
56 |
*
|
57 |
*/
|
58 |
/**
|
59 |
* @author Jorge Piera LLodr? (jorge.piera@iver.es)
|
60 |
*/
|
61 |
public interface IDiscoveryServiceDriver { |
62 |
/**
|
63 |
* It try to discover the server capabilities.
|
64 |
* @return Node with the server answer.
|
65 |
* @param uri Server URI
|
66 |
*/
|
67 |
public DiscoveryServiceCapabilities getCapabilities(URI uri) throws NotSupportedVersionException; |
68 |
|
69 |
/**
|
70 |
* It have to prove if the specified protocol is supported.
|
71 |
* @return true if is supported, false if it isn't supported
|
72 |
* @param uri Server URI
|
73 |
*/
|
74 |
public boolean isProtocolSupported(URI uri) throws NotSupportedProtocolException; |
75 |
|
76 |
/**
|
77 |
* It return a message to write in the server connection frame
|
78 |
* @return It is/isn't the supported protocol
|
79 |
*/
|
80 |
public String getServerAnswerReady(); |
81 |
|
82 |
/**
|
83 |
* It sets an error message
|
84 |
*/
|
85 |
public void setServerAnswerReady(String message); |
86 |
|
87 |
/**
|
88 |
* @return the dafault port for an specific
|
89 |
* service
|
90 |
*/
|
91 |
public int getDefaultPort(); |
92 |
|
93 |
/**
|
94 |
* @return the dafault schema for an specific
|
95 |
* service
|
96 |
*/
|
97 |
public String getDefaultSchema(); |
98 |
|
99 |
/**
|
100 |
* @return the service name that will be showed
|
101 |
* in the user interface
|
102 |
*/
|
103 |
public String getServiceName(); |
104 |
|
105 |
/**
|
106 |
* This message will be showed in the protocols combo
|
107 |
* @return The message to show
|
108 |
*/
|
109 |
public String toString(); |
110 |
|
111 |
/**
|
112 |
* There are protocols that can support other attributes
|
113 |
* to do the search. They have to provide its own
|
114 |
* panel to do the search
|
115 |
* @return
|
116 |
* JPanel with a list of properties.
|
117 |
*/
|
118 |
public SearchAditionalPropertiesPanel getAditionalSearchPanel();
|
119 |
|
120 |
/**
|
121 |
* Create and return an empty query
|
122 |
* @return
|
123 |
*/
|
124 |
public DiscoveryServiceQuery createQuery();
|
125 |
} |
126 |
|