Class RequestSwaggerVar
 The format for this var is 
 Used to resolve values returned by RestRequest.getSwagger()..
 
When multiple keys are used, returns the first non-null/empty value.
 
The possible values are:
- "contact" - Value returned by- Info.getContact()
- "description" - Value returned by- Info.getDescription()
- "externalDocs" - Value returned by- Swagger.getExternalDocs()
- "license" - Value returned by- Info.getLicense()
- "operationDescription" - Value returned by- Operation.getDescription()
- "operationSummary" - Value returned by- Operation.getSummary()
- "siteName" - Value returned by- Info.getSiteName()
- "tags" - Value returned by- Swagger.getTags()
- "termsOfService" - Value returned by- Info.getTermsOfService()
- "title" - See- Info.getTitle()
- "version" - See- Info.getVersion()
Example:
   String 
Notes:
- 
      This variable resolver requires that a RestRequestbean be available in the session bean store.
- For security reasons, nested and recursive variables are not resolved.
See Also:
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected booleanReturns whether nested variables are supported by this variable.protected booleanReturns whether variables in the resolved contents of this variable should also be resolved.booleancanResolve(VarResolverSession session) Returnstrue if this variable can be resolved in the specified session.resolve(VarResolverSession session, String key) The interface that needs to be implemented for subclasses ofSimpleVar.Methods inherited from class org.apache.juneau.svl.MultipartResolvingVardoResolve
- 
Field Details- 
NAMEThe name of this variable.- See Also:
 
 
- 
- 
Constructor Details- 
RequestSwaggerVarpublic RequestSwaggerVar()Constructor.
 
- 
- 
Method Details- 
allowNestedDescription copied from class:VarReturns whether nested variables are supported by this variable.For example, in "$X{$Y{xxx}}" , $Y is a nested variable that will be resolved if this method returnstrue .The default implementation of this method always returns true . Subclasses can override this method to override the default behavior.- Overrides:
- allowNestedin class- Var
- Returns:
- true if nested variables are supported by this variable.
 
- 
allowRecurseDescription copied from class:VarReturns whether variables in the resolved contents of this variable should also be resolved.For example, if "$X{xxx}" resolves to"$Y{xxx}" , then the $Y variable will be recursively resolved if this method returnstrue .The default implementation of this method always returns true .
 Subclasses can override this method to override the default behavior.As a general rule, variables that resolve user-entered data should not be recursively resolved as this may cause a security hole.- Overrides:
- allowRecursein class- Var
- Returns:
- true if resolved variables should be recursively resolved.
 
- 
resolvepublic String resolve(VarResolverSession session, String key) throws BasicHttpException, InternalServerError Description copied from class:VarThe interface that needs to be implemented for subclasses ofSimpleVar.- Specified by:
- resolvein class- Var
- Parameters:
- session- The session object used for a single instance of a var resolution.
- key- The inside argument of the variable.
- Returns:
- The resolved value.
- Throws:
- BasicHttpException
- InternalServerError
 
- 
canResolveDescription copied from class:VarReturnstrue if this variable can be resolved in the specified session.For example, some variable cannot resolve unless specific context or session objects are available. - Overrides:
- canResolvein class- Var
- Parameters:
- session- The current session.
- Returns:
- true if this variable can be resolved in the specified session.
 
 
-