public class RemoteInterfaceMeta extends Object
Captures the information in @RemoteInterface
annotations for caching and reuse.
Constructor and Description |
---|
RemoteInterfaceMeta(Class<?> c,
String uri)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Class<?> |
getJavaClass()
Returns the Java class of this interface.
|
RemoteInterfaceMethod |
getMethodMeta(Method m)
Returns the metadata about the specified method on this interface proxy.
|
RemoteInterfaceMethod |
getMethodMetaByPath(String p)
Returns the metadata about the specified method on this interface proxy by the path defined on the method.
|
Map<String,RemoteInterfaceMethod> |
getMethodsByPath()
Returns a map of all methods on this interface proxy keyed by HTTP path.
|
String |
getPath()
Returns the HTTP path of this interface.
|
public RemoteInterfaceMeta(Class<?> c, String uri)
c
- The interface class annotated with a @RemoteInterface
annotation.
uri
- The absolute URL of the remote REST interface that implements this proxy interface.
public Map<String,RemoteInterfaceMethod> getMethodsByPath()
public RemoteInterfaceMethod getMethodMeta(Method m)
m
- The method to look up.public RemoteInterfaceMethod getMethodMetaByPath(String p)
p
- The HTTP path to look for.public Class<?> getJavaClass()
Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.