Class RrpcInterfaceMethodMeta

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

public class RrpcInterfaceMethodMeta extends Object
Contains the meta-data about a Java method on a remote class.

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

See Also:
  • Constructor Details

    • RrpcInterfaceMethodMeta

      public RrpcInterfaceMethodMeta(String restUrl, Method m)
      Constructor.
      Parameters:
      restUrl - The absolute URL of the REST interface backing the interface proxy. Can be null (the resulting method URL is then prefixed with the literal text "null").
      m - The Java method. Must not be null.
  • Method Details

    • getJavaMethod

      Returns the underlying Java method that this metadata is about.
      Returns:
      The underlying Java method that this metadata is about.
      Never null.
    • getPath

      public String getPath()
      Returns the HTTP path of this method.
      Returns:
      The HTTP path of this method relative to the parent interface.
      Never null.
      Never has leading or trailing slashes.
    • getUri

      public String getUri()
      Returns the absolute URL of the REST interface invoked by this Java method.
      Returns:
      The absolute URL of the REST interface, never null.
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object