Interface ServiceContexts

All Known Implementing Classes:
ServiceContextsImpl

public interface ServiceContexts
The collection of ServiceContext instances used in a particular request.
  • Method Details

    • write

      void write(OutputStream os, GIOPVersion gv)
      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 to
      gv - version to use
    • put

      void put(ServiceContext sc)
      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

      ServiceContext get(int scId)
      Return the service context with scId, or null if not found.
      Parameters:
      scId - service context id
      Returns:
      ServiceContext with the specified ID
    • copy