IBaseClient<nativeRequestType> Interface

Type Parameters

nativeRequestType

type of a request for the native http client

public interface IBaseClient<nativeRequestType>

A client that communications with an OData service

Method Summary

Modifier and Type Method and Description
abstract CustomRequestBuilder<T> customRequest(String url, Class<T> responseType)

Gets a builder to execute a custom request

abstract BatchRequestBuilder batch()

Get the batch request builder.

abstract CustomRequestBuilder<com.google.gson.JsonElement> customRequest(String url)

Gets a builder to execute a custom request with a generic JSONObject response

abstract IHttpProvider<nativeRequestType> getHttpProvider()

Gets the HTTP provider

abstract ILogger getLogger()

Gets the logger

abstract ISerializer getSerializer()

Gets the serializer

abstract java.lang.String getServiceRoot()

Gets the service root

abstract java.lang.String getServiceSDKVersion()

Gets the service SDK version if the service SDK is in use, null otherwise

abstract void setServiceRoot(String value)

Sets the service root

Method Details

customRequest

public abstract CustomRequestBuilder customRequest(String url, Class responseType)

Gets a builder to execute a custom request

Parameters:

url - the url to send the request to
responseType - the class to deserialize the response to

Returns:

the custom request builder

batch

public abstract BatchRequestBuilder batch()

Get the batch request builder.

Returns:

a request builder to execute a batch.

customRequest

public abstract CustomRequestBuilder customRequest(String url)

Gets a builder to execute a custom request with a generic JSONObject response

Parameters:

url - the url to send the request to

Returns:

the custom request builder

getHttpProvider

public abstract IHttpProvider getHttpProvider()

Gets the HTTP provider

Returns:

the HTTP provider

getLogger

public abstract ILogger getLogger()

Gets the logger

Returns:

the logger

getSerializer

public abstract ISerializer getSerializer()

Gets the serializer

Returns:

the serializer

getServiceRoot

public abstract String getServiceRoot()

Gets the service root

Returns:

the service root

getServiceSDKVersion

public abstract String getServiceSDKVersion()

Gets the service SDK version if the service SDK is in use, null otherwise

Returns:

the service SDK version if the service SDK is in use, null otherwise

setServiceRoot

public abstract void setServiceRoot(String value)

Sets the service root

Parameters:

value - the service root

Applies to