1 17 package org.apache.geronimo.common.propertyeditor; 18 19 import java.net.InetAddress ; 20 import java.net.UnknownHostException ; 21 22 27 public class InetAddressEditor extends TextPropertyEditorSupport { 28 29 public Object getValue() { 30 try { 31 return InetAddress.getByName(getAsText()); 32 } catch (UnknownHostException e) { 33 throw new PropertyEditorException(e); 34 } 35 } 36 } 37 | Popular Tags |