|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.exolab.jms.net.orb.AbstractORB
Abstract implementation of the ORB interface.
| Fields inherited from interface org.exolab.jms.net.orb.ORB |
PROVIDER_URI, SECURITY_CREDENTIALS, SECURITY_PRINCIPAL |
| Constructor Summary | |
AbstractORB(java.lang.ClassLoader loader,
java.util.Map properties)
Construct a new AbstractORB. |
|
| Method Summary | |
protected abstract void |
accept(URI uri)
Accept connections on the specified URI. |
void |
addRoute(java.lang.String uri,
java.lang.String toURI)
Add a route for exported objects. |
protected abstract URI |
connect(URI uri,
java.lang.String principal,
java.lang.String credentials)
Connect to the specified URI. |
protected Proxy |
doExportTo(java.lang.Object object,
URI uri)
Export an object to a specific URI. |
Proxy |
exportObject(java.lang.Object object)
Export an object on a default URI. |
Proxy |
exportObject(java.lang.Object object,
java.rmi.server.ObjID objID)
Export an object with a well known identifier on a default URI. |
Proxy |
exportObject(java.lang.Object object,
java.rmi.server.ObjID objID,
java.lang.String uri)
Export an object with a well known identifier on a specific URI. |
Proxy |
exportObject(java.lang.Object object,
java.lang.String uri)
Export an object on a specific URI. |
Proxy |
exportObjectTo(java.lang.Object object,
java.lang.String uri)
Export an object to a specific URI. |
Proxy |
exportObjectTo(java.lang.Object object,
java.lang.String uri,
java.lang.String principal,
java.lang.String credentials)
Export an object to a specific URI. |
protected int |
getExported()
Returns the no. |
java.lang.Object |
getObject(java.rmi.server.ObjID objID,
java.lang.String uri)
Returns the object associated with the specified ID, and URI. |
protected java.util.Map |
getProperties()
Returns the configuration properties. |
Proxy |
getProxy(java.lang.Object object,
java.lang.String uri)
Returns the proxy associated with the specified object, and URI. |
protected java.lang.ClassLoader |
getProxyClassLoader()
Returns the proxy class loader. |
void |
unexportObject(java.lang.Object object)
Unexport an object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.exolab.jms.net.orb.ORB |
addCallerListener, exportObjectTo, getCaller, getRegistry, getRegistry, removeCallerListener, shutdown |
| Constructor Detail |
public AbstractORB(java.lang.ClassLoader loader,
java.util.Map properties)
AbstractORB.loader - the class loader to load proxiesproperties - properties to configure this with. May be
null.| Method Detail |
public void addRoute(java.lang.String uri,
java.lang.String toURI)
throws java.rmi.RemoteException
addRoute in interface ORBuri - the URI to routetoURI - the URI to route tojava.rmi.RemoteException - for any error
public Proxy getProxy(java.lang.Object object,
java.lang.String uri)
throws java.rmi.NoSuchObjectException
object - the object to look up the proxy foruri - the URI the object was exported onobject and
urijava.rmi.NoSuchObjectException - if the object hasn't been exported on the
specified URI
public java.lang.Object getObject(java.rmi.server.ObjID objID,
java.lang.String uri)
throws java.rmi.NoSuchObjectException
objID - the identifier of the objecturi - the URI the object was exported onobjID and
urijava.rmi.NoSuchObjectException - if the object hasn't been exported on the
specified URI
public Proxy exportObject(java.lang.Object object)
throws java.rmi.server.ExportException,
java.rmi.StubNotFoundException
exportObject in interface ORBobject - the object to exportjava.rmi.server.ExportException - if the object cannot be exportedjava.rmi.StubNotFoundException - if the proxy class cannot be found
public Proxy exportObject(java.lang.Object object,
java.lang.String uri)
throws java.rmi.server.ExportException,
java.rmi.StubNotFoundException
exportObject in interface ORBobject - the object to exporturi - the URI via which connections to the object are madejava.rmi.server.ExportException - if the object cannot be exportedjava.rmi.StubNotFoundException - if the proxy class cannot be found
public Proxy exportObject(java.lang.Object object,
java.rmi.server.ObjID objID)
throws java.rmi.server.ExportException,
java.rmi.StubNotFoundException
exportObject in interface ORBobject - the object to exportobjID - the well known object identifierjava.rmi.server.ExportException - if the object cannot be exportedjava.rmi.StubNotFoundException - if the proxy class cannot be found
public Proxy exportObject(java.lang.Object object,
java.rmi.server.ObjID objID,
java.lang.String uri)
throws java.rmi.server.ExportException,
java.rmi.StubNotFoundException
exportObject in interface ORBobject - the object to exportobjID - the well known object identifieruri - the URI via which connections to the object are madejava.rmi.server.ExportException - if the object cannot be exportedjava.rmi.StubNotFoundException - if the proxy class cannot be found
public Proxy exportObjectTo(java.lang.Object object,
java.lang.String uri)
throws java.rmi.server.ExportException,
java.rmi.StubNotFoundException
exportObjectTo in interface ORBobject - the object to exporturi - the target URI from which connections to the object are
made.java.rmi.server.ExportException - if the object cannot be exportedjava.rmi.StubNotFoundException - if the proxy class cannot be found
public Proxy exportObjectTo(java.lang.Object object,
java.lang.String uri,
java.lang.String principal,
java.lang.String credentials)
throws java.rmi.server.ExportException,
java.rmi.StubNotFoundException
exportObjectTo in interface ORBobject - the object to exporturi - the target URI from which connections to the object
are made.principal - the security principal. May be nullcredentials - the security credentials. May be nulljava.rmi.server.ExportException - if the object cannot be exportedjava.rmi.StubNotFoundException - if the proxy class cannot be found
public void unexportObject(java.lang.Object object)
throws java.rmi.NoSuchObjectException
unexportObject in interface ORBobject - the object to exportjava.rmi.NoSuchObjectException - if the object isn't exported
protected abstract URI connect(URI uri,
java.lang.String principal,
java.lang.String credentials)
throws java.rmi.server.ExportException
uri - the URI to establish a connection withprincipal - specifies the identity of the principal. If
null, indicates to connect anonymously.credentials - the credentials of the principaljava.rmi.server.ExportException - for any error
protected abstract void accept(URI uri)
throws java.rmi.server.ExportException
uri - the URI to accept connections onjava.rmi.server.ExportException - for any errorprotected java.lang.ClassLoader getProxyClassLoader()
protected java.util.Map getProperties()
protected Proxy doExportTo(java.lang.Object object,
URI uri)
throws java.rmi.server.ExportException,
java.rmi.StubNotFoundException
object - the object to exporturi - the URI via which connections to the object are madejava.rmi.server.ExportException - if the object cannot be exportedjava.rmi.StubNotFoundException - if the proxy class cannot be foundprotected int getExported()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||