Class HeaderAnnotation
java.lang.Object
org.apache.juneau.http.annotation.HeaderAnnotation
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Applies targetedHeader
annotations to aBeanContext.Builder
.static @interface
A collection of@Header annotations
.static class
Builder class. -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic HeaderAnnotation.Builder
create()
Instantiates a new builder for this class.static HeaderAnnotation.Builder
Instantiates a new builder for this class.static HeaderAnnotation.Builder
Instantiates a new builder for this class.static boolean
Returnstrue if the specified annotation contains all default values.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
-
HeaderAnnotation
public HeaderAnnotation()
-
-
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.
-
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
Value.empty()
if not found.
-
findDef
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.
-