Package org.apache.juneau.http.remote
Class RrpcInterfaceMeta
java.lang.Object
org.apache.juneau.http.remote.RrpcInterfaceMeta
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionClass<?>
Returns the Java class of this interface.Returns the metadata about the specified method on this interface proxy.Returns the metadata about the specified method on this interface proxy by the path defined on the method.Returns a map of all methods on this interface proxy keyed by HTTP path.getPath()
Returns the HTTP path of this interface.
-
Constructor Details
-
RrpcInterfaceMeta
Constructor.- Parameters:
c
- The interface class annotated with a@Remote
annotation.
Note that the annotations are optional.uri
- The absolute URL of the remote REST interface that implements this proxy interface.
This is only used on the client side.
-
-
Method Details
-
getMethodsByPath
Returns a map of all methods on this interface proxy keyed by HTTP path.- Returns:
- A map of all methods on this remote interface keyed by HTTP path.
The keys never have leading slashes.
The map is nevernull .
-
getMethodMeta
Returns the metadata about the specified method on this interface proxy.- Parameters:
m
- The method to look up.- Returns:
- Metadata about the method or
null if no metadata was found.
-
getMethodMetaByPath
Returns the metadata about the specified method on this interface proxy by the path defined on the method.- Parameters:
p
- The HTTP path to look for.- Returns:
- Metadata about the method or
null if no metadata was found.
-
getJavaClass
Returns the Java class of this interface.- Returns:
- The Java class of this interface.
Nevernull .
-
getPath
Returns the HTTP path of this interface.- Returns:
- The HTTP path of this interface.
Nevernull .
Never has leading or trailing slashes.
-