net.java.dev.webdav.jaxrs.xml.elements
Class HRef

java.lang.Object
  extended by net.java.dev.webdav.jaxrs.xml.elements.HRef

public final class HRef
extends java.lang.Object

WebDAV href XML Element.

Author:
Markus KARG (mkarg@users.dev.java.net)
See Also:
Chapter 14.7 "href XML Element" of RFC 4918 "HTTP Extensions for Web Distributed Authoring and Versioning (WebDAV)"

Constructor Summary
HRef(java.lang.String value)
           
HRef(java.net.URI uri)
           
 
Method Summary
 java.net.URI getUri()
          Deprecated. Since 1.1.1. Use getURI() instead. Future releases will not contain this method anymore.
 java.net.URI getURI()
           
 java.lang.String getValue()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HRef

public HRef(java.net.URI uri)

HRef

public HRef(java.lang.String value)
Method Detail

getUri

@Deprecated
public final java.net.URI getUri()
Deprecated. Since 1.1.1. Use getURI() instead. Future releases will not contain this method anymore.

Returns:
Value as a URI instance, if the content is a valid URI; null otherwise.

getURI

public final java.net.URI getURI()
                          throws java.net.URISyntaxException
Returns:
Value as a URI instance, if the value is a valid URI; null otherwise.
Throws:
java.net.URISyntaxException
Since:
1.1.1

getValue

public final java.lang.String getValue()
Since:
1.1.1


Copyright © 2008-2009 The java.net WebDAV Project. All Rights Reserved.