sascha@380: /* sascha@380: * Copyright (c) 2010 by Intevation GmbH sascha@380: * sascha@380: * This program is free software under the LGPL (>=v2.1) sascha@380: * Read the file LGPL.txt coming with the software for details sascha@380: * or visit http://www.gnu.org/licenses/ if it does not exist. sascha@380: */ sascha@380: sascha@380: package de.intevation.artifactdatabase; sascha@380: sascha@380: import de.intevation.artifacts.CallMeta; sascha@380: import de.intevation.artifacts.Service; sascha@380: import de.intevation.artifacts.GlobalContext; sascha@380: sascha@380: import de.intevation.artifacts.common.utils.XMLUtils; sascha@380: sascha@380: import org.apache.log4j.Logger; sascha@380: sascha@380: import org.w3c.dom.Document; sascha@380: sascha@380: /** sascha@380: * Trivial implementation of an artifact database service. Useful to sascha@380: * be subclassed. sascha@380: * sascha@380: * @author Sascha L. Teichmann sascha@380: */ sascha@380: public class XMLService sascha@380: extends DefaultService sascha@380: { sascha@380: private static Logger logger = Logger.getLogger(XMLService.class); sascha@380: sascha@380: @Override sascha@380: public Service.Output process( sascha@380: Document data, sascha@380: GlobalContext globalContext, sascha@380: CallMeta callMeta sascha@380: ) { sascha@380: return new Output( sascha@380: processXML(data, globalContext, callMeta), sascha@380: "application/xml"); sascha@380: } sascha@380: sascha@380: public Document processXML( sascha@380: Document data, sascha@380: GlobalContext globalContext, sascha@380: CallMeta callMeta sascha@380: ) { sascha@380: return XMLUtils.newDocument(); sascha@380: } sascha@380: } sascha@380: // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :