Class RestOpAnnotation.Builder
java.lang.Object
org.apache.juneau.annotation.AnnotationBuilder
org.apache.juneau.annotation.TargetedAnnotationBuilder
org.apache.juneau.annotation.TargetedAnnotationMBuilder
org.apache.juneau.rest.annotation.RestOpAnnotation.Builder
- Enclosing class:
RestOpAnnotation
Builder class.
See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Instantiates a new@RestOp
object initialized with this builder.clientVersion
(String value) Sets theRestOp.clientVersion()
property on this annotation.Sets theRestOp.consumes()
property on this annotation.converters
(Class<? extends RestConverter>... value) Sets theRestOp.converters()
property on this annotation.Sets theRestOp.debug()
property on this annotation.defaultAccept
(String value) Sets theRestOp.defaultAccept()
property on this annotation.defaultCharset
(String value) Sets theRestOp.defaultCharset()
property on this annotation.defaultContentType
(String value) Sets theRestOp.defaultContentType()
property on this annotation.defaultRequestAttributes
(String... value) Sets theRestOp.defaultRequestAttributes()
property on this annotation.defaultRequestFormData
(String... value) Sets theRestOp.defaultRequestFormData()
property on this annotation.defaultRequestHeaders
(String... value) Sets theRestOp.defaultRequestHeaders()
property on this annotation.defaultRequestQueryData
(String... value) Sets theRestOp.defaultRequestQueryData()
property on this annotation.defaultResponseHeaders
(String... value) Sets theRestOp.defaultResponseHeaders()
property on this annotation.description
(String... value) Sets theRestOp.description()
property on this annotation.Sets theRestOp.encoders()
property on this annotation.Sets theRestOp.guards()
property on this annotation.matchers
(Class<? extends RestMatcher>... value) Sets theRestOp.matchers()
property on this annotation.Sets theRestOp.maxInput()
property on this annotation.Sets theRestOp.method()
property on this annotation.Appends the methods that this annotation applies to.The targets this annotation applies to.Sets theRestOp.parsers()
property on this annotation.Sets theRestOp.path()
property on this annotation.Sets theRestOp.produces()
property on this annotation.Sets theRestOp.roleGuard()
property on this annotation.rolesDeclared
(String value) Sets theRestOp.rolesDeclared()
property on this annotation.serializers
(Class<? extends Serializer>... value) Sets theRestOp.serializers()
property on this annotation.Sets theRestOp.summary()
property on this annotation.Sets theRestOp.swagger()
property on this annotation.Sets theRestOp.value()
property on this annotation.
-
Constructor Details
-
Builder
protected Builder()Constructor.
-
-
Method Details
-
build
Instantiates a new@RestOp
object initialized with this builder.- Returns:
- A new
@RestOp
object.
-
clientVersion
Sets theRestOp.clientVersion()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
consumes
Sets theRestOp.consumes()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
converters
Sets theRestOp.converters()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
debug
Sets theRestOp.debug()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
defaultAccept
Sets theRestOp.defaultAccept()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
defaultCharset
Sets theRestOp.defaultCharset()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
defaultContentType
Sets theRestOp.defaultContentType()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
defaultRequestFormData
Sets theRestOp.defaultRequestFormData()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
defaultRequestQueryData
Sets theRestOp.defaultRequestQueryData()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
defaultRequestAttributes
Sets theRestOp.defaultRequestAttributes()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
defaultRequestHeaders
Sets theRestOp.defaultRequestHeaders()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
defaultResponseHeaders
Sets theRestOp.defaultResponseHeaders()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
description
Sets theRestOp.description()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
encoders
Sets theRestOp.encoders()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
guards
Sets theRestOp.guards()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
matchers
Sets theRestOp.matchers()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
maxInput
Sets theRestOp.maxInput()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
method
Sets theRestOp.method()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
parsers
Sets theRestOp.parsers()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
path
Sets theRestOp.path()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
produces
Sets theRestOp.produces()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
roleGuard
Sets theRestOp.roleGuard()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
rolesDeclared
Sets theRestOp.rolesDeclared()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
serializers
Sets theRestOp.serializers()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
summary
Sets theRestOp.summary()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
swagger
Sets theRestOp.swagger()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
value
Sets theRestOp.value()
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 classTargetedAnnotationMBuilder
- Parameters:
values
- The targets this annotation applies to.- Returns:
- This object.
-
on
Description copied from class:TargetedAnnotationMBuilder
Appends the methods that this annotation applies to.- Overrides:
on
in classTargetedAnnotationMBuilder
- Parameters:
value
- The values to append.- Returns:
- This object.
-