FileDocCategorySizeDatePackage
SFSBVersionManager.javaAPI DocGlassfish v2 API3816Fri May 04 22:32:58 BST 2007com.sun.ejb.containers

SFSBVersionManager

public final class SFSBVersionManager extends Object implements com.sun.enterprise.iiop.SFSBVersionConstants

Fields Summary
private static ThreadLocal
scTLD
Constructors Summary
Methods Summary
public static voidclearRequestClientVersion()

        SFSBServiceContextInfo ctx = scTLD.get();
        if (ctx != null) {
            ctx.requestVersion = NO_VERSION;
        }
    
public static voidclearResponseClientVersion()

        SFSBServiceContextInfo ctx = scTLD.get();
        if (ctx != null) {
            ctx.responseVersion = NO_VERSION;
        }
    
public static voidclearServiceContextInfo()

        scTLD.set(null);
    
public static longgetRequestClientVersion()


        
        SFSBServiceContextInfo ctx = scTLD.get();
        return (ctx != null) ? ctx.requestVersion : NO_VERSION; 
    
public static longgetResponseClientVersion()

        SFSBServiceContextInfo ctx = scTLD.get();
        return (ctx != null) ? ctx.responseVersion : NO_VERSION;
    
public static com.sun.enterprise.iiop.SFSBServiceContextInfogetServiceContext()

        return scTLD.get();
    
public static voidsetRequestClientVersion(long val)

        SFSBServiceContextInfo ctx = scTLD.get();
        if (ctx == null) {
            ctx = new SFSBServiceContextInfo();
            scTLD.set(ctx);
        }

        ctx.requestVersion = val;
    
public static voidsetResponseClientVersion(long val)

        SFSBServiceContextInfo ctx = scTLD.get();
        if (ctx == null) {
            ctx = new SFSBServiceContextInfo();
            scTLD.set(ctx);
        }

        ctx.responseVersion = val;