Show / Hide Table of Contents

Class BaseHttpConnector

Abstract Base Class for HTTP based Storage API implementations.
Inheritance
System.Object
BaseHttpConnector
BaseAsyncHttpConnector
BaseStardogServer
SesameServer
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: VDS.RDF.Storage
Assembly: dotNetRDF.dll
Syntax
public abstract class BaseHttpConnector

Constructors

| Improve this Doc View Source

BaseHttpConnector()

Creates a new connector.
Declaration
protected BaseHttpConnector()

Properties

| Improve this Doc View Source

Password

Password for accessing the Store.
Declaration
protected string Password { get; }
Property Value
Type Description
System.String
| Improve this Doc View Source

Proxy

Gets/Sets a Proxy Server to be used.
Declaration
public IWebProxy Proxy { get; set; }
Property Value
Type Description
System.Net.IWebProxy
| Improve this Doc View Source

ProxyCredentials

Gets/Sets Credentials to be used for Proxy Server.
Declaration
public ICredentials ProxyCredentials { get; set; }
Property Value
Type Description
System.Net.ICredentials
| Improve this Doc View Source

Timeout

Gets/Sets the HTTP Timeouts used specified in milliseconds.
Declaration
public int Timeout { get; set; }
Property Value
Type Description
System.Int32
Remarks

Defaults to 30 seconds (i.e. the default value is 30,000).

It is important to understand that this timeout only applies to the HTTP request portions of any operation performed and that the timeout may apply more than once if a POST operation is used since the timeout applies separately to obtaining the request stream to POST the request and obtaining the response stream. Also the timeout does not in any way apply to subsequent work that may be carried out before the operation can return so if you need a hard timeout on an operation you should manage that yourself.

When set to a zero/negative value then the standard .Net timeout of 100 seconds will apply, use System.Int32.MaxValue if you want the maximum possible timeout i.e. if you expect to launch extremely long running operations.

Not supported under Silverlight, Windows Phone and Portable Class Library builds.

| Improve this Doc View Source

Username

Password for accessing the Store.
Declaration
protected string Username { get; }
Property Value
Type Description
System.String

Methods

| Improve this Doc View Source

ApplyRequestOptions(HttpWebRequest)

Helper method which applies standard request options to the request, these currently include proxy settings and HTTP timeout.
Declaration
protected HttpWebRequest ApplyRequestOptions(HttpWebRequest request)
Parameters
Type Name Description
System.Net.HttpWebRequest request HTTP Web Request.
Returns
Type Description
System.Net.HttpWebRequest HTTP Web Request with standard options applied.
| Improve this Doc View Source

ClearProxy()

Clears any in-use credentials so subsequent requests will not use a proxy server.
Declaration
public void ClearProxy()
| Improve this Doc View Source

ClearProxyCredentials()

Clears the in-use proxy credentials so subsequent requests still use the proxy server but without credentials.
Declaration
public void ClearProxyCredentials()
| Improve this Doc View Source

SerializeStandardConfig(INode, ConfigurationSerializationContext)

Helper method which adds standard configuration information (proxy and timeout settings) to serialized configuration.
Declaration
protected void SerializeStandardConfig(INode objNode, ConfigurationSerializationContext context)
Parameters
Type Name Description
INode objNode Object Node representing the IStorageProvider whose configuration is being serialized.
ConfigurationSerializationContext context Serialization Context.
| Improve this Doc View Source

SetCredentials(String, String)

Declaration
public void SetCredentials(string username, string password)
Parameters
Type Name Description
System.String username
System.String password
| Improve this Doc View Source

SetProxy(String)

Sets a Proxy Server to be used.
Declaration
public void SetProxy(string address)
Parameters
Type Name Description
System.String address Proxy Address.
| Improve this Doc View Source

SetProxy(Uri)

Sets a Proxy Server to be used.
Declaration
public void SetProxy(Uri address)
Parameters
Type Name Description
System.Uri address Proxy Address.
| Improve this Doc View Source

SetProxyCredentials(String, String)

Sets Credentials to be used for Proxy Server.
Declaration
public void SetProxyCredentials(string username, string password)
Parameters
Type Name Description
System.String username Username.
System.String password Password.
| Improve this Doc View Source

SetProxyCredentials(String, String, String)

Sets Credentials to be used for Proxy Server.
Declaration
public void SetProxyCredentials(string username, string password, string domain)
Parameters
Type Name Description
System.String username Username.
System.String password Password.
System.String domain Domain.

Extension Methods

Extensions.AsEnumerable<T>(T)
  • Improve this Doc
  • View Source
In This Article
  • Constructors
    • BaseHttpConnector()
  • Properties
    • Password
    • Proxy
    • ProxyCredentials
    • Timeout
    • Username
  • Methods
    • ApplyRequestOptions(HttpWebRequest)
    • ClearProxy()
    • ClearProxyCredentials()
    • SerializeStandardConfig(INode, ConfigurationSerializationContext)
    • SetCredentials(String, String)
    • SetProxy(String)
    • SetProxy(Uri)
    • SetProxyCredentials(String, String)
    • SetProxyCredentials(String, String, String)
  • Extension Methods
Back to top Generated by DocFX