|
| Services |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
java.lang.Object
|
+--org.omg.CORBA.ORB
|
+--org.omg.CORBA_2_3.ORB
|
+--com.sas.net.brg.orb.BrgOrb
This is the root class of JavaBridge, a standard, non-interoperable CORBA ORB.
It is standard because it implements the CORBA ORB specification (more
specifically, it extends org.omg.CORBA.ORB), but it is not
interoperable because it can only communicate with an IOM BRIDGE server. The
benefit of communicating with the IOM BRIDGE server through a standard CORBA
ORB is that it will support programs written to communicate with an IOM CORBA
server through an interoperable CORBA ORB without modification or even
recompilation.
To indicate to one of the org.omg.CORBA.ORB.init() method that
you would
like to use this ORB specify the following properties in the
java.util.Properties object required by those methods.
| Name | Value |
|---|---|
org.omg.CORBA.ORBClass |
com.sas.net.brg.orb.BrgOrb |
org.omg.CORBA.ORBSingletonClass |
com.sas.net.omgidl.orb.ORB |
It is also possible to instantiate this ORB directly using its constructor.
JavaBridge supports a variety of encryption algoritms for encrypting messages
sent to and received from the IOM BRIDGE server. If encryption is used, then
the authentication message which contains a user name and password will be
encrypted. More information about control of encryption options is available
at the string_to_object method. The following algorithms are
supported.
| Constructor Summary | |
BrgOrb()
|
|
BrgOrb(Properties properties)
|
|
| Method Summary | |
void |
addEngine(ProtocolEngineInterface engine)
|
TypeCode |
create_alias_tc(String id,
String name,
TypeCode original_type)
Create a TypeCode object representing another TypeCode object. |
Any |
create_any()
Create an Any object. |
TypeCode |
create_array_tc(int length,
TypeCode element_type)
Create a TypeCode object representing an array. |
ContextList |
create_context_list()
Create a list of Context objects. |
TypeCode |
create_enum_tc(String id,
String name,
String[] members)
Create a TypeCode object representing an enum. |
Environment |
create_environment()
Creates an environment which holds the exception raised by an operation invocation. |
ExceptionList |
create_exception_list()
Create a list of exceptions raised by an operation. |
TypeCode |
create_exception_tc(String id,
String name,
StructMember[] members)
Create a TypeCode object representing an exception. |
TypeCode |
create_interface_tc(String id,
String name)
Create a TypeCode object representing an interface. |
NVList |
create_list(int count)
Create a name/value pair list. |
NamedValue |
create_named_value(String s,
Any any,
int flags)
Create a name/value pair. |
OutputStream |
create_output_stream()
Create a stream for serializing parameters. |
TypeCode |
create_recursive_sequence_tc(int bound,
int offset)
Deprecated. |
TypeCode |
create_sequence_tc(int bound,
TypeCode element_type)
Create a TypeCode object representing a sequence. |
TypeCode |
create_string_tc(int bound)
Create a TypeCode object representing a string. |
TypeCode |
create_struct_tc(String id,
String name,
StructMember[] members)
Create a TypeCode object representing a struct. |
TypeCode |
create_union_tc(String id,
String name,
TypeCode discriminator_type,
UnionMember[] members)
Create a TypeCode object representing a union. |
TypeCode |
create_wstring_tc(int bound)
Create a TypeCode object representing a wide string. |
Current |
get_current()
Deprecated. |
Context |
get_default_context()
Create a Context object. |
Request |
get_next_response()
Throws NO_IMPLEMENT. |
TypeCode |
get_primitive_tc(TCKind tcKind)
Get the TypeCode object representing a particular primitive type. |
Map |
getActiveObjectMap()
|
ActiveObjectMapKey |
getActiveObjectMapKey()
|
DelegateBase |
getDelegateBase()
|
GenericObject |
getGenericObject()
|
int |
getNextClientID()
|
String[] |
list_initial_services()
|
String |
object_to_string(Object obj)
|
Properties |
objectToProperties(Object obj)
|
boolean |
poll_next_response()
Throws NO_IMPLEMENT. |
Object |
propertiesToObject(Properties properties)
|
Object |
propertiesToObjectNoCopy(Properties properties)
|
static String |
propertiesToReference(Properties properties)
|
static Properties |
referenceToProperties(String reference)
|
Object |
resolve_initial_references(String name)
|
void |
returnActiveObjectMapKey(ActiveObjectMapKey activeObjectMapKey)
|
void |
returnDelegateBase(DelegateBase delegateBase)
|
void |
returnGenericObject(GenericObject obj)
|
void |
send_multiple_requests_deferred(Request[] req)
Throws NO_IMPLEMENT. |
void |
send_multiple_requests_oneway(Request[] req)
Throws NO_IMPLEMENT. |
void |
shutdown(boolean waitForCompletion)
|
Object |
string_to_object(String url)
This method causes the server to instantiate an object and sets up a remote reference to it on the client. |
| Methods inherited from class org.omg.CORBA_2_3.ORB |
get_value_def, lookup_value_factory, register_value_factory, set_delegate, unregister_value_factory |
| Methods inherited from class org.omg.CORBA.ORB |
connect, create_abstract_interface_tc, create_basic_dyn_any, create_dyn_any, create_dyn_array, create_dyn_enum, create_dyn_sequence, create_dyn_struct, create_dyn_union, create_fixed_tc, create_native_tc, create_operation_list, create_policy, create_recursive_tc, create_value_box_tc, create_value_tc, destroy, disconnect, get_service_information, init, init, init, perform_work, run, work_pending |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BrgOrb()
public BrgOrb(Properties properties)
| Method Detail |
public void shutdown(boolean waitForCompletion)
shutdown in class ORBpublic String[] list_initial_services()
list_initial_services in class ORB
public Object resolve_initial_references(String name)
throws InvalidName
resolve_initial_references in class ORBpublic String object_to_string(Object obj)
object_to_string in class ORBpublic Object string_to_object(String url)
The identity and location of the desired object are specified in a specially formatted URL.
bridge://host:port/classId?userName=user_name&password=password&otherNames=otherValues
440196D4-90F0-11D0-9F41-00A024BB830C.
The name/value pairs listed above are all required. Other name/value pairs may be appended to the URL following the same format as userName and password to control optional functionality.
Note that the server's encryption policy is, by default, optional so no special action is needed to prepare an IOM BRIDGE server to use encryption. However, it is possible to set up the server so that encryption is required. Consult IOM BRIDGE server documentation for details.
Note also that name/value pairs containing &, =, or %
need to be
encoded since these characters are reserved in the URL format. Use java.net.URLEncoder
to encode each name and each value individually.
string_to_object in class ORBurl - a specially formatted URL indicating the identity and location of a remote object.public NVList create_list(int count)
create_list in class ORBcount - the initial capacity of the list
public NamedValue create_named_value(String s,
Any any,
int flags)
create_named_value in class ORBs - the nameany - the valueflags - argument direction. One of ARG_IN, ARG_OUT
or ARG_INOUTpublic ExceptionList create_exception_list()
create_exception_list in class ORBpublic ContextList create_context_list()
create_context_list in class ORBpublic Context get_default_context()
get_default_context in class ORBpublic Environment create_environment()
create_environment in class ORBpublic OutputStream create_output_stream()
create_output_stream in class ORBpublic void send_multiple_requests_oneway(Request[] req)
send_multiple_requests_oneway in class ORBpublic void send_multiple_requests_deferred(Request[] req)
send_multiple_requests_deferred in class ORBpublic boolean poll_next_response()
poll_next_response in class ORBpublic Request get_next_response()
get_next_response in class ORBpublic TypeCode get_primitive_tc(TCKind tcKind)
get_primitive_tc in class ORBenumerated - value representing the desired primitive type.
public TypeCode create_struct_tc(String id,
String name,
StructMember[] members)
create_struct_tc in class ORBid - interface repository IDname - name of structmembers - the struct members
public TypeCode create_union_tc(String id,
String name,
TypeCode discriminator_type,
UnionMember[] members)
create_union_tc in class ORBid - interface repository IDname - name of uniondiscriminator_type - the discriminator typemembers - the union members
public TypeCode create_enum_tc(String id,
String name,
String[] members)
create_enum_tc in class ORBid - interface repository IDname - name of enummembers - the enum members
public TypeCode create_alias_tc(String id,
String name,
TypeCode original_type)
create_alias_tc in class ORBid - interface repository IDname - name of alias typeoriginal_type - the original TypeCode object
public TypeCode create_exception_tc(String id,
String name,
StructMember[] members)
create_exception_tc in class ORBid - interface repository IDname - name of exceptionmembers - the exception members
public TypeCode create_interface_tc(String id,
String name)
create_interface_tc in class ORBid - interface repository IDname - name of interfacepublic TypeCode create_string_tc(int bound)
create_string_tc in class ORBbound - maximum size of string, or 0 to indicate unbounded stringpublic TypeCode create_wstring_tc(int bound)
create_wstring_tc in class ORBbound - maximum size of string, or 0 to indicate unbounded string
public TypeCode create_sequence_tc(int bound,
TypeCode element_type)
create_sequence_tc in class ORBbound - maximum size of sequence, or 0 to indicate unbounded sequenceelement_type - the element type
public TypeCode create_recursive_sequence_tc(int bound,
int offset)
create_recursive_sequence_tc in class ORBbound - maximum size of sequence, or 0 to indicate unbounded sequenceoffset - offset within sequence
public TypeCode create_array_tc(int length,
TypeCode element_type)
create_array_tc in class ORBlength - size of arrayelement_type - the element typepublic Current get_current()
get_current in class ORBpublic Any create_any()
create_any in class ORBpublic int getNextClientID()
public void addEngine(ProtocolEngineInterface engine)
public GenericObject getGenericObject()
public void returnGenericObject(GenericObject obj)
public DelegateBase getDelegateBase()
public void returnDelegateBase(DelegateBase delegateBase)
public Map getActiveObjectMap()
public ActiveObjectMapKey getActiveObjectMapKey()
public void returnActiveObjectMapKey(ActiveObjectMapKey activeObjectMapKey)
public Object propertiesToObject(Properties properties)
public Object propertiesToObjectNoCopy(Properties properties)
public Properties objectToProperties(Object obj)
public static Properties referenceToProperties(String reference)
public static String propertiesToReference(Properties properties)
|
| Services |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||