private byte[] getSupportedVersions(final boolean fullVersionList) { Set<Byte> supportedVersions = versions.getSupportedVersions(); if (fullVersionList) { Byte[] temp = supportedVersions.toArray(new Byte[supportedVersions.size()]); byte[] response = new byte[temp.length]; for (int i = 0; i < temp.length; i++) { response[i] = temp[i]; } return response; } for (byte current : supportedVersions) { // For older clients (1.0.4.Final and before) we send a special version list that allows them // to select protocol 0x01 whilst indicating to newer clients that there are more versions available. if (current == 0x01) { return new byte[] { 0x00, 0x01 }; } } return new byte[] { 0x00 }; }
Set<Byte> supportedVersions = versions.getSupportedVersions(getRequiredCapabilities(serviceURL));
private byte[] getSupportedVersions(final boolean fullVersionList) { Set<Byte> supportedVersions = versions.getSupportedVersions(); if (fullVersionList) { Byte[] temp = supportedVersions.toArray(new Byte[supportedVersions.size()]); byte[] response = new byte[temp.length]; for (int i = 0; i < temp.length; i++) { response[i] = temp[i]; } return response; } for (byte current : supportedVersions) { // For older clients (1.0.4.Final and before) we send a special version list that allows them // to select protocol 0x01 whilst indicating to newer clients that there are more versions available. if (current == 0x01) { return new byte[] { 0x00, 0x01 }; } } return new byte[] { 0x00 }; }
private byte[] getSupportedVersions(final boolean fullVersionList) { Set<Byte> supportedVersions = versions.getSupportedVersions(); if (fullVersionList) { Byte[] temp = supportedVersions.toArray(new Byte[supportedVersions.size()]); byte[] response = new byte[temp.length]; for (int i = 0; i < temp.length; i++) { response[i] = temp[i]; } return response; } for (byte current : supportedVersions) { // For older clients (1.0.4.Final and before) we send a special version list that allows them // to select protocol 0x01 whilst indicating to newer clients that there are more versions available. if (current == 0x01) { return new byte[] { 0x00, 0x01 }; } } return new byte[] { 0x00 }; }
Set<Byte> supportedVersions = versions.getSupportedVersions(getRequiredCapabilities(serviceURL));
Set<Byte> supportedVersions = versions.getSupportedVersions(getRequiredCapabilities(serviceURL));