public class ODataPreferences extends Object
Constructor and Description |
---|
ODataPreferences() |
Modifier and Type | Method and Description |
---|---|
String |
allowEntityReferences()
The odata.allow-entityreferences preference indicates that the service is allowed to return entity references in
place of entities that have previously been returned, with at least the properties requested, in the same response
(for example, when serializing the expanded results of many-to-many relationships).
|
String |
callback(String url)
For scenarios in which links returned by the service are used by the client to poll for additional information, the
client can specify the odata.callback preference to request that the service notify the client when data is
available.
|
String |
continueOnError()
The odata.continue-on-error preference on a batch request is used to request that, upon encountering a request
within the batch that returns an error, the service return the error for that request and continue processing
additional requests within the batch.
|
String |
includeAnnotations(String value)
The odata.include-annotations preference in a request for data or metadata is used to specify the set of
annotations the client requests to be included, where applicable, in the response.
|
String |
keyAsSegment()
Gets the value of the non-standard preference that the URL should follow the convention
that keys are formatted as separate segments.
|
String |
maxPageSize(int size)
The odata.maxpagesize preference is used to request that each collection within the response contain no more than
the number of items specified as the positive integer value of this preference.
|
String |
respondAsync()
The respond-async preference, as defined in [HTTP-Prefer], allows clients to request that the service process the
request asynchronously.
|
String |
returnContent()
Prefer header, return content. |
String |
returnMinimal()
The return=representation and return=minimal preferences are defined in [HTTP-Prefer],
In OData, return=representation or return=minimal is defined for use with a POST, PUT, or PATCH Data Modification Request other than to a stream property, or to an Action Request. |
String |
returnNoContent()
Prefer header, return no content. |
String |
returnRepresentation()
The return=representation and return=minimal preferences are defined in [HTTP-Prefer],
In OData, return=representation or return=minimal is defined for use with a POST, PUT, or PATCH Data Modification Request other than to a stream property, or to an Action Request. |
String |
trackChanges()
The odata.track-changes preference is used to request that the service return a delta link that can subsequently be
used to obtain changes (deltas) to this result.
|
String |
wait(int value)
The wait preference, as defined in [HTTP-Prefer], is used to establish an upper bound on the length of time, in
seconds, the client is prepared to wait for the service to process the request synchronously once it has been
received.
|
public String returnContent()
Prefer
header, return content.HttpHeader.PREFER
public String returnNoContent()
Prefer
header, return no content.HttpHeader.PREFER
public String keyAsSegment()
HttpHeader.PREFER
public String allowEntityReferences()
HttpHeader.PREFER
public String callback(String url)
HttpHeader.PREFER
public String continueOnError()
HttpHeader.PREFER
public String includeAnnotations(String value)
HttpHeader.PREFER
public String maxPageSize(int size)
HttpHeader.PREFER
public String trackChanges()
HttpHeader.PREFER
public String respondAsync()
HttpHeader.PREFER
public String wait(int value)
HttpHeader.PREFER
public String returnMinimal()
HttpHeader.PREFER
public String returnRepresentation()
HttpHeader.PREFER
Copyright © 2013–2018 The Apache Software Foundation. All rights reserved.