|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.ejb.hessian.HessianStubFactory
public class HessianStubFactory
Factory for creating Hessian client stubs. The returned stub will call the remote object for all methods.
String 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.
| Constructor Summary | |
|---|---|
HessianStubFactory()
|
|
| Method Summary | |
|---|---|
java.lang.Object |
create(java.lang.Class api,
java.lang.String url)
Creates a new proxy with the specified URL. |
AbstractHessianInput |
getHessianInput(java.io.InputStream is)
|
HessianOutput |
getHessianOutput(java.io.OutputStream os)
|
HessianRemoteResolver |
getRemoteResolver()
Returns the remote resolver. |
Path |
getWorkPath()
|
java.lang.Object |
lookup(java.lang.String type,
java.lang.String url)
Looks up a proxy object. |
void |
setWorkPath(Path path)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HessianStubFactory()
| Method Detail |
|---|
public HessianRemoteResolver getRemoteResolver()
public void setWorkPath(Path path)
public Path getWorkPath()
public java.lang.Object create(java.lang.Class api,
java.lang.String url)
throws java.lang.Exception
String url = "http://localhost:8080/ejb/hello"); HelloHome hello = (HelloHome) factory.create(HelloHome.class, url);
java.lang.Exceptionpublic AbstractHessianInput getHessianInput(java.io.InputStream is)
public HessianOutput getHessianOutput(java.io.OutputStream os)
public java.lang.Object lookup(java.lang.String type,
java.lang.String url)
throws java.io.IOException
lookup in interface HessianRemoteResolverjava.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||