Class RestOptionsAnnotation.Builder
java.lang.Object
org.apache.juneau.annotation.AnnotationBuilder<B>
org.apache.juneau.annotation.TargetedAnnotationBuilder<B>
org.apache.juneau.annotation.TargetedAnnotationMBuilder<RestOptionsAnnotation.Builder>
org.apache.juneau.rest.annotation.RestOptionsAnnotation.Builder
- Enclosing class:
- RestOptionsAnnotation
public static class RestOptionsAnnotation.Builder
extends TargetedAnnotationMBuilder<RestOptionsAnnotation.Builder>
Builder class.
 
See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbuild()Instantiates a new@RestOptionsobject initialized with this builder.clientVersion(String value) Sets theRestOptions.clientVersion()property on this annotation.converters(Class<? extends RestConverter>... value) Sets theRestOptions.converters()property on this annotation.Sets theRestOptions.debug()property on this annotation.defaultAccept(String value) Sets theRestOptions.defaultAccept()property on this annotation.defaultCharset(String value) Sets theRestOptions.defaultCharset()property on this annotation.defaultRequestAttributes(String... value) Sets theRestOptions.defaultRequestAttributes()property on this annotation.defaultRequestHeaders(String... value) Sets theRestOptions.defaultRequestHeaders()property on this annotation.defaultRequestQueryData(String... value) Sets theRestOptions.defaultRequestQueryData()property on this annotation.defaultResponseHeaders(String... value) Sets theRestOptions.defaultResponseHeaders()property on this annotation.Sets theRestOptions.encoders()property on this annotation.Sets theRestOptions.guards()property on this annotation.matchers(Class<? extends RestMatcher>... value) Sets theRestOptions.matchers()property on this annotation.Sets theRestOptions.path()property on this annotation.Sets theRestOptions.produces()property on this annotation.Sets theRestOptions.roleGuard()property on this annotation.rolesDeclared(String value) Sets theRestOptions.rolesDeclared()property on this annotation.serializers(Class<? extends Serializer>... value) Sets theRestOptions.serializers()property on this annotation.Sets theRestOptions.summary()property on this annotation.Sets theRestOptions.swagger()property on this annotation.Sets theRestOptions.value()property on this annotation.Methods inherited from class org.apache.juneau.annotation.TargetedAnnotationMBuilderonMethods inherited from class org.apache.juneau.annotation.TargetedAnnotationBuilderonMethods inherited from class org.apache.juneau.annotation.AnnotationBuilderasThis, description
- 
Constructor Details- 
Builderprotected Builder()Constructor.
 
- 
- 
Method Details- 
buildInstantiates a new@RestOptionsobject initialized with this builder.- Returns:
- A new @RestOptionsobject.
 
- 
clientVersionSets theRestOptions.clientVersion()property on this annotation.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
converters@SafeVarargs public final RestOptionsAnnotation.Builder converters(Class<? extends RestConverter>... value) Sets theRestOptions.converters()property on this annotation.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
debugSets theRestOptions.debug()property on this annotation.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
defaultAcceptSets theRestOptions.defaultAccept()property on this annotation.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
defaultCharsetSets theRestOptions.defaultCharset()property on this annotation.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
defaultRequestQueryDataSets theRestOptions.defaultRequestQueryData()property on this annotation.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
defaultRequestAttributesSets theRestOptions.defaultRequestAttributes()property on this annotation.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
defaultRequestHeadersSets theRestOptions.defaultRequestHeaders()property on this annotation.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
defaultResponseHeadersSets theRestOptions.defaultResponseHeaders()property on this annotation.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
encodersSets theRestOptions.encoders()property on this annotation.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
guardsSets theRestOptions.guards()property on this annotation.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
matchers@SafeVarargs public final RestOptionsAnnotation.Builder matchers(Class<? extends RestMatcher>... value) Sets theRestOptions.matchers()property on this annotation.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
pathSets theRestOptions.path()property on this annotation.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
producesSets theRestOptions.produces()property on this annotation.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
roleGuardSets theRestOptions.roleGuard()property on this annotation.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
rolesDeclaredSets theRestOptions.rolesDeclared()property on this annotation.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
serializers@SafeVarargs public final RestOptionsAnnotation.Builder serializers(Class<? extends Serializer>... value) Sets theRestOptions.serializers()property on this annotation.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
summarySets theRestOptions.summary()property on this annotation.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
swaggerSets theRestOptions.swagger()property on this annotation.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
valueSets theRestOptions.value()property on this annotation.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
 
-