|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.flat502.rox.marshal.AbstractRpcCall
public abstract class AbstractRpcCall
An abstract implementation of the RpcCall
interface.
This interface handles the "drudgery" of storing the method name
and parameters
and the implementation of RpcCall.getName()
and RpcCall.getParameters()
.
Constructor Summary | |
---|---|
AbstractRpcCall(java.lang.String name,
java.lang.Object[] params)
Initializes a new instance of this class |
Method Summary | |
---|---|
java.lang.String |
getName()
Get the method name to invoke (or being invoked). |
java.lang.Object[] |
getParameters()
Get a list of parameters to pass to (or that were passed to) this method call. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.flat502.rox.marshal.RpcCall |
---|
getHttpMethod, getHttpURI |
Methods inherited from interface com.flat502.rox.marshal.RpcMethod |
---|
getContentType, marshal |
Constructor Detail |
---|
public AbstractRpcCall(java.lang.String name, java.lang.Object[] params)
If params
is null a new zero-length
array is created and stored in place of it.
name
- The name of the method. May not be null
.params
- The method parameters. May be null
.Method Detail |
---|
public java.lang.String getName()
RpcCall
getName
in interface RpcCall
public java.lang.Object[] getParameters()
RpcCall
Implementations must not return null
.
If no parameters exist a zero length array should
be returned to simplify logic that depends on this
method.
getParameters
in interface RpcCall
null
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |