1 7 8 package com.sun.corba.se.spi.servicecontext; 9 10 import org.omg.CORBA.SystemException ; 11 import org.omg.CORBA_2_3.portable.InputStream ; 12 import org.omg.CORBA_2_3.portable.OutputStream ; 13 import com.sun.corba.se.spi.ior.IOR ; 14 import com.sun.corba.se.spi.ior.iiop.GIOPVersion; 15 import com.sun.corba.se.spi.servicecontext.ServiceContext ; 16 import com.sun.corba.se.impl.encoding.MarshalOutputStream ; 17 import com.sun.corba.se.impl.ior.IORImpl ; 18 19 public class SendingContextServiceContext extends ServiceContext { 20 public SendingContextServiceContext( IOR ior ) 21 { 22 this.ior = ior ; 23 } 24 25 public SendingContextServiceContext(InputStream is, GIOPVersion gv) 26 { 27 super(is, gv) ; 28 ior = new IORImpl( in ) ; 29 } 30 31 public static final int SERVICE_CONTEXT_ID = 6 ; 33 public int getId() { return SERVICE_CONTEXT_ID ; } 34 35 public void writeData( OutputStream os ) throws SystemException 36 { 37 ior.write( os ) ; 38 } 39 40 public IOR getIOR() 41 { 42 return ior ; 43 } 44 45 private IOR ior = null ; 46 47 public String toString() 48 { 49 return "SendingContexServiceContext[ ior=" + ior + " ]" ; 50 } 51 } 52 | Popular Tags |