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