1 23 24 package org.apache.webdav.lib.properties; 25 26 import org.apache.webdav.lib.BaseProperty; 27 import org.apache.webdav.lib.ResponseEntity; 28 import org.apache.webdav.lib.util.DOMUtils; 29 import org.w3c.dom.Element ; 30 31 34 public class HrefValuedProperty extends BaseProperty { 35 36 37 39 41 44 public HrefValuedProperty(ResponseEntity response, Element element) { 45 super(response, element); 46 } 47 48 49 51 54 public String getHref() { 55 String hrefValue=""; 56 Element href = DOMUtils.getFirstElement(element, "DAV:", "href"); 57 if (href!=null) 58 { 59 hrefValue = DOMUtils.getTextValue(href); 60 } 61 return hrefValue; 62 } 63 64 public String getPropertyAsString() { 65 return getHref(); 66 } 67 68 public String toString() { 69 return getHref(); 70 } 71 72 } 73 | Popular Tags |