Class RestAnnotation.Builder
java.lang.Object
org.apache.juneau.annotation.AnnotationBuilder<B>
org.apache.juneau.annotation.TargetedAnnotationBuilder<B>
org.apache.juneau.annotation.TargetedAnnotationTBuilder<RestAnnotation.Builder>
org.apache.juneau.rest.annotation.RestAnnotation.Builder
- Enclosing class:
- RestAnnotation
public static class RestAnnotation.Builder
extends TargetedAnnotationTBuilder<RestAnnotation.Builder>
Builder class.
 
See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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@Restobject 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.final RestAnnotation.Builderconverters(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.disableContentParam(String value) Sets theRest.disableContentParam()property on this annotation.final RestAnnotation.BuilderSets theRest.encoders()property on this annotation.final RestAnnotation.BuilderSets theRest.guards()property on this annotation.Sets theRest.maxInput()property on this annotation.Sets theRest.messages()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.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.restChildrenClass(Class<? extends RestChildren> value) Sets theRest.restChildrenClass()property on this annotation.final RestAnnotation.BuilderrestOpArgs(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.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.Methods inherited from class org.apache.juneau.annotation.TargetedAnnotationTBuilderon, onClassMethods 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@Restobject initialized with this builder.- Returns:
- A new @Restobject.
 
- 
disableContentParamSets theRest.disableContentParam()property on this annotation.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
allowedHeaderParamsSets theRest.allowedHeaderParams()property on this annotation.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
allowedMethodHeadersSets theRest.allowedMethodHeaders()property on this annotation.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
allowedMethodParamsSets theRest.allowedMethodParams()property on this annotation.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
beanStoreSets theRest.beanStore()property on this annotation.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
callLoggerSets theRest.callLogger()property on this annotation.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
childrenSets theRest.children()property on this annotation.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
clientVersionHeaderSets theRest.clientVersionHeader()property on this annotation.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
configSets theRest.config()property on this annotation.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
consumesSets theRest.consumes()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.
 
- 
debugSets theRest.debug()property on this annotation.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
debugEnablementSets theRest.debugEnablement()property on this annotation.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
debugOnSets theRest.debugOn()property on this annotation.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
defaultAcceptSets theRest.defaultAccept()property on this annotation.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
defaultCharsetSets theRest.defaultCharset()property on this annotation.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
defaultContentTypeSets theRest.defaultContentType()property on this annotation.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
defaultRequestAttributesSets theRest.defaultRequestAttributes()property on this annotation.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
defaultRequestHeadersSets theRest.defaultRequestHeaders()property on this annotation.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
defaultResponseHeadersSets theRest.defaultResponseHeaders()property on this annotation.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
encodersSets theRest.encoders()property on this annotation.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
guardsSets theRest.guards()property on this annotation.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
maxInputSets theRest.maxInput()property on this annotation.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
messagesSets theRest.messages()property on this annotation.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
parsersSets theRest.parsers()property on this annotation.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
partParserSets theRest.partParser()property on this annotation.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
partSerializerSets theRest.partSerializer()property on this annotation.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
pathSets theRest.path()property on this annotation.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
producesSets theRest.produces()property on this annotation.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
renderResponseStackTracesSets 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.
 
- 
restChildrenClassSets theRest.restChildrenClass()property on this annotation.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
restOpArgsSets theRest.restOpArgs()property on this annotation.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
restOperationsClassSets theRest.restOperationsClass()property on this annotation.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
roleGuardSets theRest.roleGuard()property on this annotation.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
rolesDeclaredSets theRest.rolesDeclared()property on this annotation.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
serializersSets theRest.serializers()property on this annotation.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
siteNameSets theRest.siteName()property on this annotation.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
staticFilesSets theRest.staticFiles()property on this annotation.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
swaggerSets theRest.swagger()property on this annotation.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
swaggerProviderSets theRest.swaggerProvider()property on this annotation.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
titleSets theRest.title()property on this annotation.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
uriAuthoritySets theRest.uriAuthority()property on this annotation.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
uriContextSets theRest.uriContext()property on this annotation.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
uriRelativitySets theRest.uriRelativity()property on this annotation.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
uriResolutionSets theRest.uriResolution()property on this annotation.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
 
-