org.apache.olingo.commons.api.format

## Class AcceptCharset

- java.lang.Object
- - org.apache.olingo.commons.api.format.AcceptCharset

-     public class AcceptCharset
      extends Object

- - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static List<AcceptCharset>` | `create(String acceptCharsets)` Creates a list of `AcceptCharset` objects based on given input string.
    `String` | `getCharset()`
    `String` | `getParameter(String name)`
    `Map<String,String>` | `getParameters()`
    `Float` | `getQuality()`
    `String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Method Detail

    - #### create

          public static List<AcceptCharset> create(String acceptCharsets)

      Creates a list of `AcceptCharset` objects based on given input string.
      Parameters:
        `acceptCharsets` - accept types, comma-separated, as specified for the HTTP header `Accept-Charset`
      Returns:
        a list of `AcceptType` objects
      Throws:
        `Exception`
        `IllegalArgumentException` - if input string is not parseable

    - #### getCharset

          public String getCharset()

    - #### getParameters

          public Map<String,String> getParameters()

    - #### getParameter

          public String getParameter(String name)

    - #### getQuality

          public Float getQuality()

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

Copyright © 2013–2022 The Apache Software Foundation. All rights reserved.