FileDocCategorySizeDatePackage
SvcContextUtils.javaAPI DocGlassfish v2 API4214Fri May 04 22:34:58 BST 2007com.sun.enterprise.iiop.security

SvcContextUtils

public class SvcContextUtils extends Object
This class contains the utility methods for dealing with service contexts.
author:
Sekhar Vajjhala

Fields Summary
private static Logger
_logger
public static final int
MessageInContextMinor
Define minor codes for errors specified in section 4.5, "ContextError Values and Exceptions" Currently only MessageInContextMinor code is defined since this is the only used by the security interceptors.
private static final int
SECURITY_ATTRIBUTE_SERVICE_ID
Hard code the value of 15 for SecurityAttributeService until it is defined in IOP.idl. sc.context_id = SecurityAttributeService.value;
private static final String
EstablishContextName
Define mnemonic strings for SAS message types for debugging purposes.
private static final String
CompleteEstablishName
private static final String
MessageInContextName
private static final String
ContextErrorName
Constructors Summary
Methods Summary
public static java.lang.StringgetMsgname(short discr)
returns a mnemonic name for the message type based on the SASContextBody union discriminant


                         

         
  
        String name = null;

        switch (discr) {

        case MTEstablishContext.value:
            name = EstablishContextName;
            break;

        case MTContextError.value:
            name = ContextErrorName;
            break;
 
        case MTCompleteEstablishContext.value:
            name = CompleteEstablishName;
            break;

        case MTMessageInContext.value:
            name = MessageInContextName;
            break;

        default:
		_logger.log(Level.SEVERE,"iiop.unknown_msgtype");
            break;  
	}
        return name;