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