Class HeaderInfo
 The Header Object follows the structure of the Parameter Object with the following changes: it does not have a 
 
OpenAPI Specification:
The Header Object is composed of the following fields:
- description (string) - A brief description of the header (CommonMark syntax may be used)
- required (boolean) - Determines whether this header is mandatory (default is- false )
- deprecated (boolean) - Specifies that a header is deprecated
- allowEmptyValue (boolean) - Sets the ability to pass empty-valued headers
- style (string) - Describes how the header value will be serialized
- explode (boolean) - When true, header values of type array or object generate separate headers for each value
- allowReserved (boolean) - Determines whether the header value should allow reserved characters
- schema (- SchemaInfo) - The schema defining the type used for the header
- example (any) - Example of the header's potential value
- examples (map of- Example) - Examples of the header's potential value
Example:
   
   
See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionaddExample(String name, Example example) Adds a single value to theexamples property.copy()Make a deep copy of this object.<T> TGeneric property getter.Bean property getter:allowEmptyValue .Bean property getter:allowReserved .Bean property getter:deprecated .Bean property getter:description .Bean property getter:x-example .Bean property getter:examples .Bean property getter:required .getRef()Bean property getter:$ref .Bean property getter:required .Bean property getter:schema .keySet()Returns all the keys on this element.resolveRefs(OpenApi openApi, Deque<String> refStack, int maxDepth) Resolves any"$ref" attributes in this element.Generic property setter.setAllowEmptyValue(Boolean value) Bean property setter:allowEmptyValue .setAllowReserved(Boolean value) Bean property setter:allowReserved .setDeprecated(Boolean value) Bean property setter:deprecated .setDescription(String value) Bean property setter:description .setExample(Object value) Bean property setter:examples .setExamples(Map<String, Example> value) Bean property setter:headers .setExplode(Boolean value) Bean property setter:explode .Bean property setter:$ref .setRequired(Boolean value) Bean property setter:required .setSchema(SchemaInfo value) Bean property setter:schema .protected HeaderInfostrict()Sets strict mode on this bean.Sets strict mode on this bean.
- 
Constructor Details- 
HeaderInfopublic HeaderInfo()Default constructor.
- 
HeaderInfoCopy constructor.- Parameters:
- copyFrom- The object to copy.
 
 
- 
- 
Method Details- 
copyMake a deep copy of this object.- Returns:
- A deep copy of this object.
 
- 
strictDescription copied from class:OpenApiElementSets strict mode on this bean.- Overrides:
- strictin class- OpenApiElement
- Returns:
- This object
 
- 
strictDescription copied from class:OpenApiElementSets strict mode on this bean.- Overrides:
- strictin class- OpenApiElement
- Parameters:
- value- The new value for this property.
 Non-boolean values will be converted to boolean using- Boolean..- valueOf (value.toString())
 Can be- null (interpreted as- false ).
- Returns:
- This object
 
- 
getDescriptionBean property getter:description .A short description of the header. - Returns:
- The property value, or null if it is not set.
 
- 
setDescriptionBean property setter:description .A short description of the header. - Parameters:
- value- The new value for this property.
 Can be- null to unset the property.
- Returns:
- This object
 
- 
getRequiredBean property getter:required .The type of the object. - Returns:
- The property value, or null if it is not set.
 
- 
setRequiredBean property setter:required .The type of the object. - Parameters:
- value- The new value for this property.
 Property value is required.
 Valid values:- "string" 
- "number" 
- "integer" 
- "boolean" 
- "array" 
 
 Can be- null to unset the property.
- Returns:
- This object
 
- 
getExplodeBean property getter:required .The type of the object. - Returns:
- The property value, or null if it is not set.
 
- 
setExplodeBean property setter:explode .The type of the object. - Parameters:
- value- The new value for this property.
 Can be- null to unset the property.
- Returns:
- This object
 
- 
getDeprecatedBean property getter:deprecated .The type of the object. - Returns:
- The property value, or null if it is not set.
 
- 
setDeprecatedBean property setter:deprecated .The type of the object. - Parameters:
- value- The new value for this property.
 Can be- null to unset the property.
- Returns:
- This object
 
- 
getAllowEmptyValueBean property getter:allowEmptyValue .The type of the object. - Returns:
- The property value, or null if it is not set.
 
- 
setAllowEmptyValueBean property setter:allowEmptyValue .The type of the object. - Parameters:
- value- The new value for this property.
 Can be- null to unset the property.
- Returns:
- This object
 
- 
getAllowReservedBean property getter:allowReserved .The type of the object. - Returns:
- The property value, or null if it is not set.
 
- 
setAllowReservedBean property setter:allowReserved .The type of the object. - Parameters:
- value- The new value for this property.
 Can be- null to unset the property.
- Returns:
- This object
 
- 
getSchemaBean property getter:schema .- Returns:
- The property value, or null if it is not set.
 
- 
setSchemaBean property setter:schema .- Parameters:
- value- The new value for this property.
 Can be- null to unset the property.
- Returns:
- This object
 
- 
getRefBean property getter:$ref .- Returns:
- The property value, or null if it is not set.
 
- 
setRefBean property setter:$ref .- Parameters:
- value- The new value for this property.
 Can be- null to unset the property.
- Returns:
- This object
 
- 
getExampleBean property getter:x-example .- Returns:
- The property value, or null if it is not set.
 
- 
setExampleBean property setter:examples .- Parameters:
- value- The new value for this property.
 Can be- null to unset the property.
- Returns:
- This object
 
- 
getExamplesBean property getter:examples .The list of possible responses as they are returned from executing this operation. - Returns:
- The property value, or null if it is not set.
 
- 
setExamplesBean property setter:headers .A list of examples that are sent with the response. - Parameters:
- value- The new value for this property.
 Can be- null to unset the property.
- Returns:
- This object
 
- 
addExampleAdds a single value to theexamples property.- Parameters:
- name- The example name. Must not be- null .
- example- The example. Must not be- null .
- Returns:
- This object
 
- 
getDescription copied from class:OpenApiElementGeneric property getter.Can be used to retrieve non-standard Swagger fields such as "$ref" .- Overrides:
- getin class- OpenApiElement
- Type Parameters:
- T- The datatype to cast the value to.
- Parameters:
- property- The property name to retrieve.
- type- The datatype to cast the value to.
- Returns:
- The property value, or null if the property does not exist or is not set.
 
- 
setDescription copied from class:OpenApiElementGeneric property setter.Can be used to set non-standard Swagger fields such as "$ref" .- Overrides:
- setin class- OpenApiElement
- Parameters:
- property- The property name to set. Must not be- null .
- value- The new value for the property.
- Returns:
- This object
 
- 
keySetDescription copied from class:OpenApiElementReturns all the keys on this element.- Overrides:
- keySetin class- OpenApiElement
- Returns:
- All the keys on this element.
   
 Nevernull .
 
- 
resolveRefsResolves any"$ref" attributes in this element.- Parameters:
- openApi- The swagger document containing the definitions.
- refStack- Keeps track of previously-visited references so that we don't cause recursive loops.
- maxDepth- The maximum depth to resolve references.
 After that level is reached,- $refreferences will be left alone.
 Useful if you have very complex models and you don't want your swagger page to be overly-complex.
- Returns:
- This object with references resolved.
   
 May or may not be the same object.
 
 
-