Class PathAnnotation
java.lang.Object
org.apache.juneau.http.annotation.PathAnnotation
Utility classes and methods for the
@Path annotation.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classApplies targetedPathannotations to aBeanContext.Builder.static @interfaceA collection of@Path annotations.static classBuilder class. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PathAnnotation.Buildercreate()Instantiates a new builder for this class.static PathAnnotation.BuilderInstantiates a new builder for this class.static PathAnnotation.BuilderInstantiates a new builder for this class.static booleanReturnstrue if the specified annotation contains all default values.findDef(ParameterInfo pi) Finds the default value from the specified list of annotations.Finds the name from the specified lists of annotations.
-
Field Details
-
DEFAULT
Default value
-
-
Constructor Details
-
PathAnnotation
public PathAnnotation()
-
-
Method Details
-
create
Instantiates a new builder for this class.- Returns:
- A new builder object.
-
create
Instantiates a new builder for this class.- Parameters:
on- The targets this annotation applies to.- Returns:
- A new builder object.
-
create
Instantiates a new builder for this class.- Parameters:
on- The targets this annotation applies to.- Returns:
- A new builder object.
-
empty
Returnstrue if the specified annotation contains all default values.- Parameters:
a- The annotation to check.- Returns:
true if the specified annotation contains all default values.
-
findDef
Finds the default value from the specified list of annotations.- Parameters:
pi- The parameter.- Returns:
- The last matching default value, or empty if not found.
-
findName
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 empty if not found.
-