source: gs3-extensions/audioDB/trunk/src/src/java/org/greenstone/gsdl3/service/AbstractAudioSearch.java@ 24398

Last change on this file since 24398 was 24398, checked in by davidb, 13 years ago

Latest round of changes to code, in preparing for demo to Goldsmiths

File size: 1.6 KB
Line 
1/*
2 * AbstractAudioSearch.java
3 * Copyright (C) 2011 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 */
19package org.greenstone.gsdl3.service;
20
21// Greenstone classes
22import org.greenstone.gsdl3.util.GSXML;
23import org.greenstone.gsdl3.util.GSPath;
24
25// XML classes
26import org.w3c.dom.Document;
27import org.w3c.dom.Element;
28import org.w3c.dom.NodeList;
29
30// java classes
31import java.util.ArrayList;
32import java.util.HashMap;
33
34import org.apache.log4j.*;
35
36/** Partially implements a generic audio search service
37 */
38
39public abstract class AbstractAudioSearch
40 extends AbstractSearch
41{
42
43 static Logger logger = Logger.getLogger(org.greenstone.gsdl3.service.AbstractAudioSearch.class.getName());
44
45
46 public AbstractAudioSearch()
47 {
48 // the search service
49 QUERY_SERVICE = "AudioQuery";
50 }
51
52 /** do the actual query
53 * must be implemented by subclass */
54 abstract protected Element processAudioQuery(Element request);
55
56}
57
Note: See TracBrowser for help on using the repository browser.