Class RestAnnotation.Builder
java.lang.Object
org.apache.juneau.annotation.AnnotationBuilder
org.apache.juneau.annotation.TargetedAnnotationBuilder
org.apache.juneau.annotation.TargetedAnnotationTBuilder
org.apache.juneau.rest.annotation.RestAnnotation.Builder
- Enclosing class:
RestAnnotation
Builder class.
See Also:
-
Constructor Summary
-
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.Sets theRest.beanStore()
property on this annotation.build()
Instantiates a new@Rest
object initialized with this builder.callLogger
(Class<? extends CallLogger> value) Sets theRest.callLogger()
property on this annotation.Sets theRest.children()
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.converters
(Class<? extends RestConverter>... value) Sets theRest.converters()
property on this annotation.Sets theRest.debug()
property on this annotation.debugEnablement
(Class<? extends DebugEnablement> value) Sets theRest.debugEnablement()
property on this annotation.Sets theRest.debugOn()
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 theRest.description()
property on this annotation.disableContentParam
(String value) Sets theRest.disableContentParam()
property on this annotation.Sets theRest.encoders()
property on this annotation.Sets theRest.guards()
property on this annotation.Sets theRest.maxInput()
property on this annotation.Sets theRest.messages()
property on this annotation.Appends the classes that this annotation applies to.The targets this annotation applies to.Appends the classes that this annotation applies to.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.produces()
property on this annotation.renderResponseStackTraces
(String value) Sets theRest.renderResponseStackTraces()
property on this annotation.responseProcessors
(Class<? extends ResponseProcessor>... value) Sets theRest.responseProcessors()
property on this annotation.restChildrenClass
(Class<? extends RestChildren> value) Sets theRest.restChildrenClass()
property on this annotation.restOpArgs
(Class<? extends RestOpArg>... value) Sets theRest.restOpArgs()
property on this annotation.restOperationsClass
(Class<? extends RestOperations> value) Sets theRest.restOperationsClass()
property on this annotation.Sets theRest.roleGuard()
property on this annotation.rolesDeclared
(String value) Sets theRest.rolesDeclared()
property on this annotation.serializers
(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.
-
Constructor Details
-
Builder
protected Builder()Constructor.
-
-
Method Details
-
build
Instantiates a new@Rest
object initialized with this builder.- Returns:
- A new
@Rest
object.
-
disableContentParam
Sets theRest.disableContentParam()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
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.
-
beanStore
Sets theRest.beanStore()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
callLogger
Sets theRest.callLogger()
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.
-
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.
-
consumes
Sets theRest.consumes()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
converters
Sets theRest.converters()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
debug
Sets theRest.debug()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
debugEnablement
Sets theRest.debugEnablement()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
debugOn
Sets theRest.debugOn()
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.
-
description
Sets theRest.description()
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.
-
produces
Sets theRest.produces()
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
Sets theRest.responseProcessors()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
restChildrenClass
Sets theRest.restChildrenClass()
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.
-
restOperationsClass
Sets theRest.restOperationsClass()
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.
-
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.
-
on
Description copied from class:TargetedAnnotationBuilder
The targets this annotation applies to.- Overrides:
on
in classTargetedAnnotationTBuilder
- Parameters:
values
- The targets this annotation applies to.- Returns:
- This object.
-
on
Description copied from class:TargetedAnnotationTBuilder
Appends the classes that this annotation applies to.- Overrides:
on
in classTargetedAnnotationTBuilder
- Parameters:
value
- The values to append.- Returns:
- This object.
-
onClass
Description copied from class:TargetedAnnotationTBuilder
Appends the classes that this annotation applies to.- Overrides:
onClass
in classTargetedAnnotationTBuilder
- Parameters:
value
- The values to append.- Returns:
- This object.
-