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[]
data
private int
id
-
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()
int
getId()
Returns Service context id.void
write(OutputStream os, GIOPVersion gv)
Write the service context to an output stream.void
writeData(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:ServiceContextBase
Returns Service context id. Must be overloaded in subclass.- Specified by:
getId
in interfaceServiceContext
- Specified by:
getId
in classServiceContextBase
- Returns:
- context id
-
writeData
public void writeData(OutputStream os)
Description copied from class:ServiceContextBase
Writes the data used to represent the subclasses service context into an encapsulation stream. Must be overloaded in subclass.- Specified by:
writeData
in classServiceContextBase
- Parameters:
os
- stream to write to
-
write
public void write(OutputStream os, GIOPVersion gv)
Description copied from class:ServiceContextBase
Write 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:
write
in interfaceServiceContext
- Overrides:
write
in classServiceContextBase
- Parameters:
os
- stream to write togv
- version of the service context
-
getData
public byte[] getData()
- Specified by:
getData
in interfaceUnknownServiceContext
-
-