Class RestOpAnnotation.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.RestOpAnnotation.Builder
- Enclosing class:
- RestOpAnnotation
Builder class.
See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Instantiates a new@RestOpobject initialized with this builder.clientVersion(String value) Sets theRestOp.clientVersion()property on this annotation.Sets theRestOp.consumes()property on this annotation.final RestOpAnnotation.Builderconverters(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.description(String... value) Sets the description property on this annotation.final RestOpAnnotation.BuilderSets theRestOp.encoders()property on this annotation.final RestOpAnnotation.BuilderSets theRestOp.guards()property on this annotation.final RestOpAnnotation.Buildermatchers(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.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 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.Builderserializers(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.commons.annotation.AnnotationObject.Builder
getAnnotationType
-
Constructor Details
-
Builder
protected Builder()Constructor.
-
-
Method Details
-
build
Instantiates a new@RestOpobject initialized with this builder.- Returns:
- A new
@RestOpobject.
-
description
Sets the description property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This 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.
-
defaultRequestAttributes
Sets theRestOp.defaultRequestAttributes()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.
-
defaultRequestHeaders
Sets theRestOp.defaultRequestHeaders()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.
-
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.
-
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.
-