Package org.apache.juneau.rest.server
Class RestOpAnnotation.Builder
java.lang.Object
org.apache.juneau.commons.AnnotationObject.Builder
org.apache.juneau.rest.server.RestOpAnnotation.Builder
- Enclosing class:
- RestOpAnnotation
Builder class.
See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallowedParserOptions(String... value) Sets theRestOp.allowedParserOptions()property on this annotation.allowedSerializerOptions(String... value) Sets theRestOp.allowedSerializerOptions()property on this annotation.asyncCompletionExecutor(String value) Sets theRestOp.asyncCompletionExecutor()property on this annotation.asyncTimeoutMillis(String value) Sets theRestOp.asyncTimeoutMillis()property on this annotation.build()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.debugMarshalling(String value) Sets theRestOp.debugMarshalling()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.metricName(String value) Sets theRestOp.metricName()property on this annotation.metricTags(String value) Sets theRestOp.metricTags()property on this annotation.Sets theRestOp.noInherit()property on this annotation.observability(String value) Sets theRestOp.observability()property on this annotation.Sets theRestOp.parsers()property on this annotation.Sets theRestOp.path()property on this annotation.problemDetails(String value) Sets theRestOp.problemDetails()property on this annotation.Sets theRestOp.produces()property on this annotation.read(boolean value) Sets theRestOp.read()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.virtualThreads(String value) Sets theRestOp.virtualThreads()property on this annotation.Methods inherited from class org.apache.juneau.commons.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.
-
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.
-
problemDetails
Sets theRestOp.problemDetails()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
debugMarshalling
Sets theRestOp.debugMarshalling()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
observability
Sets theRestOp.observability()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
metricName
Sets theRestOp.metricName()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
metricTags
Sets theRestOp.metricTags()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
virtualThreads
Sets theRestOp.virtualThreads()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
asyncTimeoutMillis
Sets theRestOp.asyncTimeoutMillis()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
asyncCompletionExecutor
Sets theRestOp.asyncCompletionExecutor()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.
-
allowedSerializerOptions
Sets theRestOp.allowedSerializerOptions()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
allowedParserOptions
Sets theRestOp.allowedParserOptions()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
noInherit
Sets theRestOp.noInherit()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
read
Sets theRestOp.read()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
- Since:
- 10.0.0
-
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.
-