Class ResponseAnnotation.Builder
java.lang.Object
org.apache.juneau.annotation.AnnotationBuilder
org.apache.juneau.annotation.TargetedAnnotationBuilder
org.apache.juneau.annotation.TargetedAnnotationTBuilder
org.apache.juneau.annotation.TargetedAnnotationTMBuilder
org.apache.juneau.http.annotation.ResponseAnnotation.Builder
- Enclosing class:
ResponseAnnotation
Builder class.
See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Instantiates a new@Response
object initialized with this builder.Sets theResponse.examples()
property on this annotation.Sets theResponse.headers()
property on this annotation.Appends the classes that this annotation applies to.Appends the methods that this annotation applies to.The targets this annotation applies to.Appends the classes that this annotation applies to.parser
(Class<? extends HttpPartParser> value) Sets theResponse.parser()
property on this annotation.Sets theResponse.schema()
property on this annotation.serializer
(Class<? extends HttpPartSerializer> value) Sets theResponse.serializer()
property on this annotation.
-
Constructor Details
-
Builder
protected Builder()Constructor.
-
-
Method Details
-
build
Instantiates a new@Response
object initialized with this builder.- Returns:
- A new
@Response
object.
-
examples
Sets theResponse.examples()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
headers
Sets theResponse.headers()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
parser
Sets theResponse.parser()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
schema
Sets theResponse.schema()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
serializer
Sets theResponse.serializer()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
on
Description copied from class:TargetedAnnotationBuilder
The targets this annotation applies to.- Overrides:
on
in classTargetedAnnotationTMBuilder
- Parameters:
values
- The targets this annotation applies to.- Returns:
- This object.
-
on
Description copied from class:TargetedAnnotationTBuilder
Appends the classes that this annotation applies to.- Overrides:
on
in classTargetedAnnotationTMBuilder
- Parameters:
value
- The values to append.- Returns:
- This object.
-
onClass
Description copied from class:TargetedAnnotationTBuilder
Appends the classes that this annotation applies to.- Overrides:
onClass
in classTargetedAnnotationTMBuilder
- Parameters:
value
- The values to append.- Returns:
- This object.
-
on
Description copied from class:TargetedAnnotationTMBuilder
Appends the methods that this annotation applies to.- Overrides:
on
in classTargetedAnnotationTMBuilder
- Parameters:
value
- The values to append.- Returns:
- This object.
-