25
26 package com.sun.corba.se.spi.servicecontext;
27
28 import org.omg.CORBA.SystemException;
29 import org.omg.CORBA.INTERNAL;
30 import org.omg.CORBA_2_3.portable.InputStream ;
31 import org.omg.CORBA_2_3.portable.OutputStream ;
32 import com.sun.corba.se.spi.ior.iiop.GIOPVersion;
33 import com.sun.corba.se.spi.orb.ORB ;
34 import com.sun.corba.se.impl.encoding.CDRInputStream ;
35 import com.sun.corba.se.impl.encoding.EncapsInputStream ;
36 import com.sun.corba.se.impl.encoding.EncapsOutputStream ;
37 import com.sun.corba.se.impl.orbutil.ORBUtility ;
38
39 /** Base class for all ServiceContext classes.
40 * There is a derived ServiceContext class for each service context that
41 * the ORB supports. Each subclass encapsulates the representation of
42 * the service context and provides any needed methods for manipulating
43 * the service context. Each subclass must provide the following
44 * members:
45 * <p>
46 * <ul>
47 * </li>a public static final int SERVICE_CONTEXT_ID that gives the OMG
48 * (or other) defined id for the service context. This is needed for the
49 * registration mechanism defined in ServiceContexts. OMG defined
50 * service context ids are taken from section 13.6.7 of ptc/98-12-04.</li>
51 * <li>a public constructor that takes an InputStream as its argument.</li>
52 * <li>Appropriate definitions of getId() and writeData(). getId() must
53 * return SERVICE_CONTEXT_ID.</li>
54 * </ul>
55 * <p>
56 * The subclass can be constructed either directly from the service context
57 * representation, or by reading the representation from an input stream.
58 * These cases are needed when the service context is created and written to
59 * the request or reply, and when the service context is read from the
60 * received request or reply.
61 */
62 public abstract class ServiceContext {
63 /** Simple default constructor used when subclass is constructed
64 * from its representation.
65 */
66 protected ServiceContext() { }
67
|
25
26 package com.sun.corba.se.spi.servicecontext;
27
28 import org.omg.CORBA.SystemException;
29 import org.omg.CORBA.INTERNAL;
30 import org.omg.CORBA_2_3.portable.InputStream ;
31 import org.omg.CORBA_2_3.portable.OutputStream ;
32 import com.sun.corba.se.spi.ior.iiop.GIOPVersion;
33 import com.sun.corba.se.spi.orb.ORB ;
34 import com.sun.corba.se.impl.encoding.CDRInputStream ;
35 import com.sun.corba.se.impl.encoding.EncapsInputStream ;
36 import com.sun.corba.se.impl.encoding.EncapsOutputStream ;
37 import com.sun.corba.se.impl.orbutil.ORBUtility ;
38
39 /** Base class for all ServiceContext classes.
40 * There is a derived ServiceContext class for each service context that
41 * the ORB supports. Each subclass encapsulates the representation of
42 * the service context and provides any needed methods for manipulating
43 * the service context. Each subclass must provide the following
44 * members:
45 * <ul>
46 * <li>a public static final int SERVICE_CONTEXT_ID that gives the OMG
47 * (or other) defined id for the service context. This is needed for the
48 * registration mechanism defined in ServiceContexts. OMG defined
49 * service context ids are taken from section 13.6.7 of ptc/98-12-04.</li>
50 * <li>a public constructor that takes an InputStream as its argument.</li>
51 * <li>Appropriate definitions of getId() and writeData(). getId() must
52 * return SERVICE_CONTEXT_ID.</li>
53 * </ul>
54 * <p>
55 * The subclass can be constructed either directly from the service context
56 * representation, or by reading the representation from an input stream.
57 * These cases are needed when the service context is created and written to
58 * the request or reply, and when the service context is read from the
59 * received request or reply.
60 */
61 public abstract class ServiceContext {
62 /** Simple default constructor used when subclass is constructed
63 * from its representation.
64 */
65 protected ServiceContext() { }
66
|