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 |
import org.omg.CORBA.portable.IDLEntity; |
import org.omg.CORBA.portable.IDLEntity; |
47 |
|
|
112 |
* |
* |
113 |
* @param in a stream to read from. |
* @param in a stream to read from. |
114 |
*/ |
*/ |
115 |
public void read(cdrInput in) |
public void read(AbstractCdrInput in) |
116 |
{ |
{ |
117 |
service_context = ServiceContext.readSequence(in); |
service_context = ServiceContext.readSequence(in); |
118 |
request_id = in.read_ulong(); |
request_id = in.read_ulong(); |
121 |
operation = in.read_string(); |
operation = in.read_string(); |
122 |
requesting_principal = in.read_sequence(); |
requesting_principal = in.read_sequence(); |
123 |
|
|
124 |
in.setCodeSet(cxCodeSet.find(service_context)); |
in.setCodeSet(CodeSetServiceContext.find(service_context)); |
125 |
} |
} |
126 |
|
|
127 |
/** |
/** |
143 |
* |
* |
144 |
* @param out a stream to write into. |
* @param out a stream to write into. |
145 |
*/ |
*/ |
146 |
public void write(cdrOutput out) |
public void write(AbstractCdrOutput out) |
147 |
{ |
{ |
148 |
ServiceContext.writeSequence(out, service_context); |
ServiceContext.writeSequence(out, service_context); |
149 |
out.write_ulong(request_id); |
out.write_ulong(request_id); |
152 |
out.write_string(operation); |
out.write_string(operation); |
153 |
out.write_sequence(requesting_principal); |
out.write_sequence(requesting_principal); |
154 |
|
|
155 |
out.setCodeSet(cxCodeSet.find(service_context)); |
out.setCodeSet(CodeSetServiceContext.find(service_context)); |
156 |
} |
} |
157 |
} |
} |