org.apache.olingo.server.api.prefer

## Class PreferencesApplied

- java.lang.Object
- - org.apache.olingo.server.api.prefer.PreferencesApplied

-     public final class PreferencesApplied
      extends Object

  Provides methods to set values suitable for the Preference-Applied HTTP response header as described in RFC 7240. There are named methods for preferences defined in the OData standard.

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class and Description
    --- | ---
    `static class` | `PreferencesApplied.Builder` Builder of OData serializer options.

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `Map<String,String>` | `getAppliedPreferences()` Gets the applied preferences.
    `String` | `toString()`
    `String` | `toValueString()` Returns a string representation that can be used as value of a Preference-Applied HTTP response header.
    `static PreferencesApplied.Builder` | `with()` Initializes the builder.

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

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

- - ### Method Detail

    - #### getAppliedPreferences

          public Map<String,String> getAppliedPreferences()

      Gets the applied preferences.
      Returns:
        a map from preference names to preference values

    - #### toValueString

          public String toValueString()

      Returns a string representation that can be used as value of a Preference-Applied HTTP response header.

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

    - #### with

          public static PreferencesApplied.Builder with()

      Initializes the builder.

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