38 |
|
|
39 |
package gnu.CORBA.GIOP.v1_0; |
package gnu.CORBA.GIOP.v1_0; |
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 |
* The header of the standard reply. |
* The header of the standard reply. |
98 |
* @param in a stream to read from. |
* @param in a stream to read from. |
99 |
*/ |
*/ |
100 |
|
|
101 |
public void read(cdrInput in) |
public void read(AbstractCdrInput in) |
102 |
{ |
{ |
103 |
service_context = ServiceContext.readSequence(in); |
service_context = ServiceContext.readSequence(in); |
104 |
request_id = in.read_ulong(); |
request_id = in.read_ulong(); |
105 |
reply_status = in.read_ulong(); |
reply_status = in.read_ulong(); |
106 |
|
|
107 |
in.setCodeSet(cxCodeSet.find(service_context)); |
in.setCodeSet(CodeSetServiceContext.find(service_context)); |
108 |
} |
} |
109 |
|
|
110 |
/** |
/** |
128 |
* |
* |
129 |
* @param out a stream to write into. |
* @param out a stream to write into. |
130 |
*/ |
*/ |
131 |
public void write(cdrOutput out) |
public void write(AbstractCdrOutput out) |
132 |
{ |
{ |
133 |
ServiceContext.writeSequence(out, service_context); |
ServiceContext.writeSequence(out, service_context); |
134 |
out.write_ulong(request_id); |
out.write_ulong(request_id); |
135 |
out.write_ulong(reply_status); |
out.write_ulong(reply_status); |
136 |
|
|
137 |
out.setCodeSet(cxCodeSet.find(service_context)); |
out.setCodeSet(CodeSetServiceContext.find(service_context)); |
138 |
} |
} |
139 |
} |
} |