Class BaseEndpoint
Abstract Base class for HTTP endpoints.
Inheritance
System.Object
BaseEndpoint
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()
Assembly: dotNetRDF.dll
Syntax
public abstract class BaseEndpoint : IConfigurationSerializable
Constructors
|
Improve this Doc
View Source
BaseEndpoint()
Creates a new Base Endpoint.
Declaration
|
Improve this Doc
View Source
BaseEndpoint(Uri)
Creates a new Base Endpoint.
Declaration
protected BaseEndpoint(Uri endpointUri)
Parameters
Type |
Name |
Description |
System.Uri |
endpointUri |
Endpoint URI. |
Properties
|
Improve this Doc
View Source
Credentials
Gets/Sets the HTTP authentication credentials to be used.
Declaration
public NetworkCredential Credentials { get; set; }
Property Value
Type |
Description |
System.Net.NetworkCredential |
|
|
Improve this Doc
View Source
HttpMode
Gets/Sets the HTTP Mode used for requests.
Declaration
public virtual string HttpMode { get; set; }
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 |
|
|
Improve this Doc
View Source
Uri
Gets the Endpoints URI.
Declaration
Property Value
Type |
Description |
System.Uri |
|
|
Improve this Doc
View Source
UseCredentialsForProxy
Declaration
public bool UseCredentialsForProxy { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
UserAgent
Gets/Sets the user agent string to pass in the request header.
Declaration
public string UserAgent { get; set; }
Property Value
Type |
Description |
System.String |
|
Methods
|
Improve this Doc
View Source
ApplyCustomRequestOptions(HttpWebRequest)
Method which may be overridden in derived classes to add any additional custom request options/headers to the request.
Declaration
protected virtual void ApplyCustomRequestOptions(HttpWebRequest httpRequest)
Parameters
Type |
Name |
Description |
System.Net.HttpWebRequest |
httpRequest |
HTTP Request. |
|
Improve this Doc
View Source
ApplyRequestOptions(HttpWebRequest)
Applies generic request options (timeout, authorization and proxy server) to a request.
Declaration
protected void ApplyRequestOptions(HttpWebRequest httpRequest)
Parameters
Type |
Name |
Description |
System.Net.HttpWebRequest |
httpRequest |
HTTP Request. |
|
Improve this Doc
View Source
ClearCredentials()
Clears any in-use credentials so subsequent requests will not use HTTP authentication.
Declaration
public void ClearCredentials()
|
Improve this Doc
View Source
ClearProxy()
Clears any in-use credentials so subsequent requests will not use a proxy server.
Declaration
|
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
SerializeConfiguration(ConfigurationSerializationContext)
Serializes the endpoints Credential and Proxy information.
Declaration
public virtual void SerializeConfiguration(ConfigurationSerializationContext context)
Parameters
|
Improve this Doc
View Source
SetCredentials(String, String)
Sets the HTTP Digest authentication credentials to be used.
Declaration
public void SetCredentials(string username, string password)
Parameters
Type |
Name |
Description |
System.String |
username |
Username. |
System.String |
password |
Password. |
|
Improve this Doc
View Source
SetCredentials(String, String, String)
Sets the HTTP Digest authentication credentials to be used.
Declaration
public void SetCredentials(string username, string password, string domain)
Parameters
Type |
Name |
Description |
System.String |
username |
Username. |
System.String |
password |
Password. |
System.String |
domain |
Domain. |
|
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. |
Implements
Extension Methods