1 17 18 package org.apache.geronimo.common.propertyeditor; 19 20 import java.net.URI ; 21 import java.net.URISyntaxException ; 22 23 29 public class URIEditor extends TextPropertyEditorSupport { 30 31 public Object getValue() { 32 try { 33 return new URI (getAsText()); 34 } catch (URISyntaxException e) { 35 throw new PropertyEditorException(e); 36 } 37 } 38 39 } 40 | Popular Tags |