C# Class hessiancsharp.client.CHessianProxyFactory

Factory for Proxy - creation.
Mostrar archivo Open project: timfel/csharp-hessian Class Usage Examples

Public Methods

Method Description
CHessianProxyFactory ( ) : System
CHessianProxyFactory ( string username, string password ) : System
CHessianProxyFactory ( string username, string password, WebProxy webproxy ) : System
Create ( Type type, string strUrl ) : Object

Creates a new proxy with the specified URL. The returned object is a proxy with the interface specified by api. string url = "http://localhost:8080/ejb/hello"); HelloHome hello = (HelloHome) factory.create(HelloHome.class, url);

Private Methods

Method Description
CreateHessianStandardProxy ( string strUrl, Type type ) : object

Creates proxy object using .NET - Remote proxy framework

Method Details

CHessianProxyFactory() public method

public CHessianProxyFactory ( ) : System
return System

CHessianProxyFactory() public method

public CHessianProxyFactory ( string username, string password ) : System
username string
password string
return System

CHessianProxyFactory() public method

public CHessianProxyFactory ( string username, string password, WebProxy webproxy ) : System
username string
password string
webproxy System.Net.WebProxy
return System

Create() public method

Creates a new proxy with the specified URL. The returned object is a proxy with the interface specified by api. string url = "http://localhost:8080/ejb/hello"); HelloHome hello = (HelloHome) factory.create(HelloHome.class, url);
public Create ( Type type, string strUrl ) : Object
type System.Type the interface the proxy class needs to implement
strUrl string the URL where the client object is located
return Object