上一个类
下一个类
框架
无框架
所有类
摘要: 嵌套 | 字段 | 构造方法 | 方法
详细信息: 字段 | 构造方法 | 方法
com.caucho.services.client
接口 ServiceProxyFactory
所有已知实现类: BurlapProxyFactory , HessianProxyFactory
public interface ServiceProxyFactory
Factory for creating client stubs. The returned stub will
call the remote object for all methods.
URL url = new URL("http://localhost:8080/ejb/hello");
HelloHome hello = (HelloHome) factory.create(HelloHome.class, url);
After creation, the stub can be like a regular Java class. Because
it makes remote calls, it can throw more exceptions than a Java class.
In particular, it may throw protocol exceptions.
方法摘要
java.lang.Object
create (java.lang.Class api,
java.lang.String url)
Creates a new proxy with the specified URL.
create
java.lang.Object create (java.lang.Class api,
java.lang.String url)
throws java.net.MalformedURLException
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);
参数: api
- the interface the proxy class needs to implementurl
- the URL where the client object is located.
返回: a proxy to the object with the specified interface.
抛出:
java.net.MalformedURLException
上一个类
下一个类
框架
无框架
所有类
摘要: 嵌套 | 字段 | 构造方法 | 方法
详细信息: 字段 | 构造方法 | 方法