C# Class OpenMetaverse.Http.CapsServer

显示文件 Open project: 3di/3di-viewer-rei-libs

Public Methods

Method Description
CapsServer ( IPAddress address, int port ) : System
CapsServer ( IPAddress address, int port, X509Certificate sslCertificate, X509Certificate rootCA, bool requireClientCertificate ) : System
CapsServer ( WebServer httpServer, string handlerPath ) : System
CreateCapability ( HttpRequestCallback localHandler, bool clientCertRequired ) : UUID
CreateCapability ( HttpRequestCallback localHandler, bool clientCertRequired, double ttlSeconds ) : UUID
CreateCapability ( Uri remoteHandler, bool clientCertRequired ) : UUID
CreateCapability ( Uri remoteHandler, bool clientCertRequired, double ttlSeconds ) : UUID
RemoveCapability ( UUID id ) : bool
Start ( ) : void
Stop ( ) : void

Private Methods

Method Description
BuildCapsHandler ( string path ) : HttpServer.HttpRequestHandler
CapsCallback ( IHttpClientContext client, IHttpRequest request, IHttpResponse response ) : bool
ProxyCapCallback ( IHttpClientContext client, IHttpRequest request, IHttpResponse response, Uri remoteHandler ) : void

Method Details

CapsServer() public method

public CapsServer ( IPAddress address, int port ) : System
address System.Net.IPAddress
port int
return System

CapsServer() public method

public CapsServer ( IPAddress address, int port, X509Certificate sslCertificate, X509Certificate rootCA, bool requireClientCertificate ) : System
address System.Net.IPAddress
port int
sslCertificate System.Security.Cryptography.X509Certificates.X509Certificate
rootCA System.Security.Cryptography.X509Certificates.X509Certificate
requireClientCertificate bool
return System

CapsServer() public method

public CapsServer ( WebServer httpServer, string handlerPath ) : System
httpServer HttpServer.WebServer
handlerPath string
return System

CreateCapability() public method

public CreateCapability ( HttpRequestCallback localHandler, bool clientCertRequired ) : UUID
localHandler HttpRequestCallback
clientCertRequired bool
return UUID

CreateCapability() public method

public CreateCapability ( HttpRequestCallback localHandler, bool clientCertRequired, double ttlSeconds ) : UUID
localHandler HttpRequestCallback
clientCertRequired bool
ttlSeconds double
return UUID

CreateCapability() public method

public CreateCapability ( Uri remoteHandler, bool clientCertRequired ) : UUID
remoteHandler System.Uri
clientCertRequired bool
return UUID

CreateCapability() public method

public CreateCapability ( Uri remoteHandler, bool clientCertRequired, double ttlSeconds ) : UUID
remoteHandler System.Uri
clientCertRequired bool
ttlSeconds double
return UUID

RemoveCapability() public method

public RemoveCapability ( UUID id ) : bool
id UUID
return bool

Start() public method

public Start ( ) : void
return void

Stop() public method

public Stop ( ) : void
return void