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

Quick Search    Search Deep

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

java.lang.Object
  extended byorg.omg.IOP.ServiceContextHelper

public abstract class ServiceContextHelper
extends java.lang.Object

A helper operations for the structure ServiceContext.


Field Summary
private static org.omg.CORBA.TypeCode typeCode
          The cached typecode value, computed only once.
 
Constructor Summary
ServiceContextHelper()
           
 
Method Summary
static ServiceContext extract(org.omg.CORBA.Any any)
          Extract the ServiceContext from given Any.
static java.lang.String id()
          Get the ServiceContext repository id.
static void insert(org.omg.CORBA.Any any, ServiceContext that)
          Insert the ServiceContext into the given Any.
static ServiceContext read(org.omg.CORBA.portable.InputStream input)
          Read the context from the CDR intput stream (first id, then data as a flexible length byte sequence).
static org.omg.CORBA.TypeCode type()
          Create the ServiceContext typecode (structure, named "ServiceContext").
static void write(org.omg.CORBA.portable.OutputStream output, ServiceContext value)
          Write the context to the CDR output stream (first id, then data as a flexible length byte sequence).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

typeCode

private static org.omg.CORBA.TypeCode typeCode
The cached typecode value, computed only once.

Constructor Detail

ServiceContextHelper

public ServiceContextHelper()
Method Detail

type

public static org.omg.CORBA.TypeCode type()
Create the ServiceContext typecode (structure, named "ServiceContext"). The typecode states that the structure contains the following fields: context_id, context_data.


insert

public static void insert(org.omg.CORBA.Any any,
                          ServiceContext that)
Insert the ServiceContext into the given Any. This method uses the ServiceContextHolder.


extract

public static ServiceContext extract(org.omg.CORBA.Any any)
Extract the ServiceContext from given Any. This method uses the ServiceContextHolder.


id

public static java.lang.String id()
Get the ServiceContext repository id.


read

public static ServiceContext read(org.omg.CORBA.portable.InputStream input)
Read the context from the CDR intput stream (first id, then data as a flexible length byte sequence).


write

public static void write(org.omg.CORBA.portable.OutputStream output,
                         ServiceContext value)
Write the context to the CDR output stream (first id, then data as a flexible length byte sequence).