Code example for Attributes

Methods: get

0
		try  
		{ 
			ctx = new InitialDirContext(env);
		 
			Attributes attrs = ctx.getAttributes(domain, new String[] {"mx"});
			Attribute attr = attrs.get("mx");
			if (attr != null)
			{ 
				System.out.println(attr);
				ctx.close();
				return true; 
			} 
			else 
			{ 
				ctx.close();
				return false; 
			} 
		} 
		catch (Exception error) 
		{ 
Stop searching for code, let great code find you!  Add Codota to your java IDE