C# Class hessiancsharp.client.CHessianMethodCaller

Zusammenfassung für CHessianMethodCaller.
Inheritance: AbstractCHessianMethodCaller
显示文件 Open project: timfel/csharp-hessian Class Usage Examples

Protected Properties

Property Type Description
m_proxy System.Net.WebProxy

Public Methods

Method Description
CHessianMethodCaller ( CHessianProxyFactory hessianProxyFactory, Uri uri ) : System.IO.Compression
CHessianMethodCaller ( CHessianProxyFactory hessianProxyFactory, Uri uri, string username, string password ) : System.IO.Compression
CHessianMethodCaller ( CHessianProxyFactory hessianProxyFactory, Uri uri, string username, string password, WebProxy proxy ) : System.IO.Compression
DoHessianMethodCall ( object arrMethodArgs, MethodInfo methodInfo ) : object

This method wrapps an instance call to the hessian requests, sends it to the hessian service and translates the reply of this call to the C# - data type

Protected Methods

Method Description
AddCustomHeadersToRequest ( WebRequest request, System.Web.SessionState.HttpSessionState session ) : void
OpenConnection ( Uri uri ) : WebRequest

Creates the URI connection.

PrepareWebRequest ( long contentLength ) : WebRequest

Prepares a WebRequest object for communication with the Hessian server.

ReadReply ( WebRequest webRequest, MethodInfo methodInfo, Stream &sInStream, int &totalBytesRead ) : object

Reads and decodes the reply.

SendRequest ( byte request, Stream &sOutStream ) : WebRequest

Sends the web request.

Method Details

AddCustomHeadersToRequest() protected method

protected AddCustomHeadersToRequest ( WebRequest request, System.Web.SessionState.HttpSessionState session ) : void
request System.Net.WebRequest
session System.Web.SessionState.HttpSessionState
return void

CHessianMethodCaller() public method

public CHessianMethodCaller ( CHessianProxyFactory hessianProxyFactory, Uri uri ) : System.IO.Compression
hessianProxyFactory CHessianProxyFactory
uri System.Uri
return System.IO.Compression

CHessianMethodCaller() public method

public CHessianMethodCaller ( CHessianProxyFactory hessianProxyFactory, Uri uri, string username, string password ) : System.IO.Compression
hessianProxyFactory CHessianProxyFactory
uri System.Uri
username string
password string
return System.IO.Compression

CHessianMethodCaller() public method

public CHessianMethodCaller ( CHessianProxyFactory hessianProxyFactory, Uri uri, string username, string password, WebProxy proxy ) : System.IO.Compression
hessianProxyFactory CHessianProxyFactory
uri System.Uri
username string
password string
proxy System.Net.WebProxy
return System.IO.Compression

DoHessianMethodCall() public method

This method wrapps an instance call to the hessian requests, sends it to the hessian service and translates the reply of this call to the C# - data type
public DoHessianMethodCall ( object arrMethodArgs, MethodInfo methodInfo ) : object
arrMethodArgs object The arguments to the method call
methodInfo System.Reflection.MethodInfo The method to call
return object

OpenConnection() protected method

Creates the URI connection.
protected OpenConnection ( Uri uri ) : WebRequest
uri System.Uri Uri for connection
return System.Net.WebRequest

PrepareWebRequest() protected method

Prepares a WebRequest object for communication with the Hessian server.
protected PrepareWebRequest ( long contentLength ) : WebRequest
contentLength long
return System.Net.WebRequest

ReadReply() protected method

Reads and decodes the reply.
protected ReadReply ( WebRequest webRequest, MethodInfo methodInfo, Stream &sInStream, int &totalBytesRead ) : object
webRequest System.Net.WebRequest
methodInfo System.Reflection.MethodInfo
sInStream Stream
totalBytesRead int
return object

SendRequest() protected method

Sends the web request.
protected SendRequest ( byte request, Stream &sOutStream ) : WebRequest
request byte
sOutStream Stream
return System.Net.WebRequest

Property Details

m_proxy protected_oe property

protected WebProxy,System.Net m_proxy
return System.Net.WebProxy