HttpServerLocation Class

public final class HttpServerLocation
extends DatasetLocation

The location of http server.

Constructor Summary

Constructor Description
HttpServerLocation()

Creates an instance of HttpServerLocation class.

Method Summary

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

Reads an instance of HttpServerLocation from the JsonReader.

Object relativeUrl()

Get the relativeUrl property: Specify the relativeUrl of http server.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: Type of dataset storage location.

void validate()

Validates the instance.

HttpServerLocation withFileName(Object fileName)

Set the fileName property: Specify the file name of dataset.

HttpServerLocation withFolderPath(Object folderPath)

Set the folderPath property: Specify the folder path of dataset.

HttpServerLocation withRelativeUrl(Object relativeUrl)

Set the relativeUrl property: Specify the relativeUrl of http server.

Methods inherited from DatasetLocation

Methods inherited from java.lang.Object

Constructor Details

HttpServerLocation

public HttpServerLocation()

Creates an instance of HttpServerLocation class.

Method Details

fromJson

public static HttpServerLocation fromJson(JsonReader jsonReader)

Reads an instance of HttpServerLocation from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of HttpServerLocation 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 HttpServerLocation.

relativeUrl

public Object relativeUrl()

Get the relativeUrl property: Specify the relativeUrl of http server. Type: string (or Expression with resultType string).

Returns:

the relativeUrl value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

HttpServerLocation.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: Type of dataset storage location.

Overrides:

HttpServerLocation.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

Overrides:

HttpServerLocation.validate()

withFileName

public HttpServerLocation withFileName(Object fileName)

Set the fileName property: Specify the file name of dataset. Type: string (or Expression with resultType string).

Overrides:

HttpServerLocation.withFileName(Object fileName)

Parameters:

fileName

withFolderPath

public HttpServerLocation withFolderPath(Object folderPath)

Set the folderPath property: Specify the folder path of dataset. Type: string (or Expression with resultType string).

Overrides:

HttpServerLocation.withFolderPath(Object folderPath)

Parameters:

folderPath

withRelativeUrl

public HttpServerLocation withRelativeUrl(Object relativeUrl)

Set the relativeUrl property: Specify the relativeUrl of http server. Type: string (or Expression with resultType string).

Parameters:

relativeUrl - the relativeUrl value to set.

Returns:

the HttpServerLocation object itself.

Applies to