|
||||||||||
上一个软件包 下一个软件包 | 框架 无框架 |
请参见:
描述
接口摘要 | |
---|---|
HessianConnection | Internal connection to a server. |
HessianConnectionFactory | Internal factory for creating connections to the server. |
HessianMetaInfoAPI | API retrieving hessian meta information. |
类摘要 | |
---|---|
AbstractHessianConnection | Internal connection to a server. |
AbstractHessianConnectionFactory | Internal factory for creating connections to the server. |
HessianProxy | Proxy implementation for Hessian clients. |
HessianProxyFactory | Factory for creating Hessian client stubs. |
HessianProxyResolver | Looks up remote objects in the proxy. |
HessianURLConnection | Internal connection to a server. |
HessianURLConnectionFactory | Internal factory for creating connections to the server. |
异常摘要 | |
---|---|
HessianConnectionException | Exception caused by failure of the client proxy to connect to the server. |
HessianRuntimeException | Wrapper for protocol exceptions thrown in the proxy. |
Portable client code for using Hessian services. Since this package is independent of all Resin code, its classes can be copied to a non-Resin client jar.
import com.caucho.hessian.client.HessianProxyFactory; ... URL url = new URL("http://localhost:8080/ejb/hello"); HelloHome hello = (HelloHome) factory.create(HelloHome.class, url); System.out.println("hello: " + hello.hello());
OutputStream os = new FileOutputStream("test.xml"); HessianOutput out = new HessianSerializerOutput(os); out.writeObject(obj); os.close();
InputStream is = new FileInputStream("test.xml"); HessianInput in = new HessianSerializerInput(in); Object obj = in.readObject(); is.close();
|
||||||||||
上一个软件包 下一个软件包 | 框架 无框架 |