Source code: jreceiver/common/rpc/xmlrpc/SitesImpl.java
1 /* $Header: /cvsroot/jreceiver/jreceiver/src/jreceiver/common/rpc/xmlrpc/SitesImpl.java,v 1.5 2002/07/31 11:29:42 reedesau Exp $ */
2
3 package jreceiver.common.rpc.xmlrpc;
4
5 import java.util.Hashtable;
6 import java.net.URL;
7
8 //import org.apache.commons.logging.*;
9
10 import jreceiver.common.rec.Rec;
11 import jreceiver.common.rec.RecException;
12 import jreceiver.common.rec.security.User;
13 import jreceiver.common.rec.site.SiteRec;
14 import jreceiver.common.rpc.RpcException;
15 import jreceiver.common.rpc.Sites;
16
17 /**
18 * Site-folder-related queries to a remote server via XML-RPC.
19 * <p>
20 *
21 * @author Reed Esau
22 * @version $Revision: 1.5 $ $Date: 2002/07/31 11:29:42 $
23 */
24 public class SitesImpl extends ServerTableImpl implements Sites {
25
26 /**
27 * ctor for this implementation
28 *
29 * @param remote_host
30 */
31 public SitesImpl(URL remote_host, User user)
32 throws RpcException {
33 super(HANDLER_NAME, remote_host, user);
34 }
35
36 /**
37 * restore a rec object from hashtable form
38 */
39 public Rec reconstituteRec(Hashtable hash) throws RecException {
40 return new SiteRec(hash);
41 }
42
43 /**
44 * logging sink
45 */
46 //protected static Log log = LogFactory.getLog(Sites.class);
47 }
48 /*
49 JRECEIVER MODIFIED BSD LICENSE
50
51 Copyright (c) 2002, Reed Esau (reed.esau@pobox.com) All rights reserved.
52
53 Redistribution and use in source and binary forms, with or without
54 modification, are permitted provided that the following conditions are
55 met:
56
57 Redistributions of source code must retain the above copyright notice,
58 this list of conditions and the following disclaimer.
59
60 Redistributions in binary form must reproduce the above copyright notice,
61 this list of conditions and the following disclaimer in the documentation
62 and/or other materials provided with the distribution.
63
64 Neither the name of the JReceiver Project
65 (http://jreceiver.sourceforge.net) nor the names of its contributors may
66 be used to endorse or promote products derived from this software without
67 specific prior written permission.
68
69 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
70 IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
71 THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
72 PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE
73 LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
74 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
75 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
76 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
77 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
78 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
79 POSSIBILITY OF SUCH DAMAGE.
80 */
81