public class PreferencesImpl extends Object implements Preferences
Preferences.Preference, Preferences.Return| Constructor and Description |
|---|
PreferencesImpl(Collection<String> preferHeaders) |
| Modifier and Type | Method and Description |
|---|---|
URI |
getCallback()
Gets the value of the
url parameter of the preference
odata.callback or null if not set or the URI is not valid. |
Integer |
getMaxPageSize()
Gets the value of the preference
odata.maxpagesize
or null if not set or an invalid value has been set. |
Preferences.Preference |
getPreference(String name)
Gets named preference.
|
Preferences.Return |
getReturn()
Gets the value of the preference
return or null if not set
or the value is not valid. |
Integer |
getWait()
Gets the value of the preference
wait or null if not set
or the value is not valid. |
boolean |
hasAllowEntityReferences()
Whether the preference
odata.allow-entityreferences has been set. |
boolean |
hasContinueOnError()
Whether the preference
odata.continue-on-error has been set. |
boolean |
hasRespondAsync()
Whether the preference
respond-async has been set. |
boolean |
hasTrackChanges()
Whether the preference
odata.track-changes has been set. |
public PreferencesImpl(Collection<String> preferHeaders)
public Preferences.Preference getPreference(String name)
PreferencesgetPreference in interface Preferencesname - name of the preferencePreferences.Preference or null if no such preference has been setpublic boolean hasAllowEntityReferences()
Preferencesodata.allow-entityreferences has been set.hasAllowEntityReferences in interface Preferencespublic URI getCallback()
Preferencesurl parameter of the preference
odata.callback or null if not set or the URI is not valid.getCallback in interface Preferencespublic boolean hasContinueOnError()
Preferencesodata.continue-on-error has been set.hasContinueOnError in interface Preferencespublic Integer getMaxPageSize()
Preferencesodata.maxpagesize
or null if not set or an invalid value has been set.getMaxPageSize in interface Preferencespublic boolean hasTrackChanges()
Preferencesodata.track-changes has been set.hasTrackChanges in interface Preferencespublic Preferences.Return getReturn()
Preferencesreturn or null if not set
or the value is not valid.getReturn in interface Preferencespublic boolean hasRespondAsync()
Preferencesrespond-async has been set.hasRespondAsync in interface Preferencespublic Integer getWait()
Preferenceswait or null if not set
or the value is not valid.getWait in interface PreferencesCopyright © 2023. All rights reserved.