public interface Configuration
Modifier and Type | Method and Description |
---|---|
ContentType |
getDefaultBatchAcceptFormat()
Gets the configured default Accept header value format for a batch request.
|
ContentType |
getDefaultFormat()
Gets the configured OData format.
|
ContentType |
getDefaultMediaFormat()
Gets the configured OData media format.
|
ContentType |
getDefaultPubFormat()
Gets the configured OData format for AtomPub exchanges.
|
ContentType |
getDefaultValueFormat()
Gets the configured OData value format.
|
ExecutorService |
getExecutor()
Retrieves request executor service.
|
HttpClientFactory |
getHttpClientFactory()
Gets the HttpClient factory to be used for executing requests.
|
HttpUriRequestFactory |
getHttpUriRequestFactory()
Gets the HttpUriRequest factory for generating requests to be executed.
|
boolean |
isAddressingDerivedTypes()
Gets whether query URIs in request should contain fully qualified type name.
|
boolean |
isContinueOnError()
When processing a set of requests (in batch requests, for example), checks if the execution will be aborted after
first error encountered or not.
|
boolean |
isGzipCompression()
Checks whether Gzip compression (e.g.
|
boolean |
isKeyAsSegment()
Checks whether URIs contain entity key between parentheses (standard) or instead as additional segment
(non-standard).
|
boolean |
isUseChuncked()
Checks whether chunk HTTP encoding is being used.
|
boolean |
isUseUrlOperationFQN()
Checks whether operation name in request URI should be fully qualified name, which is required by OData V4
protocol, but some service may still choose to support shorter name.
|
boolean |
isUseXHTTPMethod()
Gets whether PUT, MERGE, PATCH, DELETE HTTP methods need to be translated to
POST with additional X-HTTTP-Method header.
|
void |
setAddressingDerivedTypes(boolean value)
Sets whether query URIs in request should contain fully qualified type name.
|
void |
setContinueOnError(boolean value)
When processing a set of requests (in batch requests, for example), sets if the execution will be aborted after
first error encountered or not.
|
void |
setDefaultBatchAcceptFormat(ContentType contentType)
Set the default Accept header value format for a batch request.
|
void |
setDefaultMediaFormat(ContentType format)
Sets the default OData media format.
|
void |
setDefaultPubFormat(ContentType format)
Sets the default OData format for AtomPub exchanges.
|
void |
setDefaultValueFormat(ContentType format)
Sets the default OData value format.
|
void |
setExecutor(ExecutorService executorService)
Sets request executor service.
|
void |
setGzipCompression(boolean value)
Sets Gzip compression (e.g.
|
void |
setHttpClientFactory(HttpClientFactory factory)
Sets the HttpClient factory to be used for executing requests.
|
void |
setHttpUriRequestFactory(HttpUriRequestFactory factory)
Sets the HttpUriRequest factory generating requests to be executed.
|
void |
setKeyAsSegment(boolean value)
Sets whether URIs shall be built with entity key between parentheses (standard) or instead as additional segment
(non-standard).
|
void |
setUseChuncked(boolean value)
Sets chunk HTTP encoding enabled or disabled.
|
void |
setUseUrlOperationFQN(boolean value)
Sets whether operation name in request URI should be fully qualified name, which is required by OData V4 protocol,
but some service may still choose to support shorter name.
|
void |
setUseXHTTPMethod(boolean value)
Sets whether PUT, MERGE, PATCH, DELETE HTTP methods need to be translated to
POST with additional X-HTTTP-Method header.
|
ContentType getDefaultBatchAcceptFormat()
void setDefaultBatchAcceptFormat(ContentType contentType)
contentType
- default Accept header value.ContentType getDefaultPubFormat()
void setDefaultPubFormat(ContentType format)
format
- default format.ContentType getDefaultFormat()
getDefaultPubFormat()
ContentType getDefaultValueFormat()
void setDefaultValueFormat(ContentType format)
format
- default format.ContentType getDefaultMediaFormat()
void setDefaultMediaFormat(ContentType format)
format
- default format.HttpClientFactory getHttpClientFactory()
void setHttpClientFactory(HttpClientFactory factory)
factory
- implementation of HttpClientFactory.HttpClientFactory
HttpUriRequestFactory getHttpUriRequestFactory()
void setHttpUriRequestFactory(HttpUriRequestFactory factory)
factory
- implementation of HttpUriRequestFactory.HttpUriRequestFactory
boolean isUseXHTTPMethod()
void setUseXHTTPMethod(boolean value)
value
- 'TRUE' to use tunneling.boolean isGzipCompression()
void setGzipCompression(boolean value)
value
- whether to use Gzip compression.boolean isUseChuncked()
void setUseChuncked(boolean value)
value
- whether to use chunk HTTP encoding.boolean isKeyAsSegment()
void setKeyAsSegment(boolean value)
value
- 'TRUE' to use this feature.boolean isAddressingDerivedTypes()
void setAddressingDerivedTypes(boolean value)
value
- 'TRUE' to use this feature.boolean isUseUrlOperationFQN()
void setUseUrlOperationFQN(boolean value)
value
- 'TRUE' to use this feature.boolean isContinueOnError()
void setContinueOnError(boolean value)
value
- 'TRUE' to use this feature.ExecutorService getExecutor()
void setExecutor(ExecutorService executorService)
executorService
- new executor services.Copyright © 2013–2018 The Apache Software Foundation. All rights reserved.