forked from I2P_Developers/i2p.i2p
Added apps/q - the Q distributed file store framework, by aum
This commit is contained in:
35
apps/q/java/src/net/i2p/aum/I2PXmlRpcDemoClass.java
Normal file
35
apps/q/java/src/net/i2p/aum/I2PXmlRpcDemoClass.java
Normal file
@@ -0,0 +1,35 @@
|
||||
|
||||
package net.i2p.aum;
|
||||
|
||||
import java.lang.*;
|
||||
import java.io.*;
|
||||
import java.util.*;
|
||||
import java.net.*;
|
||||
|
||||
import org.apache.xmlrpc.*;
|
||||
|
||||
import net.i2p.*;
|
||||
import net.i2p.client.*;
|
||||
import net.i2p.client.streaming.*;
|
||||
import net.i2p.data.Base64;
|
||||
import net.i2p.util.*;
|
||||
import net.i2p.data.*;
|
||||
import net.i2p.i2ptunnel.*;
|
||||
|
||||
/**
|
||||
* A simple class providing callable xmlrpc server methods, gets linked in to
|
||||
* the server demo.
|
||||
*/
|
||||
public class I2PXmlRpcDemoClass
|
||||
{
|
||||
public int add1(int n) {
|
||||
return n + 1;
|
||||
}
|
||||
|
||||
public String bar(String arg1, String arg2) {
|
||||
System.out.println("Demo: got hit to bar: arg1='"+arg1+"', arg2='"+arg2+"'");
|
||||
return "I2P demo xmlrpc server(foo.bar): arg1='"+arg1+"', arg2='"+arg2+"'";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user