FileDocCategorySizeDatePackage
VersionController.javaAPI DocExample3800Tue May 29 16:57:14 BST 2007com.sun.xml.ws.transport.tcp.util

VersionController

public final class VersionController extends Object
author
Alexey Stashok

Fields Summary
private static final VersionController
instance
private final Version
framingVersion
private final Version
connectionManagementVersion
Constructors Summary
private VersionController(Version framingVersion, Version connectionManagementVersion)

    
       
               
        this.framingVersion = framingVersion;
        this.connectionManagementVersion = connectionManagementVersion;
    
Methods Summary
public VersiongetClosestSupportedConnectionManagementVersion(Version connectionManagementVersion)
Method returns closest to given connection management version, which current implementation supports

        return this.connectionManagementVersion;
    
public VersiongetClosestSupportedFramingVersion(Version framingVersion)
Method returns closest to given framing version, which current implementation supports

        return this.framingVersion;
    
public VersiongetConnectionManagementVersion()

        return connectionManagementVersion;
    
public VersiongetFramingVersion()

        return framingVersion;
    
public static com.sun.xml.ws.transport.tcp.util.VersionControllergetInstance()

        return instance;
    
public booleanisVersionSupported(Version framingVersion, Version connectionManagementVersion)
Method checks compatibility of server and client versions

        
        return this.framingVersion.equals(framingVersion) &&
                this.connectionManagementVersion.equals(connectionManagementVersion);