[24398] | 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 | */
|
---|
| 19 | package org.greenstone.gsdl3.service;
|
---|
| 20 |
|
---|
| 21 | // Greenstone classes
|
---|
| 22 | import org.greenstone.gsdl3.util.GSXML;
|
---|
| 23 | import org.greenstone.gsdl3.util.GSPath;
|
---|
| 24 |
|
---|
| 25 | // XML classes
|
---|
| 26 | import org.w3c.dom.Document;
|
---|
| 27 | import org.w3c.dom.Element;
|
---|
| 28 | import org.w3c.dom.NodeList;
|
---|
| 29 |
|
---|
| 30 | // java classes
|
---|
| 31 | import java.util.ArrayList;
|
---|
| 32 | import java.util.HashMap;
|
---|
| 33 |
|
---|
| 34 | import org.apache.log4j.*;
|
---|
| 35 |
|
---|
| 36 | /** Partially implements a generic audio search service
|
---|
| 37 | */
|
---|
| 38 |
|
---|
| 39 | public 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 |
|
---|