Class RestPostAnnotation.Builder
java.lang.Object
org.apache.juneau.commons.annotation.AnnotationObject.Builder
org.apache.juneau.commons.annotation.AppliedAnnotationObject.Builder
org.apache.juneau.commons.annotation.AppliedAnnotationObject.BuilderM
org.apache.juneau.rest.annotation.RestPostAnnotation.Builder
- Enclosing class:
- RestPostAnnotation
Builder class.
See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Instantiates a new@RestPostobject 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 the 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.on(MethodInfo... value) Appends the methods that 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.Methods inherited from class org.apache.juneau.commons.annotation.AnnotationObject.Builder
getAnnotationType
-
Constructor Details
-
Builder
protected Builder()Constructor.
-
-
Method Details
-
build
Instantiates a new@RestPostobject initialized with this builder.- Returns:
- A new
@RestPostobject.
-
description
Sets the description property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This 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.
-
defaultRequestAttributes
Sets theRestPost.defaultRequestAttributes()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.
-
defaultRequestHeaders
Sets theRestPost.defaultRequestHeaders()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.
-
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.
-
on
Description copied from class:AppliedAnnotationObject.BuilderThe targets this annotation applies to.- Overrides:
onin classAppliedAnnotationObject.Builder- Parameters:
value- The targets this annotation applies to.- Returns:
- This object.
-
on
Description copied from class:AppliedAnnotationObject.BuilderMAppends the methods that this annotation applies to.- Overrides:
onin classAppliedAnnotationObject.BuilderM- Parameters:
value- The values to append.- Returns:
- This object.
-
on
Description copied from class:AppliedAnnotationObject.BuilderMAppends the methods that this annotation applies to.- Overrides:
onin classAppliedAnnotationObject.BuilderM- Parameters:
value- The values to append.- Returns:
- This object.
-