|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.objectweb.jeremie.libs.binding.jiop.JIOP
Provides an implementation of a binder for binding Jeremie identifiers to remote objects using a simple protocol built on top of IIOP.
| Constructor Summary | |
protected |
JIOP()
Creates a JIOP binder. |
| Method Summary | |
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. |
Identifier |
decode(byte[] data,
int offset,
int length)
Uses the underlying IIOP binder to decode an identifier from the given buffered data. |
Identifier |
decode(UnMarshaller u)
Uses the underlying IIOP binder to decode an identifier from the given unmarshaller. |
Identifier |
export(Object id,
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. |
protected void |
initialize(Context c,
Object[] used_components)
Initializes this JIOP binder. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected JIOP()
| Method Detail |
protected void initialize(Context c,
Object[] used_components)
throws JonathanException
c - unused;used_components - components to be used to initialize this JIOP instance;JonathanException - if something goes wrong.
public Identifier export(Object id,
Context hints)
throws JonathanException
id
must be of type Identifier.export in interface NamingContextid - an identifier;hints - other data that may be useful for the export;JonathanException - if something goes wrong.
public Object bind(String type,
String host,
int port,
byte[] key)
throws 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.JonathanException - if something goes wrong.
public Identifier decode(byte[] data,
int offset,
int length)
throws JonathanException
decode in interface NamingContextdata - 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.JonathanException - if something goes wrong.
public Identifier decode(UnMarshaller u)
throws JonathanException
decode in interface NamingContextu - an unmarshaller.JonathanException - if something goes wrong.public JRMIStubFactory getStubFactory()
getStubFactory in interface JRMIBFactoryorg.objectweb.jeremie.apis.binding.JRMIBFactory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||