Class UnknownServiceContextImpl
java.lang.Object
com.sun.corba.ee.spi.servicecontext.ServiceContextBase
com.sun.corba.ee.impl.servicecontext.UnknownServiceContextImpl
- All Implemented Interfaces:
ServiceContext
,UnknownServiceContext
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.sun.corba.ee.spi.servicecontext.ServiceContext
ServiceContext.Factory
-
Field Summary
FieldsFields inherited from class com.sun.corba.ee.spi.servicecontext.ServiceContextBase
in
-
Constructor Summary
ConstructorsConstructorDescriptionUnknownServiceContextImpl
(int id, byte[] data) UnknownServiceContextImpl
(int id, InputStream is) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
getData()
int
getId()
Returns Service context id.void
write
(OutputStream os, GIOPVersion gv) Write the service context to an output stream.void
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
-
Field Details
-
id
private int id -
data
private byte[] data
-
-
Constructor Details
-
UnknownServiceContextImpl
public UnknownServiceContextImpl(int id, byte[] data) -
UnknownServiceContextImpl
-
-
Method Details
-
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
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
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
-