Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
import org.apache.camel.component.olingo2.api.batch.Olingo2BatchResponse;
import org.apache.olingo.odata2.api.commons.HttpStatusCodes;
import org.apache.olingo.odata2.api.edm.Edm;
import org.apache.olingo.odata2.api.ep.EntityProviderReadProperties;
import org.apache.olingo.odata2.api.ep.EntityProviderWriteProperties;

/**
* Olingo2 Client Api Interface.
Expand All @@ -31,43 +33,71 @@ public interface Olingo2App {

/**
* Sets Service base URI.
*
*
* @param serviceUri
*/
void setServiceUri(String serviceUri);

/**
* Returns Service base URI.
*
*
* @return service base URI.
*/
String getServiceUri();

/**
* Sets custom Http headers to add to every service request.
*
*
* @param httpHeaders custom Http headers.
*/
void setHttpHeaders(Map<String, String> httpHeaders);

/**
* Specify custom entity provider read properties.
*
* @param entityProviderReadProperties the custom properties to set.
*/
void setEntityProviderReadProperties(EntityProviderReadProperties entityProviderReadProperties);

/**
* Obtains the custom entity provider read properties.
*
* @return the custom read properties.
*/
EntityProviderReadProperties getEntityProviderReadProperties();

/**
* Specify custom entity provider write properties.
*
* @param entityProviderWriteProperties the custom properties to set.
*/
void setEntityProviderWriteProperties(EntityProviderWriteProperties entityProviderWriteProperties);

/**
* Obtains the custom entity provider write properties.
*
* @return the custom write properties.
*/
EntityProviderWriteProperties getEntityProviderWriteProperties();

/**
* Returns custom Http headers.
*
*
* @return custom Http headers.
*/
Map<String, String> getHttpHeaders();

/**
* Returns content type for service calls. Defaults to
* <code>application/json;charset=utf-8</code>.
*
*
* @return content type.
*/
String getContentType();

/**
* Set default service call content type.
*
*
* @param contentType content type.
*/
void setContentType(String contentType);
Expand All @@ -79,7 +109,7 @@ public interface Olingo2App {

/**
* Reads an OData resource and invokes callback with appropriate result.
*
*
* @param edm Service Edm, read from calling
* <code>read(null, "$metdata", null, responseHandler)</code>
* @param resourcePath OData Resource path
Expand All @@ -94,7 +124,7 @@ public interface Olingo2App {
/**
* Reads an OData resource and invokes callback with the unparsed input
* stream.
*
*
* @param edm Service Edm, read from calling
* <code>read(null, "$metdata", null, responseHandler)</code>
* @param resourcePath OData Resource path
Expand All @@ -110,7 +140,7 @@ public interface Olingo2App {
* Deletes an OData resource and invokes callback with
* {@link org.apache.olingo.odata2.api.commons.HttpStatusCodes} on success,
* or with exception on failure.
*
*
* @param resourcePath resource path for Entry
* @param endpointHttpHeaders HTTP Headers to add/override the component
* versions
Expand All @@ -122,7 +152,7 @@ public interface Olingo2App {

/**
* Creates a new OData resource.
*
*
* @param edm service Edm
* @param resourcePath resource path to create
* @param endpointHttpHeaders HTTP Headers to add/override the component
Expand All @@ -134,7 +164,7 @@ public interface Olingo2App {

/**
* Updates an OData resource.
*
*
* @param edm service Edm
* @param resourcePath resource path to update
* @param endpointHttpHeaders HTTP Headers to add/override the component
Expand All @@ -148,7 +178,7 @@ public interface Olingo2App {

/**
* Patches/merges an OData resource using HTTP PATCH.
*
*
* @param edm service Edm
* @param resourcePath resource path to update
* @param endpointHttpHeaders HTTP Headers to add/override the component
Expand All @@ -162,7 +192,7 @@ public interface Olingo2App {

/**
* Patches/merges an OData resource using HTTP MERGE.
*
*
* @param edm service Edm
* @param resourcePath resource path to update
* @param endpointHttpHeaders HTTP Headers to add/override the component
Expand All @@ -176,7 +206,7 @@ public interface Olingo2App {

/**
* Executes a batch request.
*
*
* @param edm service Edm
* @param endpointHttpHeaders HTTP Headers to add/override the component
* versions
Expand Down
Loading