dsnserver
Class XmlRpcSetDSNLocation

java.lang.Object
  extended by dsnserver.XmlRpcSetDSNLocation
All Implemented Interfaces:
org.apache.xmlrpc.AuthenticatedXmlRpcHandler

public class XmlRpcSetDSNLocation
extends java.lang.Object
implements org.apache.xmlrpc.AuthenticatedXmlRpcHandler

A function wich is used as a XmlRpc function. It is used for setting the location string on the BTnode.

Author:
kaltt

Field Summary
(package private)  Communication myComm
           
(package private)  org.apache.xmlrpc.WebServer server
           
 
Constructor Summary
XmlRpcSetDSNLocation(Communication comm, org.apache.xmlrpc.WebServer server)
           
 
Method Summary
 boolean checkPassword(java.lang.String user, java.lang.String password)
           
protected  java.lang.Object execute(java.lang.String method, java.util.Vector v)
           
 java.lang.Object execute(java.lang.String method, java.util.Vector v, java.lang.String user, java.lang.String password)
           
 java.lang.String setDSNLocation(java.lang.String DSNID, java.lang.String location)
          A function wich is used as a XmlRpc function.
private  void waitmillis(long millis)
          For waiting millis milliseconds.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myComm

Communication myComm

server

org.apache.xmlrpc.WebServer server
Constructor Detail

XmlRpcSetDSNLocation

public XmlRpcSetDSNLocation(Communication comm,
                            org.apache.xmlrpc.WebServer server)
Method Detail

setDSNLocation

public java.lang.String setDSNLocation(java.lang.String DSNID,
                                       java.lang.String location)
                                throws java.lang.Exception
A function wich is used as a XmlRpc function. It is used for setting the location string on the BTnode.

Parameters:
String - DSNID, String location
Returns:
"OK!"
Throws:
java.lang.Exception

waitmillis

private void waitmillis(long millis)
For waiting millis milliseconds.


execute

public java.lang.Object execute(java.lang.String method,
                                java.util.Vector v,
                                java.lang.String user,
                                java.lang.String password)
Specified by:
execute in interface org.apache.xmlrpc.AuthenticatedXmlRpcHandler

execute

protected java.lang.Object execute(java.lang.String method,
                                   java.util.Vector v)

checkPassword

public boolean checkPassword(java.lang.String user,
                             java.lang.String password)