Class RrpcInterfaceMeta

java.lang.Object
org.apache.juneau.http.classic.remote.RrpcInterfaceMeta

public class RrpcInterfaceMeta extends Object
Contains the meta-data about a remote proxy REST interface.

Captures the information in @Remote annotations for caching and reuse.

See Also:
  • Constructor Details

    • RrpcInterfaceMeta

      public RrpcInterfaceMeta(Class<?> c, String uri)
      Constructor.
      Parameters:
      c - The interface class annotated with a @Remote annotation.
      Note that the annotations are optional.
      Must not be null.
      uri - The absolute URL of the remote REST interface that implements this proxy interface.
      This is only used on the client side.
      Can be null, in which case each method's URL is prefixed with the literal text "null".
  • Method Details

    • getJavaClass

      public Class<?> getJavaClass()
      Returns the Java class of this interface.
      Returns:
      The Java class of this interface.
      Never null.
    • 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.
    • 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 never null.
    • getPath

      public String getPath()
      Returns the HTTP path of this interface.
      Returns:
      The HTTP path of this interface.
      Never null.
      Never has leading or trailing slashes.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object