|
static Uri | ResolveUrl (string url) |
| Resolves a given URL in the context of the current file. More...
|
|
static WebRequest | OpenConnection (string url) |
| Opens WebRequest for a specified URL. This method resolves specified URL first, for a proper support of file name. Use CheckConnectionResponseCode(WebResponse) after establishing connection to ensure that it was Ok. This is a shortcut for OpenConnection(ResolveURL(URL), null, null). More...
|
|
static WebRequest | OpenConnection (Uri url, string user, string password) |
| Opens WebRequest for a specified URL with a specified basic user and password credentials. Use CheckConnectionResponseCode(WebResponse) after establishing connection to ensure that it was Ok. Credentials are used only when both user and password are non-null and non-empty. Specified credentials take precedence over authentication information that is supplied to this method as part of URL user info like "http://user:password@host:port/path/file". More...
|
|
static void | CheckConnectionResponseCode (WebResponse webResponse) |
| Checks connection response code and throws IOException if it is not Ok. More...
|
|
◆ URLInputStream()
static com.dxfeed.io.URLInputStream.URLInputStream |
( |
| ) |
|
|
inlinestaticprivate |
◆ CheckConnectionResponseCode()
static void com.dxfeed.io.URLInputStream.CheckConnectionResponseCode |
( |
WebResponse |
webResponse | ) |
|
|
inlinestatic |
Checks connection response code and throws IOException if it is not Ok.
- Parameters
-
webResponse | Response from the server. |
- Exceptions
-
IOException | If an I/O error occurs. |
◆ OpenConnection() [1/2]
static WebRequest com.dxfeed.io.URLInputStream.OpenConnection |
( |
string |
url | ) |
|
|
inlinestatic |
Opens WebRequest for a specified URL. This method resolves specified URL first, for a proper support of file name. Use CheckConnectionResponseCode(WebResponse) after establishing connection to ensure that it was Ok. This is a shortcut for OpenConnection(ResolveURL(URL), null, null).
- Parameters
-
- Returns
- A new WebRequest object.
- Exceptions
-
NotSupportedException | The request scheme specified in requestUri is not registered. |
ArgumentNullException | RequestUri is null. |
System.Security.SecurityException | The caller does not have permission to connect to the requested URI or a URI that the request is redirected to. |
◆ OpenConnection() [2/2]
static WebRequest com.dxfeed.io.URLInputStream.OpenConnection |
( |
Uri |
url, |
|
|
string |
user, |
|
|
string |
password |
|
) |
| |
|
inlinestatic |
Opens WebRequest for a specified URL with a specified basic user and password credentials. Use CheckConnectionResponseCode(WebResponse) after establishing connection to ensure that it was Ok. Credentials are used only when both user and password are non-null and non-empty. Specified credentials take precedence over authentication information that is supplied to this method as part of URL user info like "http://user:password@host:port/path/file".
- Parameters
-
url | Url the URL. |
user | The user name (may be null). |
password | The password (may be null). |
- Returns
- A new WebRequest object.
- Exceptions
-
NotSupportedException | The request scheme specified in requestUri is not registered. |
ArgumentNullException | RequestUri is null. |
System.Security.SecurityException | The caller does not have permission to connect to the requested URI or a URI that the request is redirected to. |
◆ ResolveUrl()
static Uri com.dxfeed.io.URLInputStream.ResolveUrl |
( |
string |
url | ) |
|
|
inlinestatic |
Resolves a given URL in the context of the current file.
- Parameters
-
url | Url, relative, or absolute file name. |
- Returns
- Resolved url.
- Exceptions
-
ArgumentNullException | |
UriFormatException | |
◆ READ_TIMEOUT
readonly int com.dxfeed.io.URLInputStream.READ_TIMEOUT = 60000 |
|
staticprivate |
The documentation for this class was generated from the following file: