[7796] | 1 | /*
|
---|
| 2 | * SOAPServer.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 | */
|
---|
| 19 | package org.greenstone.gsdl3;
|
---|
| 20 |
|
---|
| 21 | import org.greenstone.gsdl3.core.*;
|
---|
| 22 | import org.w3c.dom.Element;
|
---|
| 23 | /**
|
---|
| 24 | * The server side of a SOAP connection
|
---|
| 25 | *
|
---|
| 26 | * @author <a href="mailto:[email protected]">Katherine Don</a>
|
---|
| 27 | * @version $Revision: 7812 $
|
---|
| 28 | * @see <a href="http://www.w3.org/TR/SOAP/">Simple Object Access Protocol (SOAP) 1.1 </a>
|
---|
| 29 | */
|
---|
| 30 |
|
---|
| 31 | public class SOAPServerLocalsite
|
---|
| 32 | implements ModuleInterface {
|
---|
| 33 |
|
---|
| 34 | /** The message router we're talking to */
|
---|
| 35 | MessageRouter mr_=null;
|
---|
| 36 |
|
---|
| 37 | /** The no-args constructor */
|
---|
[7812] | 38 | public SOAPServerLocalsite() {
|
---|
[7796] | 39 | mr_ = new MessageRouter();
|
---|
| 40 | String site_home="@gsdl3home@/web/sites/localsite";
|
---|
| 41 | mr_.setSiteHome(site_home);
|
---|
| 42 | mr_.configure();
|
---|
| 43 | }
|
---|
| 44 |
|
---|
| 45 | /** Process a String request */
|
---|
| 46 | public String process(String xml_in) {
|
---|
| 47 | return mr_.process(xml_in);
|
---|
| 48 |
|
---|
| 49 | }
|
---|
| 50 |
|
---|
| 51 | /** Process an Element request */
|
---|
| 52 | public Element process(Element xml_in) {
|
---|
| 53 | return mr_.process(xml_in);
|
---|
| 54 | }
|
---|
| 55 | }
|
---|
| 56 |
|
---|