Class RestPostAnnotation.Builder
java.lang.Object
org.apache.juneau.annotation.AnnotationBuilder<B>
org.apache.juneau.annotation.TargetedAnnotationBuilder<B>
org.apache.juneau.annotation.TargetedAnnotationMBuilder<RestPostAnnotation.Builder>
org.apache.juneau.rest.annotation.RestPostAnnotation.Builder
- Enclosing class:
- RestPostAnnotation
public static class RestPostAnnotation.Builder
extends TargetedAnnotationMBuilder<RestPostAnnotation.Builder>
Builder class.
See Also:
-
Constructor Summary
Constructors -
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.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.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.Methods inherited from class org.apache.juneau.annotation.TargetedAnnotationMBuilder
on
Methods inherited from class org.apache.juneau.annotation.TargetedAnnotationBuilder
on
Methods inherited from class org.apache.juneau.annotation.AnnotationBuilder
asThis, description
-
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
@SafeVarargs public final RestPostAnnotation.Builder converters(Class<? extends RestConverter>... value) 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.
-
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
@SafeVarargs public final RestPostAnnotation.Builder matchers(Class<? extends RestMatcher>... value) 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
@SafeVarargs public final RestPostAnnotation.Builder serializers(Class<? extends Serializer>... value) 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.
-