Class ServiceContextsImpl

java.lang.Object
com.sun.corba.ee.impl.servicecontext.ServiceContextsImpl
All Implemented Interfaces:
ServiceContexts

public class ServiceContextsImpl extends Object implements ServiceContexts
  • Constructor Details

    • ServiceContextsImpl

      public ServiceContextsImpl(ORB orb)
    • ServiceContextsImpl

      public ServiceContextsImpl(InputStream s)
      Read the Service contexts from the input stream.
      Parameters:
      s - Stream to get context from
  • Method Details

    • write

      public void write(OutputStream os, GIOPVersion gv)
      Write the service contexts to the output stream. If they haven't been unmarshaled, we don't have to unmarshal them.
      Specified by:
      write in interface ServiceContexts
      Parameters:
      os - stream to write to
      gv - version to use
    • put

      public void put(ServiceContext sc)
      Description copied from interface: ServiceContexts
      Add a service context. Silently replaces an existing service context with the same id.
      Specified by:
      put in interface ServiceContexts
      Parameters:
      sc - service context to use
    • delete

      public void delete(int scId)
      Description copied from interface: ServiceContexts
      Remove the service context with the id, if any.
      Specified by:
      delete in interface ServiceContexts
      Parameters:
      scId - service context id
    • get

      public ServiceContext get(int id)
      Description copied from interface: ServiceContexts
      Return the service context with scId, or null if not found.
      Specified by:
      get in interface ServiceContexts
      Parameters:
      id - service context id
      Returns:
      ServiceContext with the specified ID
    • copy

      public ServiceContexts copy()
      send back a shallow copy of the ServiceContexts container
      Specified by:
      copy in interface ServiceContexts