Class PathAnnotation

java.lang.Object
org.apache.juneau.http.annotation.PathAnnotation

public class PathAnnotation extends Object
Utility classes and methods for the @Path annotation.
See Also:
  • Field Details

    • DEFAULT

      public static final Path DEFAULT
      Default value
  • Constructor Details

  • Method Details

    • create

      public static PathAnnotation.Builder create()
      Instantiates a new builder for this class.
      Returns:
      A new builder object.
    • create

      public static PathAnnotation.Builder create(Class<?>... on)
      Instantiates a new builder for this class.
      Parameters:
      on - The targets this annotation applies to.
      Returns:
      A new builder object.
    • create

      public static PathAnnotation.Builder create(String... on)
      Instantiates a new builder for this class.
      Parameters:
      on - The targets this annotation applies to.
      Returns:
      A new builder object.
    • empty

      public static boolean empty(Path a)
      Returns true if the specified annotation contains all default values.
      Parameters:
      a - The annotation to check.
      Returns:
      true if the specified annotation contains all default values.
    • findName

      public static Value<String> findName(ParamInfo pi)
      Finds the name from the specified lists of annotations.

      The last matching name found is returned.

      Parameters:
      pi - The parameter.
      Returns:
      The last matching name, or Value.empty() if not found.
    • findDef

      public static Value<String> findDef(ParamInfo pi)
      Finds the default value from the specified list of annotations.
      Parameters:
      pi - The parameter.
      Returns:
      The last matching default value, or Value.empty() if not found.