This will execute the queries.
Inheritance Hierarchy
Ontotext.S4.clientHttpClient
Namespace: Ontotext.S4.client
Assembly: S4ClientLibrary (in S4ClientLibrary.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
The HttpClient type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| HttpClient(String, String) |
Create a client that uses the {@link #DEFAULT_BASE_URL default base
URL}.
| |
| HttpClient(Uri, String, String) |
Create a client using a specified base URL (for advanced use only -
the default URL will work for all normal cases).
|
Methods
| Name | Description | |
|---|---|---|
| delete |
Perform an HTTP DELETE request for the given resource.
| |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| getT |
Perform an HTTP GET request, parsing the JSON response to create a
new object.
| |
| getBaseUrl | ||
| getForUpdate |
Perform an HTTP GET request, parsing the JSON response to update
the state of an existing object.
| |
| GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
| getRedirect |
Perform an HTTP GET request on a URL whose response is expected to
be a 3xx redirection, and return the target redirection URL.
| |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| postT | ||
| postForUpdate |
Perform an HTTP POST request, parsing the JSON response to update
the state of an existing object.
| |
| readError |
Read an error response from the given connection and throw a
suitable {@link HttpClientException}. This method always throws an
exception, it will never return normally.
| |
| readResponseOrErrorT(HttpWebResponse, T) |
Read a response or error message from the given connection,
handling any 303 redirect responses.
| |
| readResponseOrErrorT(HttpWebResponse, T, Boolean) |
Read a response or error message from the given connection,
handling any 303 redirect responses if followRedirects | |
| readResponseOrErrorForUpdateT |
Read a response or error message from the given connection, and
update the state of the given object.
| |
| requestT |
Make an API request and parse the JSON response into a new object.
| |
| requestForStream |
Make an API request and return the raw data from the response as an
InputStream.
| |
| requestForUpdate |
Make an API request and parse the JSON response, using the response
to update the state of an existing object.
| |
| sendRequest |
Handles the sending side of an HTTP request, returning a connection
from which the response (or error) can be read.
| |
| ToString | Returns a string that represents the current object. (Inherited from Object.) |
Fields
| Name | Description | |
|---|---|---|
| baseUrl |
The base URL that will be used to resolve any relative request
URIs.
| |
| DEFAULT_BASE_URL |
The standard base URI for the S4 API.
| |
| nc |
The HTTP basic authentication header that will be appended to all
requests.
|
See Also