Changeset 3235 for trunk/gsdl3/src/java/org/greenstone/gsdl3/service
- Timestamp:
- 2002-07-06T14:25:01+12:00 (22 years ago)
- Location:
- trunk/gsdl3/src/java/org/greenstone/gsdl3/service
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/src/java/org/greenstone/gsdl3/service/MGGDBMService.java
r3222 r3235 1 /* 2 * MGGDBMService.java 3 * Copyright (C) 2002 New Zealand Digital Library, http://www.nzdl.org 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or 8 * (at your option) any later version. 9 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program; if not, write to the Free Software 17 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 18 */ 1 19 package org.greenstone.gsdl3.service; 2 20 … … 6 24 import org.w3c.dom.Element; 7 25 import org.w3c.dom.NodeList; 26 /** 27 * 28 * @author <a href="mailto:[email protected]">Katherine Don</a> 29 * @version $Revision$ 30 */ 8 31 9 10 32 public class MGGDBMService 11 33 extends ServiceModule { … … 26 48 return null; 27 49 } 28 50 /** configure this service */ 29 51 public boolean configure(Element info) { 30 52 … … 69 91 return true; 70 92 } 71 93 /** process a text query */ 72 94 protected Element processTextQuery(Element request) { 73 95 Element result = doc_.createElement("response"); … … 81 103 } 82 104 105 /** retrieve a document */ 83 106 protected Element processDocRetrieve(Element request) { 84 107 Element result = doc_.createElement("response"); … … 92 115 } 93 116 117 /** retrieve metadata */ 94 118 protected Element processMetadataRetrieve(Element request) { 95 119 Element result = doc_.createElement("response"); -
trunk/gsdl3/src/java/org/greenstone/gsdl3/service/MGPPService.java
r3222 r3235 1 /* 2 * MGPPService.java 3 * Copyright (C) 2002 New Zealand Digital Library, http://www.nzdl.org 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or 8 * (at your option) any later version. 9 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program; if not, write to the Free Software 17 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 18 */ 1 19 package org.greenstone.gsdl3.service; 2 20 … … 6 24 import org.w3c.dom.Element; 7 25 import org.w3c.dom.NodeList; 26 /** 27 * A Service class for MGPP 28 * 29 * @author <a href="mailto:[email protected]">Katherine Don</a> 30 * @version $Revision$ 31 */ 8 32 9 33 … … 32 56 33 57 58 /** confifure this service */ 34 59 public boolean configure(Element info) { 35 60 … … 83 108 } 84 109 110 /** process a text query */ 85 111 protected Element processTextQuery(Element request) { 86 112 Element result = doc_.createElement("response"); … … 94 120 } 95 121 122 /** process a fielded query */ 96 123 protected Element processFieldQuery(Element request) { 97 124 Element result = doc_.createElement("response"); … … 105 132 } 106 133 134 /** retrieve a document */ 107 135 protected Element processDocRetrieve(Element request) { 108 136 Element result = doc_.createElement("response"); … … 116 144 } 117 145 146 /** retrieve metadata */ 118 147 protected Element processMetadataRetrieve(Element request) { 119 148 Element result = doc_.createElement("response"); -
trunk/gsdl3/src/java/org/greenstone/gsdl3/service/PhindService.java
r3222 r3235 1 /* 2 * PhindService.java 3 * Copyright (C) 2002 New Zealand Digital Library, http://www.nzdl.org 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or 8 * (at your option) any later version. 9 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program; if not, write to the Free Software 17 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 18 */ 1 19 package org.greenstone.gsdl3.service; 2 20 … … 6 24 import org.w3c.dom.Text; 7 25 8 /** PhindService - the phind phrase browsing service 26 /** 27 * PhindService - the phind phrase browsing service 9 28 * 29 * @author <a href="mailto:[email protected]">Katherine Don</a> 30 * @version $Revision$ 10 31 */ 11 32 public class PhindService -
trunk/gsdl3/src/java/org/greenstone/gsdl3/service/ServiceModule.java
r3222 r3235 1 /* 2 * ServiceModule.java 3 * Copyright (C) 2002 New Zealand Digital Library, http://www.nzdl.org 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or 8 * (at your option) any later version. 9 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program; if not, write to the Free Software 17 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 18 */ 1 19 package org.greenstone.gsdl3.service; 2 20 … … 26 44 * MGGDBMServiceModule may support "DocRetrieve", "TextQuery", "MetadataRetrieve" services 27 45 * 46 * @author <a href="mailto:[email protected]">Katherine Don</a> 47 * @version $Revision$ 28 48 */ 29 49 public abstract class ServiceModule … … 52 72 protected HashMap service_info_map_ = null; 53 73 74 /** sets the collect name */ 54 75 public void setCollectionName(String coll_name) { 55 76 collection_name_ = coll_name; 56 77 } 57 78 79 /** sets the site home */ 58 80 public void setSiteHome(String site_home) { 59 81 site_home_ = site_home; 60 82 } 61 83 84 /** sets the message router */ 62 85 public void setMessageRouter(ModuleInterface m) { 63 86 router_ = m; 64 87 } 65 88 89 /** the no-args constructor */ 66 90 public ServiceModule() { 67 91 converter_ = new XMLConverter();
Note:
See TracChangeset
for help on using the changeset viewer.