288 |
request_part.create_input_stream(); |
request_part.create_input_stream(); |
289 |
|
|
290 |
// Ensure the servant (handler) has a delegate set. |
// Ensure the servant (handler) has a delegate set. |
291 |
servantDelegate sd = null; |
ServantDelegateImpl sd = null; |
292 |
|
|
293 |
Delegate d = null; |
Delegate d = null; |
294 |
|
|
300 |
{ |
{ |
301 |
// In some cases exception is thrown if the delegate is not set. |
// In some cases exception is thrown if the delegate is not set. |
302 |
} |
} |
303 |
if (d instanceof servantDelegate) |
if (d instanceof ServantDelegateImpl) |
304 |
{ |
{ |
305 |
// If the delegate is already set, try to reuse the existing |
// If the delegate is already set, try to reuse the existing |
306 |
// instance. |
// instance. |
307 |
sd = (servantDelegate) d; |
sd = (ServantDelegateImpl) d; |
308 |
if (sd.object != object) |
if (sd.object != object) |
309 |
{ |
{ |
310 |
sd = new servantDelegate(servant, poa, Id); |
sd = new ServantDelegateImpl(servant, poa, Id); |
311 |
} |
} |
312 |
} |
} |
313 |
else |
else |
314 |
{ |
{ |
315 |
sd = new servantDelegate(servant, poa, Id); |
sd = new ServantDelegateImpl(servant, poa, Id); |
316 |
} |
} |
317 |
servant._set_delegate(sd); |
servant._set_delegate(sd); |
318 |
|
|
531 |
{ |
{ |
532 |
InvokeHandler handler = object.getHandler(operation(), cookie, false); |
InvokeHandler handler = object.getHandler(operation(), cookie, false); |
533 |
|
|
534 |
if (handler instanceof dynImpHandler) |
if (handler instanceof DynamicImpHandler) |
535 |
{ |
{ |
536 |
DynamicImplementation dyn = ((dynImpHandler) handler).servant; |
DynamicImplementation dyn = ((DynamicImpHandler) handler).servant; |
537 |
if (serverRequest == null) |
if (serverRequest == null) |
538 |
{ |
{ |
539 |
serverRequest = new LocalServerRequest(this); |
serverRequest = new LocalServerRequest(this); |