private static StorageOptions toStorageOptions(Attributes attrs) throws NamingException { Attribute levelOfSupport = attrs.get("dcmStorageConformance"); Attribute signatureSupport = attrs.get("dcmDigitalSignatureSupport"); Attribute coercion = attrs.get("dcmDataElementCoercion"); if (levelOfSupport == null && signatureSupport == null && coercion == null) return null; StorageOptions opts = new StorageOptions(); opts.setLevelOfSupport( StorageOptions.LevelOfSupport.valueOf(LdapUtils.intValue(levelOfSupport, 3))); opts.setDigitalSignatureSupport( StorageOptions.DigitalSignatureSupport.valueOf(LdapUtils.intValue(signatureSupport, 0))); opts.setElementCoercion( StorageOptions.ElementCoercion.valueOf(LdapUtils.intValue(coercion, 2))); return opts; }
private static StorageOptions toStorageOptions(Attributes attrs) throws NamingException { Attribute levelOfSupport = attrs.get("dcmStorageConformance"); Attribute signatureSupport = attrs.get("dcmDigitalSignatureSupport"); Attribute coercion = attrs.get("dcmDataElementCoercion"); if (levelOfSupport == null && signatureSupport == null && coercion == null) return null; StorageOptions opts = new StorageOptions(); opts.setLevelOfSupport( StorageOptions.LevelOfSupport.valueOf(LdapUtils.intValue(levelOfSupport, 3))); opts.setDigitalSignatureSupport( StorageOptions.DigitalSignatureSupport.valueOf(LdapUtils.intValue(signatureSupport, 0))); opts.setElementCoercion( StorageOptions.ElementCoercion.valueOf(LdapUtils.intValue(coercion, 2))); return opts; }
storageOpts = new StorageOptions(); storageOpts.setDigitalSignatureSupport( StorageOptions.DigitalSignatureSupport.valueOf(reader.intValue())); break; case "dcmDataElementCoercion":
storageOpts = new StorageOptions(); storageOpts.setDigitalSignatureSupport( StorageOptions.DigitalSignatureSupport.valueOf(reader.intValue())); break; case "dcmDataElementCoercion":
public static StorageOptions valueOf(ExtendedNegotiation extNeg) { return new StorageOptions( LevelOfSupport.valueOf(extNeg.getField(0, (byte) 3)), DigitalSignatureSupport.valueOf(extNeg.getField(2, (byte) 0)), ElementCoercion.valueOf(extNeg.getField(4, (byte) 2))); }
public static StorageOptions valueOf(ExtendedNegotiation extNeg) { return new StorageOptions( LevelOfSupport.valueOf(extNeg.getField(0, (byte) 3)), DigitalSignatureSupport.valueOf(extNeg.getField(2, (byte) 0)), ElementCoercion.valueOf(extNeg.getField(4, (byte) 2))); }