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 getHttpRequestTimeout()

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

String getType()

Get the type property: Copy source type.

HttpSource setHttpRequestTimeout(Object httpRequestTimeout)

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

HttpSource setMaxConcurrentConnections(Object maxConcurrentConnections)

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

HttpSource setSourceRetryCount(Object sourceRetryCount)

Set the sourceRetryCount property: Source retry count.

HttpSource setSourceRetryWait(Object sourceRetryWait)

Set the sourceRetryWait property: Source retry wait.

JsonWriter toJson(JsonWriter jsonWriter)

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.

getHttpRequestTimeout

public Object getHttpRequestTimeout()

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.

getType

public String getType()

Get the type property: Copy source type.

Overrides:

HttpSource.getType()

Returns:

the type value.

setHttpRequestTimeout

public HttpSource setHttpRequestTimeout(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.

setMaxConcurrentConnections

public HttpSource 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:

HttpSource.setMaxConcurrentConnections(Object maxConcurrentConnections)

Parameters:

maxConcurrentConnections

setSourceRetryCount

public HttpSource setSourceRetryCount(Object sourceRetryCount)

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

Overrides:

HttpSource.setSourceRetryCount(Object sourceRetryCount)

Parameters:

sourceRetryCount

setSourceRetryWait

public HttpSource setSourceRetryWait(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.setSourceRetryWait(Object sourceRetryWait)

Parameters:

sourceRetryWait

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

HttpSource.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to