public class JIOP extends Object implements JRMIBFactory
Modifier | Constructor and Description |
---|---|
protected |
JIOP()
Creates a JIOP binder.
|
|
JIOP(JRMIStubFactory stub_factory) |
Modifier and Type | Method and Description |
---|---|
Object |
bind(String type,
String host,
int port,
byte[] key)
Uses the underlying IIOP binder to bind an identifier, constructed from
the host, port, key and type, returning an object giving access to a
target object.
|
org.objectweb.jonathan.binding.api.Identifier |
decode(byte[] data,
int offset,
int length)
Uses the underlying IIOP binder to decode an identifier from the
given buffered data.
|
org.objectweb.jonathan.binding.api.Identifier |
decode(org.objectweb.jonathan.presentation.api.UnMarshaller u)
Uses the underlying IIOP binder to decode an identifier from the
given unmarshaller.
|
org.objectweb.jonathan.binding.api.Identifier |
export(Object id,
org.objectweb.jonathan.apis.kernel.Context hints)
Exports the given identifier to an underlying IIOP binder.
|
JRMIStubFactory |
getStubFactory()
Returns the stub factory associated with this binder viewed as a
Jeremie binding factory.
|
void |
setBinder(IIOPBinder binder) |
protected JIOP()
public JIOP(JRMIStubFactory stub_factory)
public void setBinder(IIOPBinder binder)
public org.objectweb.jonathan.binding.api.Identifier export(Object id, org.objectweb.jonathan.apis.kernel.Context hints) throws org.objectweb.jonathan.apis.kernel.JonathanException
id
must be of type Identifier
.export
in interface org.objectweb.jonathan.binding.api.NamingContext
id
- an identifier;hints
- other data that may be useful for the export;org.objectweb.jonathan.apis.kernel.JonathanException
- if something goes wrong.public Object bind(String type, String host, int port, byte[] key) throws org.objectweb.jonathan.apis.kernel.JonathanException
type
- a type, forming part of an identifier for the target object;host
- a host, forming part of an identifier for the target object;port
- a port, forming part of an identifier for the target object;key
- an object key, forming part of an identifier for the target object.org.objectweb.jonathan.apis.kernel.JonathanException
- if something goes wrong.public org.objectweb.jonathan.binding.api.Identifier decode(byte[] data, int offset, int length) throws org.objectweb.jonathan.apis.kernel.JonathanException
decode
in interface org.objectweb.jonathan.binding.api.NamingContext
data
- the byte array from which to read the encoded identifier;offset
- offset of the first byte of the encoding;length
- the length of the encoding.org.objectweb.jonathan.apis.kernel.JonathanException
- if something goes wrong.public org.objectweb.jonathan.binding.api.Identifier decode(org.objectweb.jonathan.presentation.api.UnMarshaller u) throws org.objectweb.jonathan.apis.kernel.JonathanException
decode
in interface org.objectweb.jonathan.binding.api.NamingContext
u
- an unmarshaller.org.objectweb.jonathan.apis.kernel.JonathanException
- if something goes wrong.public JRMIStubFactory getStubFactory()
getStubFactory
in interface JRMIBFactory