public class ConfigurationImpl extends Object implements org.apache.olingo.client.api.Configuration
| Constructor and Description |
|---|
ConfigurationImpl() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.olingo.commons.api.format.ContentType |
getDefaultBatchAcceptFormat() |
org.apache.olingo.commons.api.format.ContentType |
getDefaultFormat() |
org.apache.olingo.commons.api.format.ContentType |
getDefaultMediaFormat() |
org.apache.olingo.commons.api.format.ContentType |
getDefaultPubFormat() |
org.apache.olingo.commons.api.format.ContentType |
getDefaultValueFormat() |
ExecutorService |
getExecutor() |
org.apache.olingo.client.api.http.HttpClientFactory |
getHttpClientFactory() |
org.apache.olingo.client.api.http.HttpUriRequestFactory |
getHttpUriRequestFactory() |
protected Object |
getProperty(String key,
Object defaultValue)
Gets given configuration property.
|
boolean |
isAddressingDerivedTypes() |
boolean |
isContinueOnError() |
boolean |
isGzipCompression() |
boolean |
isKeyAsSegment() |
boolean |
isUseChuncked() |
boolean |
isUseUrlOperationFQN() |
boolean |
isUseXHTTPMethod() |
void |
setAddressingDerivedTypes(boolean value) |
void |
setContinueOnError(boolean value) |
void |
setDefaultBatchAcceptFormat(org.apache.olingo.commons.api.format.ContentType contentType) |
void |
setDefaultMediaFormat(org.apache.olingo.commons.api.format.ContentType contentType) |
void |
setDefaultPubFormat(org.apache.olingo.commons.api.format.ContentType contentType) |
void |
setDefaultValueFormat(org.apache.olingo.commons.api.format.ContentType contentType) |
void |
setExecutor(ExecutorService executorService) |
void |
setGzipCompression(boolean value) |
void |
setHttpClientFactory(org.apache.olingo.client.api.http.HttpClientFactory factory) |
void |
setHttpUriRequestFactory(org.apache.olingo.client.api.http.HttpUriRequestFactory factory) |
void |
setKeyAsSegment(boolean value) |
protected Object |
setProperty(String key,
Object value)
Sets new configuration property.
|
void |
setUseChuncked(boolean value) |
void |
setUseUrlOperationFQN(boolean value) |
void |
setUseXHTTPMethod(boolean value) |
protected Object getProperty(String key, Object defaultValue)
key - key value of the property to be retrieved.defaultValue - default value to be used in case of the given key doesn't exist.protected Object setProperty(String key, Object value)
key - configuration property key.value - configuration property value.public org.apache.olingo.commons.api.format.ContentType getDefaultBatchAcceptFormat()
getDefaultBatchAcceptFormat in interface org.apache.olingo.client.api.Configurationpublic void setDefaultBatchAcceptFormat(org.apache.olingo.commons.api.format.ContentType contentType)
setDefaultBatchAcceptFormat in interface org.apache.olingo.client.api.Configurationpublic org.apache.olingo.commons.api.format.ContentType getDefaultPubFormat()
getDefaultPubFormat in interface org.apache.olingo.client.api.Configurationpublic void setDefaultPubFormat(org.apache.olingo.commons.api.format.ContentType contentType)
setDefaultPubFormat in interface org.apache.olingo.client.api.Configurationpublic org.apache.olingo.commons.api.format.ContentType getDefaultFormat()
getDefaultFormat in interface org.apache.olingo.client.api.Configurationpublic org.apache.olingo.commons.api.format.ContentType getDefaultValueFormat()
getDefaultValueFormat in interface org.apache.olingo.client.api.Configurationpublic void setDefaultValueFormat(org.apache.olingo.commons.api.format.ContentType contentType)
setDefaultValueFormat in interface org.apache.olingo.client.api.Configurationpublic org.apache.olingo.commons.api.format.ContentType getDefaultMediaFormat()
getDefaultMediaFormat in interface org.apache.olingo.client.api.Configurationpublic void setDefaultMediaFormat(org.apache.olingo.commons.api.format.ContentType contentType)
setDefaultMediaFormat in interface org.apache.olingo.client.api.Configurationpublic org.apache.olingo.client.api.http.HttpClientFactory getHttpClientFactory()
getHttpClientFactory in interface org.apache.olingo.client.api.Configurationpublic void setHttpClientFactory(org.apache.olingo.client.api.http.HttpClientFactory factory)
setHttpClientFactory in interface org.apache.olingo.client.api.Configurationpublic org.apache.olingo.client.api.http.HttpUriRequestFactory getHttpUriRequestFactory()
getHttpUriRequestFactory in interface org.apache.olingo.client.api.Configurationpublic void setHttpUriRequestFactory(org.apache.olingo.client.api.http.HttpUriRequestFactory factory)
setHttpUriRequestFactory in interface org.apache.olingo.client.api.Configurationpublic boolean isUseXHTTPMethod()
isUseXHTTPMethod in interface org.apache.olingo.client.api.Configurationpublic void setUseXHTTPMethod(boolean value)
setUseXHTTPMethod in interface org.apache.olingo.client.api.Configurationpublic boolean isGzipCompression()
isGzipCompression in interface org.apache.olingo.client.api.Configurationpublic void setGzipCompression(boolean value)
setGzipCompression in interface org.apache.olingo.client.api.Configurationpublic boolean isUseChuncked()
isUseChuncked in interface org.apache.olingo.client.api.Configurationpublic void setUseChuncked(boolean value)
setUseChuncked in interface org.apache.olingo.client.api.Configurationpublic boolean isKeyAsSegment()
isKeyAsSegment in interface org.apache.olingo.client.api.Configurationpublic void setKeyAsSegment(boolean value)
setKeyAsSegment in interface org.apache.olingo.client.api.Configurationpublic boolean isAddressingDerivedTypes()
isAddressingDerivedTypes in interface org.apache.olingo.client.api.Configurationpublic void setAddressingDerivedTypes(boolean value)
setAddressingDerivedTypes in interface org.apache.olingo.client.api.Configurationpublic boolean isUseUrlOperationFQN()
isUseUrlOperationFQN in interface org.apache.olingo.client.api.Configurationpublic void setUseUrlOperationFQN(boolean value)
setUseUrlOperationFQN in interface org.apache.olingo.client.api.Configurationpublic boolean isContinueOnError()
isContinueOnError in interface org.apache.olingo.client.api.Configurationpublic void setContinueOnError(boolean value)
setContinueOnError in interface org.apache.olingo.client.api.Configurationpublic ExecutorService getExecutor()
getExecutor in interface org.apache.olingo.client.api.Configurationpublic void setExecutor(ExecutorService executorService)
setExecutor in interface org.apache.olingo.client.api.ConfigurationCopyright © 2013–2017 The Apache Software Foundation. All rights reserved.