More progress on the invocation services.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@74 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2001-07-19 18:08:20 +00:00
parent 406d181d1a
commit f8ccff8f23
8 changed files with 157 additions and 20 deletions
@@ -1,5 +1,5 @@
//
// $Id: TestClient.java,v 1.5 2001/07/19 07:48:25 mdb Exp $
// $Id: TestClient.java,v 1.6 2001/07/19 18:08:20 mdb Exp $
package com.threerings.cocktail.cher.client.test;
@@ -87,9 +87,9 @@ public class TestClient
return false;
}
public void handleTestSucceeded (String response)
public void handleTestSucceeded (String one, int two)
{
Log.info("Got test response [rsp=" + response + "].");
Log.info("Got test response [one=" + one + ", two=" + two + "].");
}
public static void main (String[] args)
@@ -1,18 +1,19 @@
//
// $Id: TestProvider.java,v 1.2 2001/07/19 07:48:58 mdb Exp $
// $Id: TestProvider.java,v 1.3 2001/07/19 18:08:20 mdb Exp $
package com.threerings.cocktail.cher.server.test;
import com.threerings.cocktail.cher.Log;
import com.threerings.cocktail.cher.server.InvocationProvider;
/**
* A test of the invocation services.
*/
public class TestProvider
public class TestProvider extends InvocationProvider
{
public Object[] handleTestRequest (String one, int two)
{
Log.info("Test request [one=" + one + ", two=" + two + "].");
return null;
return createResponse("TestSucceeded", one, new Integer(two));
}
}