Interface ServiceContexts
- All Known Implementing Classes:
ServiceContextsImpl
public interface ServiceContexts
The collection of ServiceContext instances used in a particular
request.
-
Method Summary
Modifier and TypeMethodDescriptioncopy()
void
delete
(int scId) Remove the service context with the id, if any.get
(int scId) Return the service context with scId, or null if not found.void
put
(ServiceContext sc) Add a service context.void
write
(OutputStream os, GIOPVersion gv) Write the service contexts to the output stream.
-
Method Details
-
write
Write the service contexts to the output stream. If an UnknownExceptionInfo service context is present, it is written out last, so that it follows any SendingContext service context. This is required so that the codebase is available to handle value types if necessary. We should really do this as SendingContext goes first, so that we can guarantee correct marshalling of non-standard service contexts.- Parameters:
os
- stream to write togv
- version to use
-
put
Add a service context. Silently replaces an existing service context with the same id.- Parameters:
sc
- service context to use
-
delete
void delete(int scId) Remove the service context with the id, if any.- Parameters:
scId
- service context id
-
get
Return the service context with scId, or null if not found.- Parameters:
scId
- service context id- Returns:
- ServiceContext with the specified ID
-
copy
ServiceContexts copy()
-