org.omg.IOP
Class ServiceContext

java.lang.Object
  extended by org.omg.IOP.ServiceContext
All Implemented Interfaces:
Serializable, IDLEntity

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, ServiceContextHelper, Serialized Form

Field Summary
 byte[] context_data
          The context_data.
 int context_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.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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.


context_data

public byte[] context_data
The context_data.

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.