Package org.apache.juneau.rest.server
Class RestAnnotation.Builder
java.lang.Object
org.apache.juneau.commons.AnnotationObject.Builder
org.apache.juneau.rest.server.RestAnnotation.Builder
- Enclosing class:
- RestAnnotation
Builder class.
See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallowedHeaderParams(String value) Sets theRest.allowedHeaderParams()property on this annotation.allowedMethodHeaders(String value) Sets theRest.allowedMethodHeaders()property on this annotation.allowedMethodParams(String value) Sets theRest.allowedMethodParams()property on this annotation.allowedParserOptions(String... value) Sets theRest.allowedParserOptions()property on this annotation.allowedSerializerOptions(String... value) Sets theRest.allowedSerializerOptions()property on this annotation.asyncCompletionExecutor(String value) Sets theRest.asyncCompletionExecutor()property on this annotation.asyncTimeoutMillis(String value) Sets theRest.asyncTimeoutMillis()property on this annotation.authenticator(Class<? extends RestAuthenticator> value) Sets theRest.authenticator()property on this annotation.build()Instantiates a new@Restobject initialized with this builder.Sets theRest.children()property on this annotation.childrenDefs(Child... value) Sets theRest.childrenDefs()property on this annotation.clientVersionHeader(String value) Sets theRest.clientVersionHeader()property on this annotation.Sets theRest.config()property on this annotation.Sets theRest.consumes()property on this annotation.final RestAnnotation.Builderconverters(Class<? extends RestConverter>... value) Sets theRest.converters()property on this annotation.debugMarshalling(String value) Sets theRest.debugMarshalling()property on this annotation.defaultAccept(String value) Sets theRest.defaultAccept()property on this annotation.defaultCharset(String value) Sets theRest.defaultCharset()property on this annotation.defaultContentType(String value) Sets theRest.defaultContentType()property on this annotation.defaultRequestAttributes(String... value) Sets theRest.defaultRequestAttributes()property on this annotation.defaultRequestHeaders(String... value) Sets theRest.defaultRequestHeaders()property on this annotation.defaultResponseHeaders(String... value) Sets theRest.defaultResponseHeaders()property on this annotation.description(String... value) Sets the description property on this annotation.disableContentParam(String value) Sets theRest.disableContentParam()property on this annotation.Sets theRest.eagerInit()property on this annotation.final RestAnnotation.BuilderSets theRest.encoders()property on this annotation.final RestAnnotation.BuilderSets theRest.guards()property on this annotation.lazyChildren(String value) Sets theRest.lazyChildren()property on this annotation.Sets theRest.maxInput()property on this annotation.mergeResponseProcessorsIntoHost(boolean value) Sets theRest.mergeResponseProcessorsIntoHost()property on this annotation.Sets theRest.messages()property on this annotation.Sets theRest.mixinDefs()property on this annotation.Sets theRest.mixins()property on this annotation.Sets theRest.noInherit()property on this annotation.observability(String value) Sets theRest.observability()property on this annotation.openApiProvider(Class<? extends OpenApiProvider> value) Sets theRest.openApiProvider()property on this annotation.Sets theRest.parsers()property on this annotation.partParser(Class<? extends HttpPartParser> value) Sets theRest.partParser()property on this annotation.partSerializer(Class<? extends HttpPartSerializer> value) Sets theRest.partSerializer()property on this annotation.Sets theRest.path()property on this annotation.Sets theRest.paths()property on this annotation.problemDetails(String value) Sets theRest.problemDetails()property on this annotation.Sets theRest.produces()property on this annotation.renderResponseStackTraces(String value) Sets theRest.renderResponseStackTraces()property on this annotation.final RestAnnotation.BuilderresponseProcessors(Class<? extends ResponseProcessor>... value) Sets theRest.responseProcessors()property on this annotation.final RestAnnotation.BuilderrestOpArgs(Class<? extends RestOpArg>... value) Sets theRest.restOpArgs()property on this annotation.Sets theRest.roleGuard()property on this annotation.rolesDeclared(String value) Sets theRest.rolesDeclared()property on this annotation.final RestAnnotation.Builderserializers(Class<? extends Serializer>... value) Sets theRest.serializers()property on this annotation.Sets theRest.siteName()property on this annotation.staticFiles(Class<? extends StaticFiles> value) Sets theRest.staticFiles()property on this annotation.Sets theRest.swagger()property on this annotation.swaggerProvider(Class<? extends SwaggerProvider> value) Sets theRest.swaggerProvider()property on this annotation.Sets theRest.title()property on this annotation.uriAuthority(String value) Sets theRest.uriAuthority()property on this annotation.uriContext(String value) Sets theRest.uriContext()property on this annotation.uriRelativity(String value) Sets theRest.uriRelativity()property on this annotation.uriResolution(String value) Sets theRest.uriResolution()property on this annotation.virtualThreads(String value) Sets theRest.virtualThreads()property on this annotation.Methods inherited from class org.apache.juneau.commons.AnnotationObject.Builder
getAnnotationType
-
Constructor Details
-
Builder
protected Builder()Constructor.
-
-
Method Details
-
allowedHeaderParams
Sets theRest.allowedHeaderParams()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
allowedMethodHeaders
Sets theRest.allowedMethodHeaders()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
allowedMethodParams
Sets theRest.allowedMethodParams()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
build
Instantiates a new@Restobject initialized with this builder.- Returns:
- A new
@Restobject.
-
description
Sets the description property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
authenticator
Sets theRest.authenticator()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
children
Sets theRest.children()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
childrenDefs
Sets theRest.childrenDefs()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
mixins
Sets theRest.mixins()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
mixinDefs
Sets theRest.mixinDefs()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
mergeResponseProcessorsIntoHost
Sets theRest.mergeResponseProcessorsIntoHost()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
clientVersionHeader
Sets theRest.clientVersionHeader()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
config
Sets theRest.config()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
eagerInit
Sets theRest.eagerInit()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
lazyChildren
Sets theRest.lazyChildren()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
consumes
Sets theRest.consumes()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
allowedSerializerOptions
Sets theRest.allowedSerializerOptions()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
allowedParserOptions
Sets theRest.allowedParserOptions()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
noInherit
Sets theRest.noInherit()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
converters
@SafeVarargs public final RestAnnotation.Builder converters(Class<? extends RestConverter>... value) Sets theRest.converters()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
defaultAccept
Sets theRest.defaultAccept()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
defaultCharset
Sets theRest.defaultCharset()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
defaultContentType
Sets theRest.defaultContentType()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
defaultRequestAttributes
Sets theRest.defaultRequestAttributes()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
defaultRequestHeaders
Sets theRest.defaultRequestHeaders()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
defaultResponseHeaders
Sets theRest.defaultResponseHeaders()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
disableContentParam
Sets theRest.disableContentParam()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
encoders
Sets theRest.encoders()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
guards
Sets theRest.guards()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
maxInput
Sets theRest.maxInput()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
messages
Sets theRest.messages()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
parsers
Sets theRest.parsers()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
partParser
Sets theRest.partParser()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
partSerializer
Sets theRest.partSerializer()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
path
Sets theRest.path()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
paths
Sets theRest.paths()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
produces
Sets theRest.produces()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
problemDetails
Sets theRest.problemDetails()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
debugMarshalling
Sets theRest.debugMarshalling()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
observability
Sets theRest.observability()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
virtualThreads
Sets theRest.virtualThreads()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
asyncTimeoutMillis
Sets theRest.asyncTimeoutMillis()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
asyncCompletionExecutor
Sets theRest.asyncCompletionExecutor()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
renderResponseStackTraces
Sets theRest.renderResponseStackTraces()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
responseProcessors
@SafeVarargs public final RestAnnotation.Builder responseProcessors(Class<? extends ResponseProcessor>... value) Sets theRest.responseProcessors()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
restOpArgs
Sets theRest.restOpArgs()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
roleGuard
Sets theRest.roleGuard()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
rolesDeclared
Sets theRest.rolesDeclared()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
serializers
Sets theRest.serializers()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
siteName
Sets theRest.siteName()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
staticFiles
Sets theRest.staticFiles()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
swagger
Sets theRest.swagger()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
swaggerProvider
Sets theRest.swaggerProvider()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
openApiProvider
Sets theRest.openApiProvider()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
title
Sets theRest.title()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
uriAuthority
Sets theRest.uriAuthority()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
uriContext
Sets theRest.uriContext()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
uriRelativity
Sets theRest.uriRelativity()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
uriResolution
Sets theRest.uriResolution()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-