Added convenience function for zero-argument response.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@107 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2001-07-23 21:13:29 +00:00
parent 1c8e363f98
commit b22d3bb9bd
@@ -1,5 +1,5 @@
// //
// $Id: InvocationProvider.java,v 1.2 2001/07/19 19:18:07 mdb Exp $ // $Id: InvocationProvider.java,v 1.3 2001/07/23 21:13:29 mdb Exp $
package com.threerings.cocktail.cher.server; package com.threerings.cocktail.cher.server;
@@ -49,6 +49,15 @@ package com.threerings.cocktail.cher.server;
*/ */
public class InvocationProvider public class InvocationProvider
{ {
/**
* Creates a response array properly configured with the supplied name
* and no arguments.
*/
protected Object[] createResponse (String name)
{
return new Object[] { name, null };
}
/** /**
* Creates a response array properly configured with the supplied name * Creates a response array properly configured with the supplied name
* and single argument. * and single argument.