public abstract class ServiceContext extends Object
The subclass can be constructed either directly from the service context representation, or by reading the representation from an input stream. These cases are needed when the service context is created and written to the request or reply, and when the service context is read from the received request or reply.
Modifier and Type | Field and Description |
---|---|
protected InputStream |
in
in is the stream containing the service context representation.
|
Modifier | Constructor and Description |
---|---|
protected |
ServiceContext()
Simple default constructor used when subclass is constructed
from its representation.
|
protected |
ServiceContext(InputStream s,
GIOPVersion gv)
Stream constructor used when subclass is constructed from an
InputStream.
|
Modifier and Type | Method and Description |
---|---|
abstract int |
getId()
Returns Service context id.
|
String |
toString() |
void |
write(OutputStream s,
GIOPVersion gv)
Write the service context to an output stream.
|
protected abstract void |
writeData(OutputStream os)
Writes the data used to represent the subclasses service context
into an encapsulation stream.
|
protected InputStream in
protected ServiceContext()
protected ServiceContext(InputStream s, GIOPVersion gv) throws SystemException
SystemException
public abstract int getId()
public void write(OutputStream s, GIOPVersion gv) throws SystemException
SystemException
protected abstract void writeData(OutputStream os)
Copyright © 2019 JBoss by Red Hat. All rights reserved.