Interface Encoding

All Superinterfaces:
Constructible, Extensible

public interface Encoding extends Constructible, Extensible
Encoding
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static enum 
     
  • Method Summary

    Modifier and Type
    Method
    Description
    allowReserved(Boolean allowReserved)
    AllowReserved determines whether the parameter value SHOULD allow reserved characters to be encoded without percent-encoding.
    contentType(String contentType)
    The Content-Type for encoding a specific property.
    explode(Boolean explode)
    When this is true, property values of type array or object generate separate parameters for each value of the array, or key-value-pair of the map.
    AllowReserved determines whether the parameter value SHOULD allow reserved characters to be encoded without percent-encoding.
    The Content-Type for encoding a specific property.
    When this is true, property values of type array or object generate separate parameters for each value of the array, or key-value-pair of the map.
    Headers property of an Encoding is a map that allows additional information to be provided as headers
    Style describes how the encoding value will be serialized depending on the type of the parameter value.
    Headers property of an Encoding is a map that allows additional information to be provided as headers
    void
    setAllowReserved(Boolean allowReserved)
    AllowReserved determines whether the parameter value SHOULD allow reserved characters to be encoded without percent-encoding.
    void
    setContentType(String contentType)
    The Content-Type for encoding a specific property.
    void
    When this is true, property values of type array or object generate separate parameters for each value of the array, or key-value-pair of the map.
    void
    Headers property of an Encoding is a map that allows additional information to be provided as headers
    void
    Style describes how the encoding value will be serialized depending on the type of the parameter value.
    Style describes how the encoding value will be serialized depending on the type of the parameter value.

    Methods inherited from interface org.eclipse.microprofile.openapi.models.Extensible

    addExtension, getExtensions, setExtensions
  • Method Details

    • contentType

      Encoding contentType(String contentType)
      The Content-Type for encoding a specific property. Default value depends on the property type: i.e. for binary string - contentType is application/octet-stream, for primitive types - text/plain, for object - application/json.

      This method sets contentType property for the Encoding instance to the passed parameter and returns the modified instance

      Parameters:
      contentType - a string that describes the type of content of the encoding
      Returns:
      Encoding
    • getContentType

      String getContentType()
      The Content-Type for encoding a specific property. Default value depends on the property type: i.e. for binary string - contentType is application/octet-stream, for primitive types - text/plain, for object - application/json.

      This method returns the contentType property from an Encoding instance.

      Returns:
      String contentType
    • setContentType

      void setContentType(String contentType)
      The Content-Type for encoding a specific property. Default value depends on the property type: i.e. for binary string - contentType is application/octet-stream, for primitive types - text/plain, for object - application/json.

      This method sets thecontentType property of an Encoding instance to the passed contentType parameter.

      Parameters:
      contentType - a string that describes the type of content of the encoding
    • headers

      Encoding headers(Map<String,Header> headers)
      Headers property of an Encoding is a map that allows additional information to be provided as headers

      This method sets the headers property of Encoding instance to the passed headers argument and returns the modified instance.

      Parameters:
      headers - a map of name to corresponding header object
      Returns:
      Encoding
    • getHeaders

      Map<String,Header> getHeaders()
      Headers property of an Encoding is a map that allows additional information to be provided as headers

      This method returns the headers property from a Encoding instance.

      Returns:
      Map<String, Header> headers
    • setHeaders

      void setHeaders(Map<String,Header> headers)
      Headers property of an Encoding is a map that allows additional information to be provided as headers

      This method sets the headers property of Encoding instance to the passed headers argument.

      Parameters:
      headers - a map of name to corresponding header object
    • style

      Encoding style(Encoding.Style style)
      Style describes how the encoding value will be serialized depending on the type of the parameter value.

      This method sets the style property of Encoding instance to the passed style argument and returns the modified instance

      Parameters:
      style - a string that descibes how encoding value will be serialized
      Returns:
      Encoding
    • getStyle

      Encoding.Style getStyle()
      Style describes how the encoding value will be serialized depending on the type of the parameter value.

      This method returns the style property from a Encoding instance.

      Returns:
      String style
    • setStyle

      void setStyle(Encoding.Style style)
      Style describes how the encoding value will be serialized depending on the type of the parameter value.

      This method sets the style property of Encoding instance to the given style argument.

      Parameters:
      style - a string that descibes how encoding value will be serialized
    • explode

      Encoding explode(Boolean explode)
      When this is true, property values of type array or object generate separate parameters for each value of the array, or key-value-pair of the map. For other types of properties this property has no effect. When style is form, the default value is true. For all other styles, the default value is false.

      This method sets the explode property of Encoding instance to the given explode argument and returns the instance.

      Parameters:
      explode - a boolean that indicates whether the property values of array or object will generate separate parameters
      Returns:
      Encoding
    • getExplode

      Boolean getExplode()
      When this is true, property values of type array or object generate separate parameters for each value of the array, or key-value-pair of the map. For other types of properties this property has no effect. When style is form, the default value is true. For all other styles, the default value is false.

      This method returns the explode property from a Encoding instance.

      Returns:
      Boolean explode
    • setExplode

      void setExplode(Boolean explode)
      When this is true, property values of type array or object generate separate parameters for each value of the array, or key-value-pair of the map. For other types of properties this property has no effect. When style is form, the default value is true. For all other styles, the default value is false.

      This method sets the explode property of Encoding instance to the given explode argument.

      Parameters:
      explode - a boolean that indicates whether the property values of array or object will generate separate parameters
    • allowReserved

      Encoding allowReserved(Boolean allowReserved)
      AllowReserved determines whether the parameter value SHOULD allow reserved characters to be encoded without percent-encoding.

      This method sets the allowReserved property of Encoding instance to the given allowReserved argument and returns the instance.

      Parameters:
      allowReserved - a boolean that determines whether the parameter value SHOULD allow reserved characters
      Returns:
      Encoding
    • getAllowReserved

      Boolean getAllowReserved()
      AllowReserved determines whether the parameter value SHOULD allow reserved characters to be encoded without percent-encoding.

      This method returns the allowReserved property from a Encoding instance.

      Returns:
      Boolean allowReserved
    • setAllowReserved

      void setAllowReserved(Boolean allowReserved)
      AllowReserved determines whether the parameter value SHOULD allow reserved characters to be encoded without percent-encoding.

      This method sets the allowReserved property to the given allowReserved argument.

      Parameters:
      allowReserved - a boolean that determines whether the parameter value SHOULD allow reserved characters