public interface Encoding extends Constructible, Extensible
Modifier and Type | Interface and Description |
---|---|
static class |
Encoding.Style |
Modifier and Type | Method and Description |
---|---|
Encoding |
allowReserved(java.lang.Boolean allowReserved)
AllowReserved determines whether the parameter value SHOULD allow reserved characters to be encoded without percent-encoding.
|
Encoding |
contentType(java.lang.String contentType)
The Content-Type for encoding a specific property.
|
Encoding |
explode(java.lang.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.
|
java.lang.Boolean |
getAllowReserved()
AllowReserved determines whether the parameter value SHOULD allow reserved characters to be encoded without percent-encoding.
|
java.lang.String |
getContentType()
The Content-Type for encoding a specific property.
|
java.lang.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.
|
java.util.Map<java.lang.String,Header> |
getHeaders()
Headers property of an Encoding is a map that allows additional information to be provided as headers
|
Encoding.Style |
getStyle()
Style describes how the encoding value will be serialized depending on the type of the parameter value.
|
Encoding |
headers(java.util.Map<java.lang.String,Header> headers)
Headers property of an Encoding is a map that allows additional information to be provided as headers
|
void |
setAllowReserved(java.lang.Boolean allowReserved)
AllowReserved determines whether the parameter value SHOULD allow reserved characters to be encoded without percent-encoding.
|
void |
setContentType(java.lang.String contentType)
The Content-Type for encoding a specific property.
|
void |
setExplode(java.lang.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.
|
void |
setHeaders(java.util.Map<java.lang.String,Header> headers)
Headers property of an Encoding is a map that allows additional information to be provided as headers
|
void |
setStyle(Encoding.Style style)
Style describes how the encoding value will be serialized depending on the type of the parameter value.
|
Encoding |
style(Encoding.Style style)
Style describes how the encoding value will be serialized depending on the type of the parameter value.
|
addExtension, getExtensions, setExtensions
Encoding contentType(java.lang.String contentType)
This method sets contentType property for the Encoding instance to the passed parameter and returns the modified instance
contentType
- a string that describes the type of content of the encodingjava.lang.String getContentType()
This method returns the contentType property from an Encoding instance.
void setContentType(java.lang.String contentType)
This method sets thecontentType property of an Encoding instance to the passed contentType parameter.
contentType
- a string that describes the type of content of the encodingEncoding headers(java.util.Map<java.lang.String,Header> headers)
This method sets the headers property of Encoding instance to the passed headers argument and returns the modified instance.
headers
- a map of name to corresponding header objectjava.util.Map<java.lang.String,Header> getHeaders()
This method returns the headers property from a Encoding instance.
void setHeaders(java.util.Map<java.lang.String,Header> headers)
This method sets the headers property of Encoding instance to the passed headers argument.
headers
- a map of name to corresponding header objectEncoding style(Encoding.Style style)
This method sets the style property of Encoding instance to the passed style argument and returns the modified instance
style
- a string that descibes how encoding value will be serializedEncoding.Style getStyle()
This method returns the style property from a Encoding instance.
void setStyle(Encoding.Style style)
This method sets the style property of Encoding instance to the given style argument.
style
- a string that descibes how encoding value will be serializedEncoding explode(java.lang.Boolean explode)
This method sets the explode property of Encoding instance to the given explode argument and returns the instance.
explode
- a boolean that indicates whether the property values of array or object will generate separate parametersjava.lang.Boolean getExplode()
This method returns the explode property from a Encoding instance.
void setExplode(java.lang.Boolean explode)
This method sets the explode property of Encoding instance to the given explode argument.
explode
- a boolean that indicates whether the property values of array or object will generate separate parametersEncoding allowReserved(java.lang.Boolean allowReserved)
This method sets the allowReserved property of Encoding instance to the given allowReserved argument and returns the instance.
allowReserved
- a boolean that determines whether the parameter value SHOULD allow reserved charactersjava.lang.Boolean getAllowReserved()
This method returns the allowReserved property from a Encoding instance.
void setAllowReserved(java.lang.Boolean allowReserved)
This method sets the allowReserved property to the given allowReserved argument.
allowReserved
- a boolean that determines whether the parameter value SHOULD allow reserved characters