Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.omg.IOP
Class ServiceContext  view ServiceContext download ServiceContext.java

java.lang.Object
  extended byorg.omg.IOP.ServiceContext
All Implemented Interfaces:
org.omg.CORBA.portable.IDLEntity, java.io.Serializable

public final class ServiceContext
extends java.lang.Object
implements org.omg.CORBA.portable.IDLEntity, java.io.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.


Field Summary
 byte[] context_data
          The context_data.
 int context_id
          The context id (for instance, 0x1 for code sets context).
private static long serialVersionUID
          Use serialVersionUID (v1.4) for interoperability.
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Use serialVersionUID (v1.4) for interoperability.

See Also:
Constant Field Values

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.