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