Class ORBVersionServiceContextImpl
- java.lang.Object
-
- com.sun.corba.ee.spi.servicecontext.ServiceContextBase
-
- com.sun.corba.ee.impl.servicecontext.ORBVersionServiceContextImpl
-
- All Implemented Interfaces:
ORBVersionServiceContext,ServiceContext
public class ORBVersionServiceContextImpl extends ServiceContextBase implements ORBVersionServiceContext
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.sun.corba.ee.spi.servicecontext.ServiceContext
ServiceContext.Factory
-
-
Field Summary
Fields Modifier and Type Field Description static ORBVersionServiceContextsingletonprivate ORBVersionversion-
Fields inherited from class com.sun.corba.ee.spi.servicecontext.ServiceContextBase
in
-
Fields inherited from interface com.sun.corba.ee.spi.servicecontext.ORBVersionServiceContext
SERVICE_CONTEXT_ID
-
-
Constructor Summary
Constructors Constructor Description ORBVersionServiceContextImpl()ORBVersionServiceContextImpl(ORBVersion ver)ORBVersionServiceContextImpl(InputStream is, GIOPVersion gv)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetId()Returns Service context id.ORBVersiongetVersion()java.lang.StringtoString()voidwriteData(OutputStream os)Writes the data used to represent the subclasses service context into an encapsulation stream.-
Methods inherited from class com.sun.corba.ee.spi.servicecontext.ServiceContextBase
write
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.sun.corba.ee.spi.servicecontext.ServiceContext
write
-
-
-
-
Field Detail
-
version
private ORBVersion version
-
singleton
public static final ORBVersionServiceContext singleton
-
-
Constructor Detail
-
ORBVersionServiceContextImpl
public ORBVersionServiceContextImpl()
-
ORBVersionServiceContextImpl
public ORBVersionServiceContextImpl(ORBVersion ver)
-
ORBVersionServiceContextImpl
public ORBVersionServiceContextImpl(InputStream is, GIOPVersion gv)
-
-
Method Detail
-
getId
public int getId()
Description copied from class:ServiceContextBaseReturns Service context id. Must be overloaded in subclass.- Specified by:
getIdin interfaceServiceContext- Specified by:
getIdin classServiceContextBase- Returns:
- context id
-
writeData
public void writeData(OutputStream os) throws SystemException
Description copied from class:ServiceContextBaseWrites the data used to represent the subclasses service context into an encapsulation stream. Must be overloaded in subclass.- Specified by:
writeDatain classServiceContextBase- Parameters:
os- stream to write to- Throws:
SystemException
-
getVersion
public ORBVersion getVersion()
- Specified by:
getVersionin interfaceORBVersionServiceContext
-
toString
public java.lang.String toString()
- Overrides:
toStringin classServiceContextBase
-
-