Package org.omg.CSI

Examples of org.omg.CSI.SASContextBody.discriminator()


/* 266 */       Any msg = this.codec.decode_value(sc.context_data, SASContextBodyHelper.type());
/*     */
/* 268 */       SASContextBody contextBody = SASContextBodyHelper.extract(msg);
/*     */
/* 275 */       if (traceEnabled) {
/* 276 */         log.trace("receive_exception: got SAS reply, type " + contextBody.discriminator());
/*     */       }
/*     */
/*     */     }
/*     */     catch (BAD_PARAM e)
/*     */     {
View Full Code Here


/*     */
/* 366 */       if (contextBody == null)
/*     */       {
/* 369 */         return;
/*     */       }
/* 371 */       if (contextBody.discriminator() == 5)
/*     */       {
/* 375 */         long contextId = contextBody.in_context_msg().client_context_id;
/*     */
/* 377 */         threadLocal.sasReply = createMsgCtxError(contextId, 4);
/*     */
View Full Code Here

/*     */
/* 377 */         threadLocal.sasReply = createMsgCtxError(contextId, 4);
/*     */
/* 380 */         throw new NO_PERMISSION("SAS context does not exist.");
/*     */       }
/* 382 */       if (contextBody.discriminator() == 0)
/*     */       {
/* 384 */         EstablishContext message = contextBody.establish_msg();
/* 385 */         threadLocal.contextId = message.client_context_id;
/* 386 */         threadLocal.sasContextReceived = true;
/*     */
View Full Code Here

/* 291 */       Any msg = this.codec.decode_value(sc.context_data, SASContextBodyHelper.type());
/*     */
/* 293 */       SASContextBody contextBody = SASContextBodyHelper.extract(msg);
/*     */
/* 300 */       if (traceEnabled) {
/* 301 */         log.trace("receive_reply: got SAS reply, type " + contextBody.discriminator());
/*     */       }
/*     */
/* 304 */       if (contextBody.discriminator() == 4)
/*     */       {
/* 307 */         log.warn("Unexpected ContextError in SAS reply");
View Full Code Here

/*     */
/* 300 */       if (traceEnabled) {
/* 301 */         log.trace("receive_reply: got SAS reply, type " + contextBody.discriminator());
/*     */       }
/*     */
/* 304 */       if (contextBody.discriminator() == 4)
/*     */       {
/* 307 */         log.warn("Unexpected ContextError in SAS reply");
/* 308 */         throw new NO_PERMISSION("Unexpected ContextError in SAS reply", 1245904897, CompletionStatus.COMPLETED_YES);
/*     */       }
/*     */
View Full Code Here

/* 336 */       Any msg = this.codec.decode_value(sc.context_data, SASContextBodyHelper.type());
/*     */
/* 338 */       SASContextBody contextBody = SASContextBodyHelper.extract(msg);
/*     */
/* 345 */       if (traceEnabled) {
/* 346 */         log.trace("receive_exceptpion: got SAS reply, type " + contextBody.discriminator());
/*     */       }
/*     */
/*     */     }
/*     */     catch (BAD_PARAM e)
/*     */     {
View Full Code Here

            if (log.isDebugEnabled()) log.debug("Found service context");

            Any any = Util.getCodec().decode_value(serviceContext.context_data, SASContextBodyHelper.type());
            SASContextBody contextBody = SASContextBodyHelper.extract(any);

            short msgType = contextBody.discriminator();
            switch (msgType) {
                case MTEstablishContext.value:
                    if (log.isDebugEnabled()) log.debug("   EstablishContext");

                    contextId = contextBody.establish_msg().client_context_id;
View Full Code Here

        }
        if (contextBody == null)
            return;

        // process MessageInContext
        if (contextBody.discriminator() == MTMessageInContext.value)
        {
            MessageInContext msg = null;
            try
            {
                msg = contextBody.in_context_msg();
View Full Code Here

            }
        }

        // process EstablishContext
        String principalName = null;
        if (contextBody.discriminator() == MTEstablishContext.value)
        {
            EstablishContext msg = null;
            try
            {
                msg = contextBody.establish_msg();
View Full Code Here

                logger.debug("No context found, but not required");
            return;
        }

        // process MessageInContext
        if (contextBody.discriminator() == MTMessageInContext.value)
        {
            MessageInContext msg = null;
            try
            {
                msg = contextBody.in_context_msg();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.