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. |
56 |
*/ |
*/ |
57 |
public ReplyHeader() |
public ReplyHeader() |
58 |
{ |
{ |
59 |
service_context = new ServiceContext[] { cxCodeSet.STANDARD }; |
service_context = new ServiceContext[] { CodeSetServiceContext.STANDARD }; |
60 |
} |
} |
61 |
|
|
62 |
/** |
/** |
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 |
/** |
/** |
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 |
} |
} |