/[classpath]/classpath/gnu/CORBA/GIOP/v1_2/ReplyHeader.java
ViewVC logotype

Diff of /classpath/gnu/CORBA/GIOP/v1_2/ReplyHeader.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1.2.2 by gnu_andrew, Tue Aug 2 20:12:08 2005 UTC revision 1.1.2.3 by gnu_andrew, Wed Nov 2 00:43:25 2005 UTC
# Line 38  exception statement from your version. * Line 38  exception statement from your version. *
38    
39  package gnu.CORBA.GIOP.v1_2;  package gnu.CORBA.GIOP.v1_2;
40    
41  import gnu.CORBA.CDR.cdrInput;  import gnu.CORBA.CDR.AbstractCdrInput;
42  import gnu.CORBA.CDR.cdrOutput;  import gnu.CORBA.CDR.AbstractCdrOutput;
43  import gnu.CORBA.GIOP.ServiceContext;  import gnu.CORBA.GIOP.ServiceContext;
44  import gnu.CORBA.GIOP.cxCodeSet;  import gnu.CORBA.GIOP.CodeSetServiceContext;
45    
46  /**  /**
47   * GIOP 1.2 reply header.   * GIOP 1.2 reply header.
# Line 56  public class ReplyHeader Line 56  public class ReplyHeader
56     */     */
57    public ReplyHeader()    public ReplyHeader()
58    {    {
59      service_context = new ServiceContext[] { cxCodeSet.STANDARD };      service_context = new ServiceContext[] { CodeSetServiceContext.STANDARD };
60    }    }
61    
62    /**    /**
# Line 89  public class ReplyHeader Line 89  public class ReplyHeader
89     *     *
90     * @param in a stream to read from.     * @param in a stream to read from.
91     */     */
92    public void read(cdrInput in)    public void read(AbstractCdrInput in)
93    {    {
94      request_id = in.read_ulong();      request_id = in.read_ulong();
95      reply_status = in.read_ulong();      reply_status = in.read_ulong();
96      service_context = gnu.CORBA.GIOP.ServiceContext.readSequence(in);      service_context = gnu.CORBA.GIOP.ServiceContext.readSequence(in);
97    
98      in.setCodeSet(cxCodeSet.find(service_context));      in.setCodeSet(CodeSetServiceContext.find(service_context));
99    }    }
100    
101    /**    /**
# Line 107  public class ReplyHeader Line 107  public class ReplyHeader
107     *     *
108     * @param out a stream to write into.     * @param out a stream to write into.
109     */     */
110    public void write(cdrOutput out)    public void write(AbstractCdrOutput out)
111    {    {
112      out.write_ulong(request_id);      out.write_ulong(request_id);
113      out.write_ulong(reply_status);      out.write_ulong(reply_status);
114      gnu.CORBA.GIOP.ServiceContext.writeSequence(out, service_context);      gnu.CORBA.GIOP.ServiceContext.writeSequence(out, service_context);
115    
116      out.setCodeSet(cxCodeSet.find(service_context));      out.setCodeSet(CodeSetServiceContext.find(service_context));
117    }    }
118  }  }

Legend:
Removed from v.1.1.2.2  
changed lines
  Added in v.1.1.2.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26