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.
  • Method Details

    • 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.