private Any createMsgCtxError(long contextId, int majorStatus) { Any any = ORB.init().create_any(); synchronized (msgBodyCtxError) { msgBodyCtxError.error_msg().client_context_id = contextId; msgBodyCtxError.error_msg().major_status = majorStatus; SASContextBodyHelper.insert(any, msgBodyCtxError); } return any; }
msgBodyCtxError.error_msg(ctxError);
private Any createMsgCtxError(long contextId, int majorStatus) { Any any = ORB.init().create_any(); synchronized (msgBodyCtxError) { msgBodyCtxError.error_msg().client_context_id = contextId; msgBodyCtxError.error_msg().major_status = majorStatus; SASContextBodyHelper.insert(any, msgBodyCtxError); } return any; }
private Any createMsgCtxError(long contextId, int majorStatus) { Any any = ORB.init().create_any(); synchronized (msgBodyCtxError) { msgBodyCtxError.error_msg().client_context_id = contextId; msgBodyCtxError.error_msg().major_status = majorStatus; SASContextBodyHelper.insert(any, msgBodyCtxError); } return any; }
void returnContextError(ServerRequestInfo ri, int major, int minor) { // Create CompleteEstablishContext SASContextBody sasBody = new SASContextBody(); ContextError errorMsg = new ContextError(); errorMsg.client_context_id = 0; errorMsg.major_status = major; errorMsg.minor_status = minor; errorMsg.error_token = EMPTY_BARR; sasBody.error_msg(errorMsg); log.fine("Adding SASContextBody, discriminator = " + sasBody.discriminator()); ri.add_reply_service_context(encodeSASContextBody(sasBody), true); }
protected Any makeContextError(ServerRequestInfo ri, long client_context_id, int major_status, int minor_status, byte[] error_token) { ContextError msg = new ContextError(); msg.client_context_id = client_context_id; msg.error_token = error_token; msg.major_status = major_status; msg.minor_status = minor_status; SASContextBody contextBody = new SASContextBody(); contextBody.error_msg(msg); Any any = orb.create_any(); SASContextBodyHelper.insert( any, contextBody ); if (ri != null) { try { ri.add_reply_service_context(new ServiceContext(SASInitializer.SecurityAttributeService, codec.encode_value( any ) ), true); } catch (Exception e) { logger.error("Error setting reply service context:" + e); throw new org.omg.CORBA.NO_PERMISSION("SAS Error setting reply service context: " + e, MinorCodes.SAS_TSS_FAILURE, CompletionStatus.COMPLETED_MAYBE); } } return any; }
ContextError reply = contextBody.error_msg(); logger.debug("receive_exception MTContextError: " + reply.client_context_id);
ContextError reply = contextBody.error_msg();
public static void write (org.omg.CORBA.portable.OutputStream ostream, org.omg.CSI.SASContextBody value) { ostream.write_short (value.discriminator ()); switch (value.discriminator ()) { case org.omg.CSI.MTEstablishContext.value: org.omg.CSI.EstablishContextHelper.write (ostream, value.establish_msg ()); break; case org.omg.CSI.MTCompleteEstablishContext.value: org.omg.CSI.CompleteEstablishContextHelper.write (ostream, value.complete_msg ()); break; case org.omg.CSI.MTContextError.value: org.omg.CSI.ContextErrorHelper.write (ostream, value.error_msg ()); break; case org.omg.CSI.MTMessageInContext.value: org.omg.CSI.MessageInContextHelper.write (ostream, value.in_context_msg ()); break; } }
public static void write (org.omg.CORBA.portable.OutputStream ostream, org.omg.CSI.SASContextBody value) { ostream.write_short (value.discriminator ()); switch (value.discriminator ()) { case org.omg.CSI.MTEstablishContext.value: org.omg.CSI.EstablishContextHelper.write (ostream, value.establish_msg ()); break; case org.omg.CSI.MTCompleteEstablishContext.value: org.omg.CSI.CompleteEstablishContextHelper.write (ostream, value.complete_msg ()); break; case org.omg.CSI.MTContextError.value: org.omg.CSI.ContextErrorHelper.write (ostream, value.error_msg ()); break; case org.omg.CSI.MTMessageInContext.value: org.omg.CSI.MessageInContextHelper.write (ostream, value.in_context_msg ()); break; } }
msgBodyCtxError.error_msg(ctxError);
msgBodyCtxError.error_msg(ctxError);
result.error_msg (_var); break;
result.error_msg (_var); break;
public static void write (org.omg.CORBA.portable.OutputStream out, SASContextBody s) { out.write_short(s.discriminator ()); switch (s.discriminator ()) { case 0: { org.omg.CSI.EstablishContextHelper.write(out,s.establish_msg ()); break; } case 1: { org.omg.CSI.CompleteEstablishContextHelper.write(out,s.complete_msg ()); break; } case 4: { org.omg.CSI.ContextErrorHelper.write(out,s.error_msg ()); break; } case 5: { org.omg.CSI.MessageInContextHelper.write(out,s.in_context_msg ()); break; } } } }
public static void write (org.omg.CORBA.portable.OutputStream out, SASContextBody s) { out.write_short(s.discriminator ()); switch (s.discriminator ()) { case 0: { org.omg.CSI.EstablishContextHelper.write(out,s.establish_msg ()); break; } case 1: { org.omg.CSI.CompleteEstablishContextHelper.write(out,s.complete_msg ()); break; } case 4: { org.omg.CSI.ContextErrorHelper.write(out,s.error_msg ()); break; } case 5: { org.omg.CSI.MessageInContextHelper.write(out,s.in_context_msg ()); break; } } } }
org.omg.CSI.ContextError _error_msg = null; _error_msg = org.omg.CSI.ContextErrorHelper.read (istream); value.error_msg (_error_msg); break; case org.omg.CSI.MTMessageInContext.value:
org.omg.CSI.ContextError _error_msg = null; _error_msg = org.omg.CSI.ContextErrorHelper.read (istream); value.error_msg (_error_msg); break; case org.omg.CSI.MTMessageInContext.value: