Class MediaType.HeaderValue

java.lang.Object
org.elasticsearch.core.Tuple<String,Map<String,String>>
org.elasticsearch.xcontent.MediaType.HeaderValue
Enclosing interface:
MediaType

public static class MediaType.HeaderValue extends Tuple<String,Map<String,String>>
A class to represent supported mediaType values i.e. application/json and parameters to be validated. Parameters for validation is a map where a key is a parameter name, value is a parameter regex which is used for validation. Regex will be applied with case insensitivity.
  • Constructor Details

    • HeaderValue

      public HeaderValue(String headerValue, Map<String,String> parametersForValidation)
    • HeaderValue

      public HeaderValue(String headerValue)