org.omg.IOP

Class ServiceContext

public final class ServiceContext extends Object implements IDLEntity, Serializable

The ServiceContext structure contains the service data, being passed in the CORBA message. For instance, then passing the wide characters, it is mandatory to include the service context, defining the used encoding. The contexts are recognised by they integer indentifier. In this class, the content of the context is represented as an abstract array of bytes.

See Also: ServiceContextHolder

Field Summary
byte[]context_data
The context_data.
intcontext_id
The context id (for instance, 0x1 for code sets context).
Constructor Summary
ServiceContext()
Create the unitialised instance, assigning to the all fields java default values.
ServiceContext(int a_context_id, byte[] a_context_data)
Create the instance, initialising the fields to the given values.

Field Detail

context_data

public byte[] context_data
The context_data.

context_id

public int context_id
The context id (for instance, 0x1 for code sets context). At the moment of writing, the OMG defines 16 standard values and provides rules to register the vendor specific context ids. The range 0-4095 is reserved for the future standard OMG contexts.

Constructor Detail

ServiceContext

public ServiceContext()
Create the unitialised instance, assigning to the all fields java default values.

ServiceContext

public ServiceContext(int a_context_id, byte[] a_context_data)
Create the instance, initialising the fields to the given values.