public class RemoteMethod
extends java.lang.Object
| Constructor | Description |
|---|---|
RemoteMethod(java.lang.Class<?> proto,
java.lang.String method) |
Create a method with no parameters.
|
RemoteMethod(java.lang.Class<?> proto,
java.lang.String method,
java.lang.Class<?>[] pTypes,
java.lang.Object... pParams) |
Creates a remote method generator.
|
RemoteMethod(java.lang.String method) |
Create a remote method generator for the ClientProtocol with no parameters.
|
RemoteMethod(java.lang.String method,
java.lang.Class<?>[] pTypes,
java.lang.Object... pParams) |
Create a remote method generator for the ClientProtocol.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.reflect.Method |
getMethod() |
Get the represented java method.
|
java.lang.String |
getMethodName() |
Get the name of the method.
|
java.lang.Object[] |
getParams() |
Generate a list of parameters for this specific location using no context.
|
java.lang.Object[] |
getParams(RemoteLocationContext context) |
Generate a list of parameters for this specific location.
|
java.lang.Class<?> |
getProtocol() |
Get the interface/protocol for this method.
|
java.lang.Class<?>[] |
getTypes() |
Get the calling types for this method.
|
java.lang.String |
toString() |
public RemoteMethod(java.lang.String method)
method - The string name of the protocol method.public RemoteMethod(java.lang.Class<?> proto,
java.lang.String method)
proto - Protocol of the method.method - The string name of the ClientProtocol method.public RemoteMethod(java.lang.String method,
java.lang.Class<?>[] pTypes,
java.lang.Object... pParams)
throws java.io.IOException
method - The string name of the ClientProtocol method.pTypes - A list of types to use to locate the specific method.pParams - A list of parameters for the method. The order of the
parameter list must match the order and number of the types.
Parameters are grouped into 2 categories:
java.io.IOException - If the types and parameter lists are not valid.public RemoteMethod(java.lang.Class<?> proto,
java.lang.String method,
java.lang.Class<?>[] pTypes,
java.lang.Object... pParams)
throws java.io.IOException
proto - Protocol of the method.method - The string name of the ClientProtocol method.pTypes - A list of types to use to locate the specific method.pParams - A list of parameters for the method. The order of the
parameter list must match the order and number of the types.
Parameters are grouped into 2 categories:
java.io.IOException - If the types and parameter lists are not valid.public java.lang.Class<?> getProtocol()
public java.lang.reflect.Method getMethod()
throws java.io.IOException
Methodjava.io.IOException - If the method cannot be found.public java.lang.Class<?>[] getTypes()
public java.lang.Object[] getParams()
public java.lang.String getMethodName()
public java.lang.Object[] getParams(RemoteLocationContext context)
context - The context identifying the location.public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2008–2025 Apache Software Foundation. All rights reserved.