Class ResourceDescription

java.lang.Object
org.apache.juneau.rest.beans.ResourceDescription
All Implemented Interfaces:
Comparable<ResourceDescription>

@Bean(properties="name,description", findFluentSetters=true) @Response(schema=@Schema(ignore=true)) public final class ResourceDescription extends Object implements Comparable<ResourceDescription>
Shortcut label for child resources.

Typically used in router resources.

Example:

new ResourceDescription("httpTool", "HTTP request test client");

See Also:
  • Constructor Details

    • ResourceDescription

      public ResourceDescription(String name, String description)
      Constructor for when the name and uri are the same.
      Parameters:
      name - The name of the child resource.
      description - The description of the child resource.
    • ResourceDescription

      public ResourceDescription(String name, String uri, String description)
      Constructor for when the name and uri are different.
      Parameters:
      name - The name of the child resource.
      uri - The uri of the child resource.
      description - The description of the child resource.
    • ResourceDescription

      No-arg constructor. Used for JUnit testing of OPTIONS pages.
  • Method Details