HttpSource Class

public final class HttpSource
extends CopySource

A copy activity source for an HTTP file.

Constructor Summary

Constructor Description
HttpSource()

Creates an instance of HttpSource class.

Method Summary

Modifier and Type Method and Description
static HttpSource fromJson(JsonReader jsonReader)

Reads an instance of HttpSource from the JsonReader.

Object httpRequestTimeout()

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

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: Copy source type.

void validate()

Validates the instance.

HttpSource withDisableMetricsCollection(Object disableMetricsCollection)

Set the disableMetricsCollection property: If true, disable data store metrics collection.

HttpSource withHttpRequestTimeout(Object httpRequestTimeout)

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

HttpSource withMaxConcurrentConnections(Object maxConcurrentConnections)

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

HttpSource withSourceRetryCount(Object sourceRetryCount)

Set the sourceRetryCount property: Source retry count.

HttpSource withSourceRetryWait(Object sourceRetryWait)

Set the sourceRetryWait property: Source retry wait.

Methods inherited from CopySource

Methods inherited from java.lang.Object

Constructor Details

HttpSource

public HttpSource()

Creates an instance of HttpSource class.

Method Details

fromJson

public static HttpSource fromJson(JsonReader jsonReader)

Reads an instance of HttpSource from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of HttpSource if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the HttpSource.

httpRequestTimeout

public Object httpRequestTimeout()

Get the httpRequestTimeout property: Specifies the timeout for a HTTP client to get HTTP response from HTTP server. The default value is equivalent to System.Net.HttpWebRequest.Timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])).

Returns:

the httpRequestTimeout value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

HttpSource.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: Copy source type.

Overrides:

HttpSource.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

Overrides:

HttpSource.validate()

withDisableMetricsCollection

public HttpSource withDisableMetricsCollection(Object disableMetricsCollection)

Set the disableMetricsCollection property: If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean).

Overrides:

HttpSource.withDisableMetricsCollection(Object disableMetricsCollection)

Parameters:

disableMetricsCollection

withHttpRequestTimeout

public HttpSource withHttpRequestTimeout(Object httpRequestTimeout)

Set the httpRequestTimeout property: Specifies the timeout for a HTTP client to get HTTP response from HTTP server. The default value is equivalent to System.Net.HttpWebRequest.Timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])).

Parameters:

httpRequestTimeout - the httpRequestTimeout value to set.

Returns:

the HttpSource object itself.

withMaxConcurrentConnections

public HttpSource withMaxConcurrentConnections(Object maxConcurrentConnections)

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

Overrides:

HttpSource.withMaxConcurrentConnections(Object maxConcurrentConnections)

Parameters:

maxConcurrentConnections

withSourceRetryCount

public HttpSource withSourceRetryCount(Object sourceRetryCount)

Set the sourceRetryCount property: Source retry count. Type: integer (or Expression with resultType integer).

Overrides:

HttpSource.withSourceRetryCount(Object sourceRetryCount)

Parameters:

sourceRetryCount

withSourceRetryWait

public HttpSource withSourceRetryWait(Object sourceRetryWait)

Set the sourceRetryWait property: Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])).

Overrides:

HttpSource.withSourceRetryWait(Object sourceRetryWait)

Parameters:

sourceRetryWait

Applies to