C# Class org.GraphDefined.Vanaheimr.Hermod.SOAP.AHTTPClient

An abstract base class for all HTTP clients.
Inheritance: IDisposable
显示文件 Open project: Vanaheimr/Hermod

Public Properties

Property Type Description
DefaultQueryTimeout System.TimeSpan
DefaultRemotePort IPPort

Public Methods

Method Description
AHTTPClient ( String ClientId, String Hostname, IPPort RemotePort, RemoteCertificateValidationCallback RemoteCertificateValidator = null, X509Certificate ClientCert = null, String HTTPVirtualHost = null, String UserAgent = DefaultHTTPUserAgent, System.TimeSpan QueryTimeout = null, DNSClient DNSClient = null ) : System

Create an abstract HTTP client.

Dispose ( ) : void

Dispose this object.

Protected Methods

Method Description
SendException ( System.DateTime Timestamp, Object Sender, Exception Exception ) : void

Notify that an exception occured.

SendHTTPError ( System.DateTime Timestamp, Object Sender, HTTPResponse HttpResponse ) : void

Notify that an HTTP error occured.

Method Details

AHTTPClient() public method

Create an abstract HTTP client.
public AHTTPClient ( String ClientId, String Hostname, IPPort RemotePort, RemoteCertificateValidationCallback RemoteCertificateValidator = null, X509Certificate ClientCert = null, String HTTPVirtualHost = null, String UserAgent = DefaultHTTPUserAgent, System.TimeSpan QueryTimeout = null, DNSClient DNSClient = null ) : System
ClientId String A unqiue identification of this client.
Hostname String The hostname to connect to.
RemotePort IPPort The remote TCP port to connect to.
RemoteCertificateValidator RemoteCertificateValidationCallback A delegate to verify the remote TLS certificate.
ClientCert System.Security.Cryptography.X509Certificates.X509Certificate The TLS client certificate to use.
HTTPVirtualHost String An optional HTTP virtual host name to use.
UserAgent String An optional HTTP user agent to use.
QueryTimeout System.TimeSpan An optional timeout for upstream queries.
DNSClient DNSClient An optional DNS client.
return System

Dispose() public method

Dispose this object.
public Dispose ( ) : void
return void

SendException() protected method

Notify that an exception occured.
protected SendException ( System.DateTime Timestamp, Object Sender, Exception Exception ) : void
Timestamp System.DateTime The timestamp of the exception.
Sender Object The sender of this exception.
Exception System.Exception The exception itself.
return void

SendHTTPError() protected method

Notify that an HTTP error occured.
protected SendHTTPError ( System.DateTime Timestamp, Object Sender, HTTPResponse HttpResponse ) : void
Timestamp System.DateTime The timestamp of the error received.
Sender Object The sender of this error message.
HttpResponse HTTPResponse The HTTP response related to this error message.
return void

Property Details

DefaultQueryTimeout public_oe static_oe property

The default timeout for upstream queries.
public static TimeSpan,System DefaultQueryTimeout
return System.TimeSpan

DefaultRemotePort public_oe static_oe property

The default remote TCP port to connect to.
public static IPPort DefaultRemotePort
return IPPort