Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

jreceiver.common.rpc.xmlrpc
Class SettingsImpl  view SettingsImpl download SettingsImpl.java

java.lang.Object
  extended byjreceiver.common.rpc.xmlrpc.XmlRpcBaseImpl
      extended byjreceiver.common.rpc.xmlrpc.SettingsImpl
All Implemented Interfaces:
jreceiver.common.rpc.RpcBase, jreceiver.common.rpc.Settings

public class SettingsImpl
extends XmlRpcBaseImpl
implements jreceiver.common.rpc.Settings

Settings-related queries to a remote server via XML-RPC.

Version:
$Revision: 1.4 $ $Date: 2002/07/31 11:29:42 $

Field Summary
 
Fields inherited from class jreceiver.common.rpc.xmlrpc.XmlRpcBaseImpl
log
 
Fields inherited from interface jreceiver.common.rpc.Settings
DELETE, GET, GET_BOOL, GET_INT, HANDLER_NAME, PUT
 
Fields inherited from interface jreceiver.common.rpc.RpcBase
DETECT
 
Constructor Summary
SettingsImpl(java.net.URL remote_host, jreceiver.common.rec.security.User user)
          ctor for this implementation
 
Method Summary
 void delete(java.lang.String key)
          remove a settings value
 java.lang.String get(java.lang.String key)
          access to the settings table
 java.lang.String get(java.lang.String key, java.lang.String defaultValue)
          access to the settings table
 boolean getBool(java.lang.String key)
          access to the settings table
 boolean getBool(java.lang.String key, boolean defaultValue)
          access to the settings table
 int getInt(java.lang.String key)
          access to the settings table
 int getInt(java.lang.String key, int defaultValue)
          access to the settings table
 void put(java.lang.String key, boolean value)
          insert or update an boolean settings value
 void put(java.lang.String key, int value)
          insert or update an integer settings value
 void put(java.lang.String key, java.lang.String value)
          insert or update a settings value
 
Methods inherited from class jreceiver.common.rpc.xmlrpc.XmlRpcBaseImpl
detect, execute, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface jreceiver.common.rpc.RpcBase
detect
 

Constructor Detail

SettingsImpl

public SettingsImpl(java.net.URL remote_host,
                    jreceiver.common.rec.security.User user)
             throws jreceiver.common.rpc.RpcException
ctor for this implementation

Method Detail

get

public java.lang.String get(java.lang.String key)
                     throws jreceiver.common.rpc.RpcException
access to the settings table

Specified by:
get in interface jreceiver.common.rpc.Settings

get

public java.lang.String get(java.lang.String key,
                            java.lang.String defaultValue)
                     throws jreceiver.common.rpc.RpcException
access to the settings table

Specified by:
get in interface jreceiver.common.rpc.Settings

getInt

public int getInt(java.lang.String key)
           throws jreceiver.common.rpc.RpcException
access to the settings table

Specified by:
getInt in interface jreceiver.common.rpc.Settings

getInt

public int getInt(java.lang.String key,
                  int defaultValue)
           throws jreceiver.common.rpc.RpcException
access to the settings table

Specified by:
getInt in interface jreceiver.common.rpc.Settings

getBool

public boolean getBool(java.lang.String key)
                throws jreceiver.common.rpc.RpcException
access to the settings table

Specified by:
getBool in interface jreceiver.common.rpc.Settings

getBool

public boolean getBool(java.lang.String key,
                       boolean defaultValue)
                throws jreceiver.common.rpc.RpcException
access to the settings table

Specified by:
getBool in interface jreceiver.common.rpc.Settings

put

public void put(java.lang.String key,
                int value)
         throws jreceiver.common.rpc.RpcException
insert or update an integer settings value

Specified by:
put in interface jreceiver.common.rpc.Settings

put

public void put(java.lang.String key,
                boolean value)
         throws jreceiver.common.rpc.RpcException
insert or update an boolean settings value

Specified by:
put in interface jreceiver.common.rpc.Settings

put

public void put(java.lang.String key,
                java.lang.String value)
         throws jreceiver.common.rpc.RpcException
insert or update a settings value

Specified by:
put in interface jreceiver.common.rpc.Settings

delete

public void delete(java.lang.String key)
            throws jreceiver.common.rpc.RpcException
remove a settings value

Specified by:
delete in interface jreceiver.common.rpc.Settings