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