HttpReadSettings Class

public final class HttpReadSettings
extends StoreReadSettings

Http read settings.

Constructor Summary

Constructor Description
HttpReadSettings()

Creates an instance of HttpReadSettings class.

Method Summary

Modifier and Type Method and Description
Object getAdditionalColumns()

Get the additionalColumns property: Specifies the additional columns to be added to source data.

Object getAdditionalHeaders()

Get the additionalHeaders property: The additional HTTP headers in the request to the RESTful API.

Object getEnablePartitionDiscovery()

Get the enablePartitionDiscovery property: Indicates whether to enable partition discovery.

Object getPartitionRootPath()

Get the partitionRootPath property: Specify the root path where partition discovery starts from.

Object getRequestBody()

Get the requestBody property: The HTTP request body to the RESTful API if requestMethod is POST.

Object getRequestMethod()

Get the requestMethod property: The HTTP method used to call the RESTful API.

Object getRequestTimeout()

Get the requestTimeout property: Specifies the timeout for a HTTP client to get HTTP response from HTTP server.

HttpReadSettings setAdditionalColumns(Object additionalColumns)

Set the additionalColumns property: Specifies the additional columns to be added to source data.

HttpReadSettings setAdditionalHeaders(Object additionalHeaders)

Set the additionalHeaders property: The additional HTTP headers in the request to the RESTful API.

HttpReadSettings setEnablePartitionDiscovery(Object enablePartitionDiscovery)

Set the enablePartitionDiscovery property: Indicates whether to enable partition discovery.

HttpReadSettings setMaxConcurrentConnections(Object maxConcurrentConnections)

Set the maxConcurrentConnections property: The maximum concurrent connection count for the source data store.

HttpReadSettings setPartitionRootPath(Object partitionRootPath)

Set the partitionRootPath property: Specify the root path where partition discovery starts from.

HttpReadSettings setRequestBody(Object requestBody)

Set the requestBody property: The HTTP request body to the RESTful API if requestMethod is POST.

HttpReadSettings setRequestMethod(Object requestMethod)

Set the requestMethod property: The HTTP method used to call the RESTful API.

HttpReadSettings setRequestTimeout(Object requestTimeout)

Set the requestTimeout property: Specifies the timeout for a HTTP client to get HTTP response from HTTP server.

Methods inherited from StoreReadSettings

Methods inherited from java.lang.Object

Constructor Details

HttpReadSettings

public HttpReadSettings()

Creates an instance of HttpReadSettings class.

Method Details

getAdditionalColumns

public Object getAdditionalColumns()

Get the additionalColumns property: Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with resultType array of objects).

Returns:

the additionalColumns value.

getAdditionalHeaders

public Object getAdditionalHeaders()

Get the additionalHeaders property: The additional HTTP headers in the request to the RESTful API. Type: string (or Expression with resultType string).

Returns:

the additionalHeaders value.

getEnablePartitionDiscovery

public Object getEnablePartitionDiscovery()

Get the enablePartitionDiscovery property: Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType boolean).

Returns:

the enablePartitionDiscovery value.

getPartitionRootPath

public Object getPartitionRootPath()

Get the partitionRootPath property: Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string).

Returns:

the partitionRootPath value.

getRequestBody

public Object getRequestBody()

Get the requestBody property: The HTTP request body to the RESTful API if requestMethod is POST. Type: string (or Expression with resultType string).

Returns:

the requestBody value.

getRequestMethod

public Object getRequestMethod()

Get the requestMethod property: The HTTP method used to call the RESTful API. The default is GET. Type: string (or Expression with resultType string).

Returns:

the requestMethod value.

getRequestTimeout

public Object getRequestTimeout()

Get the requestTimeout property: Specifies the timeout for a HTTP client to get HTTP response from HTTP server.

Returns:

the requestTimeout value.

setAdditionalColumns

public HttpReadSettings setAdditionalColumns(Object additionalColumns)

Set the additionalColumns property: Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with resultType array of objects).

Parameters:

additionalColumns - the additionalColumns value to set.

Returns:

the HttpReadSettings object itself.

setAdditionalHeaders

public HttpReadSettings setAdditionalHeaders(Object additionalHeaders)

Set the additionalHeaders property: The additional HTTP headers in the request to the RESTful API. Type: string (or Expression with resultType string).

Parameters:

additionalHeaders - the additionalHeaders value to set.

Returns:

the HttpReadSettings object itself.

setEnablePartitionDiscovery

public HttpReadSettings setEnablePartitionDiscovery(Object enablePartitionDiscovery)

Set the enablePartitionDiscovery property: Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType boolean).

Parameters:

enablePartitionDiscovery - the enablePartitionDiscovery value to set.

Returns:

the HttpReadSettings object itself.

setMaxConcurrentConnections

public HttpReadSettings setMaxConcurrentConnections(Object maxConcurrentConnections)

Set the maxConcurrentConnections property: The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer).

Overrides:

HttpReadSettings.setMaxConcurrentConnections(Object maxConcurrentConnections)

Parameters:

maxConcurrentConnections

setPartitionRootPath

public HttpReadSettings setPartitionRootPath(Object partitionRootPath)

Set the partitionRootPath property: Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string).

Parameters:

partitionRootPath - the partitionRootPath value to set.

Returns:

the HttpReadSettings object itself.

setRequestBody

public HttpReadSettings setRequestBody(Object requestBody)

Set the requestBody property: The HTTP request body to the RESTful API if requestMethod is POST. Type: string (or Expression with resultType string).

Parameters:

requestBody - the requestBody value to set.

Returns:

the HttpReadSettings object itself.

setRequestMethod

public HttpReadSettings setRequestMethod(Object requestMethod)

Set the requestMethod property: The HTTP method used to call the RESTful API. The default is GET. Type: string (or Expression with resultType string).

Parameters:

requestMethod - the requestMethod value to set.

Returns:

the HttpReadSettings object itself.

setRequestTimeout

public HttpReadSettings setRequestTimeout(Object requestTimeout)

Set the requestTimeout property: Specifies the timeout for a HTTP client to get HTTP response from HTTP server.

Parameters:

requestTimeout - the requestTimeout value to set.

Returns:

the HttpReadSettings object itself.

Applies to