public String toString() { return "ServiceContext[ id=" + getId() + " ]"; } }
public String toString() { return "ServiceContext[ id=" + getId() + " ]"; } }
/** * Add a service context to the stream, if there is not already a service context in this object with the same id as * sc. */ public void put(ServiceContext sc) { Integer id = new Integer(sc.getId()); scMap.put(id, sc); }
/** * Add a service context to the stream, if there is not already a service context in this object with the same id as * sc. */ public void put(ServiceContext sc) { Integer id = new Integer(sc.getId()); scMap.put(id, sc); }
/** * Write the service context to an output stream. This method must be used for writing the service context to a * request or reply header. */ public void write(OutputStream s, GIOPVersion gv) throws SystemException { EncapsOutputStream os = new EncapsOutputStream((ORB) (s.orb()), gv); os.putEndian(); writeData(os); byte[] data = os.toByteArray(); s.write_long(getId()); s.write_long(data.length); s.write_octet_array(data, 0, data.length); }
/** * Write the service context to an output stream. This method must be used for writing the service context to a * request or reply header. */ public void write(OutputStream s, GIOPVersion gv) throws SystemException { EncapsOutputStream os = new EncapsOutputStream((ORB) (s.orb()), gv); os.putEndian(); writeData(os); byte[] data = os.toByteArray(); s.write_long(getId()); s.write_long(data.length); s.write_octet_array(data, 0, data.length); }