/** * Return an enumeration of the names of the context attributes * associated with this context. */@Override public Enumeration<String> getAttributeNames() { return context.getAttributeNames(); }
@SuppressWarnings("unchecked") @Override public Enumeration<String> getAttributeNames() { Set<String> names = new HashSet<>(); names.addAll(attributes.keySet()); return new MultiEnumeration<>(new Enumeration[] { super.getAttributeNames(), Collections.enumeration(names) }); } }
@SuppressWarnings("unchecked") @Override public Enumeration<String> getAttributeNames() { Set<String> names = new HashSet<String>(); names.addAll(attributes.keySet()); return new MultiEnumeration<String>(new Enumeration[] { super.getAttributeNames(), Collections.enumeration(names) }); } }
@SuppressWarnings("unchecked") @Override public Enumeration<String> getAttributeNames() { Set<String> names = new HashSet<>(); names.addAll(attributes.keySet()); return new MultiEnumeration<>(new Enumeration[] { super.getAttributeNames(), Collections.enumeration(names) }); } }
@Override @SuppressWarnings("unchecked") // doPrivileged() returns the correct type public Enumeration<String> getAttributeNames() { if (SecurityUtil.isPackageProtectionEnabled()) { return (Enumeration<String>) doPrivileged( "getAttributeNames", null); } else { return context.getAttributeNames(); } }
public Enumeration getAttributeNames() { if (SecurityUtil.isPackageProtectionEnabled()) { return (Enumeration) doPrivileged("getAttributeNames", null); } else { return context.getAttributeNames(); } }
@Override @SuppressWarnings("unchecked") // doPrivileged() returns the correct type public Enumeration<String> getAttributeNames() { if (SecurityUtil.isPackageProtectionEnabled()) { return (Enumeration<String>) doPrivileged( "getAttributeNames", null); } else { return context.getAttributeNames(); } }
@Override @SuppressWarnings("unchecked") // doPrivileged() returns the correct type public Enumeration<String> getAttributeNames() { if (SecurityUtil.isPackageProtectionEnabled()) { return (Enumeration<String>) doPrivileged( "getAttributeNames", null); } else { return context.getAttributeNames(); } }
@Override @SuppressWarnings("unchecked") // doPrivileged() returns the correct type public Enumeration<String> getAttributeNames() { if (SecurityUtil.isPackageProtectionEnabled()) { return (Enumeration<String>) doPrivileged( "getAttributeNames", null); } else { return context.getAttributeNames(); } }
public Enumeration getAttributeNames() { if (SecurityUtil.isPackageProtectionEnabled()) { return (Enumeration) doPrivileged("getAttributeNames", null); } else { return context.getAttributeNames(); } }
@Override @SuppressWarnings("unchecked") // doPrivileged() returns the correct type public Enumeration<String> getAttributeNames() { if (SecurityUtil.isPackageProtectionEnabled()) { return (Enumeration<String>) doPrivileged( "getAttributeNames", null); } else { return context.getAttributeNames(); } }
public Enumeration getAttributeNames() { if (SecurityUtil.isPackageProtectionEnabled()) { return (Enumeration) doPrivileged("getAttributeNames", null); } else { return context.getAttributeNames(); } }
@Override @SuppressWarnings("unchecked") // doPrivileged() returns the correct type public Enumeration<String> getAttributeNames() { if (SecurityUtil.isPackageProtectionEnabled()) { return (Enumeration<String>) doPrivileged( "getAttributeNames", null); } else { return context.getAttributeNames(); } }
@Override @SuppressWarnings("unchecked") // doPrivileged() returns the correct type public Enumeration<String> getAttributeNames() { if (SecurityUtil.isPackageProtectionEnabled()) { return (Enumeration<String>) doPrivileged( "getAttributeNames", null); } else { return context.getAttributeNames(); } }
@Override @SuppressWarnings("unchecked") // doPrivileged() returns the correct type public Enumeration<String> getAttributeNames() { if (SecurityUtil.isPackageProtectionEnabled()) { return (Enumeration<String>) doPrivileged( "getAttributeNames", null); } else { return context.getAttributeNames(); } }
@Override @SuppressWarnings("unchecked") // doPrivileged() returns the correct type public Enumeration<String> getAttributeNames() { if (SecurityUtil.isPackageProtectionEnabled()) { return (Enumeration<String>) doPrivileged( "getAttributeNames", null); } else { return context.getAttributeNames(); } }