Class UnknownServiceContextImpl
- java.lang.Object
-
- com.sun.corba.ee.spi.servicecontext.ServiceContextBase
-
- com.sun.corba.ee.impl.servicecontext.UnknownServiceContextImpl
-
- All Implemented Interfaces:
ServiceContext,UnknownServiceContext
public class UnknownServiceContextImpl extends ServiceContextBase implements UnknownServiceContext
-
-
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 private byte[]dataprivate intid-
Fields inherited from class com.sun.corba.ee.spi.servicecontext.ServiceContextBase
in
-
-
Constructor Summary
Constructors Constructor Description UnknownServiceContextImpl(int id, byte[] data)UnknownServiceContextImpl(int id, InputStream is)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getData()intgetId()Returns Service context id.voidwrite(OutputStream os, GIOPVersion gv)Write the service context to an output stream.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
toString
-
-
-
-
Constructor Detail
-
UnknownServiceContextImpl
public UnknownServiceContextImpl(int id, byte[] data)
-
UnknownServiceContextImpl
public UnknownServiceContextImpl(int id, InputStream is)
-
-
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)
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
-
write
public void write(OutputStream os, GIOPVersion gv)
Description copied from class:ServiceContextBaseWrite the service context to an output stream. This method must be used for writing the service context to a request or reply header.- Specified by:
writein interfaceServiceContext- Overrides:
writein classServiceContextBase- Parameters:
os- stream to write togv- version of the service context
-
getData
public byte[] getData()
- Specified by:
getDatain interfaceUnknownServiceContext
-
-