Class RestOpAnnotation.Builder
java.lang.Object
org.apache.juneau.annotation.AnnotationBuilder<B>
org.apache.juneau.annotation.TargetedAnnotationBuilder<B>
org.apache.juneau.annotation.TargetedAnnotationMBuilder<RestOpAnnotation.Builder>
org.apache.juneau.rest.annotation.RestOpAnnotation.Builder
- Enclosing class:
- RestOpAnnotation
public static class RestOpAnnotation.Builder
extends TargetedAnnotationMBuilder<RestOpAnnotation.Builder>
Builder class.
See Also:
-
Constructor Summary
Constructors -
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.final RestOpAnnotation.Builder
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.final RestOpAnnotation.Builder
Sets theRestOp.encoders()
property on this annotation.final RestOpAnnotation.Builder
Sets theRestOp.guards()
property on this annotation.final RestOpAnnotation.Builder
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.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.final RestOpAnnotation.Builder
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.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@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
@SafeVarargs public final RestOpAnnotation.Builder converters(Class<? extends RestConverter>... value) 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.
-
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
@SafeVarargs public final RestOpAnnotation.Builder serializers(Class<? extends Serializer>... value) 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.
-