gvsig-catalog / org.gvsig.catalog / branches / org.gvsig.catalog-CSW2.0.2 / org.gvsig.catalog / org.gvsig.catalog.lib / src / main / java / org / gvsig / catalog / z3950 / drivers / Z3950Messages.java @ 55
History | View | Annotate | Download (4.02 KB)
1 |
|
---|---|
2 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
|
3 |
*
|
4 |
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
|
5 |
*
|
6 |
* This program is free software; you can redistribute it and/or
|
7 |
* modify it under the terms of the GNU General Public License
|
8 |
* as published by the Free Software Foundation; either version 2
|
9 |
* of the License, or (at your option) any later version.
|
10 |
*
|
11 |
* This program is distributed in the hope that it will be useful,
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
14 |
* GNU General Public License for more details.
|
15 |
*
|
16 |
* You should have received a copy of the GNU General Public License
|
17 |
* along with this program; if not, write to the Free Software
|
18 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA.
|
19 |
*
|
20 |
* For more information, contact:
|
21 |
*
|
22 |
* Generalitat Valenciana
|
23 |
* Conselleria d'Infraestructures i Transport
|
24 |
* Av. Blasco Ib??ez, 50
|
25 |
* 46010 VALENCIA
|
26 |
* SPAIN
|
27 |
*
|
28 |
* +34 963862235
|
29 |
* gvsig@gva.es
|
30 |
* www.gvsig.gva.es
|
31 |
*
|
32 |
* or
|
33 |
*
|
34 |
* IVER T.I. S.A
|
35 |
* Salamanca 50
|
36 |
* 46005 Valencia
|
37 |
* Spain
|
38 |
*
|
39 |
* +34 963163400
|
40 |
* dac@iver.es
|
41 |
*/
|
42 |
/*
|
43 |
* CVS MESSAGES:
|
44 |
*
|
45 |
* $Id: Z3950Messages.java 585 2007-09-03 10:21:55 +0000 (Mon, 03 Sep 2007) jpiera $
|
46 |
* $Log$
|
47 |
* Revision 1.4.10.2 2006/11/15 00:08:08 jjdelcerro
|
48 |
* *** empty log message ***
|
49 |
*
|
50 |
* Revision 1.6 2006/10/02 08:29:07 jorpiell
|
51 |
* Modificados los cambios del Branch 10 al head
|
52 |
*
|
53 |
* Revision 1.4.10.1 2006/09/20 12:01:18 jorpiell
|
54 |
* Se ha cambiado la versi?n de la jzkit, se ha incorporado la funcionalidad de cargar arcims
|
55 |
*
|
56 |
* Revision 1.5 2006/09/20 11:22:43 jorpiell
|
57 |
* Se ha cambiado la versi?n de la librer?a jzkit de la 1 a la 2.0
|
58 |
*
|
59 |
* Revision 1.4 2006/01/12 13:52:24 jorpiell
|
60 |
* Se ha a?adido un boton close en las dos pantallas de connect. Adem?s se ha cambiado el comportamiento de las ventanas para adaptarlo a la nueva forma de buscar multihilo
|
61 |
*
|
62 |
* Revision 1.3 2006/01/10 17:23:23 jorpiell
|
63 |
* Se ha hecho una peque?a modificaci?n en el gazeteer: ahora funcionan las b?squedas restringiendo el ?rea en el WFSG. Hay muchos cambios porque se ha hecho un CONTROL+SHIFT+O sobre todo el proyecto para eliminar los imports y para ordenarlos
|
64 |
*
|
65 |
* Revision 1.2 2006/01/10 09:32:49 jorpiell
|
66 |
* Se ha echo un commit de las versiones modificadas del catalogo y del gazetteer usando el Poseidon. Se han renombrado algunas clases por considerar que tenian un nombre confuso y se han cambiado algunas relaciones entre clases (con la intenci?n de separar GUI de la parte de control). Han habido clases que no han sido tocadas, pero como han sido formateadas usando el Poseidon TODAS las CLASES del proyecto han cambiado de versi?n.
|
67 |
*
|
68 |
* Revision 1.1 2005/12/22 08:31:43 jorpiell
|
69 |
* Aqui tambien se han producido muchos cambis, porque hemos acabado de cambiar la estructura del cat?logo: Se han creado todas las clases "XXXMessages", que sacan toda la parte de los mensajes de los drivers. Ademas se ha incluido en "CatalogClient" la operaci?n "getCapabilities", que libera a la interfaz de algunas operaciones que hac?a anteriormente.
|
70 |
*
|
71 |
*
|
72 |
*/
|
73 |
package org.gvsig.catalog.z3950.drivers; |
74 |
import org.gvsig.catalog.querys.CatalogQuery; |
75 |
import org.gvsig.catalog.z3950.filters.Z3950Filter; |
76 |
|
77 |
/**
|
78 |
* This class is used to create all the Z3950 protocol
|
79 |
* messages
|
80 |
*
|
81 |
*
|
82 |
* @author Jorge Piera Llodra (piera_jor@gva.es)
|
83 |
*/
|
84 |
public class Z3950Messages { |
85 |
/**
|
86 |
*
|
87 |
*
|
88 |
*/
|
89 |
private Z3950CatalogServiceDriver driver = null; |
90 |
|
91 |
/**
|
92 |
*
|
93 |
*
|
94 |
*
|
95 |
* @param driver
|
96 |
*/
|
97 |
public Z3950Messages(Z3950CatalogServiceDriver driver) {
|
98 |
this.driver = driver;
|
99 |
} |
100 |
|
101 |
/**
|
102 |
*
|
103 |
*
|
104 |
*
|
105 |
* @return
|
106 |
* @param message
|
107 |
*/
|
108 |
public String getCapabilities(String message) { |
109 |
return "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>" + "<Z3950> " + |
110 |
"<Servidor>" + message + "</Servidor>" + "</Z3950>"; |
111 |
|
112 |
} |
113 |
|
114 |
/**
|
115 |
*
|
116 |
*
|
117 |
*
|
118 |
* @return
|
119 |
* @param query
|
120 |
*/
|
121 |
public String getRecords(CatalogQuery query,String database) { |
122 |
return new Z3950Filter(database).getQuery(query); |
123 |
} |
124 |
} |