public class YadisUrl extends Object
Constructor and Description |
---|
YadisUrl(String urlString)
Contructs a YadisURL from a string;
assumes the string to be a URL-type identifier
|
YadisUrl(URL urlId)
Constructs a YadisURL from a URL object;
insures the schema is HTTP or HTTPS
|
YadisUrl(XriIdentifier xriId)
Constructs a YadisURL from an XRI identifier.
|
Modifier and Type | Method and Description |
---|---|
URL |
getUrl()
Gets the URL to be used in Yadis transactions.
|
String |
toString()
Gets a string representation of the YadisURL.
|
public YadisUrl(String urlString) throws YadisException
urlString
- URL-type identifier in string formatYadisException
- if the provided string cannot be a YadisUrlpublic YadisUrl(URL urlId) throws YadisException
urlId
- URL identifierYadisException
- tf the URL identifier is not a valid YadisURLpublic YadisUrl(XriIdentifier xriId) throws YadisException
xriId
- The XRI identifierYadisException
Copyright © 2015 Sxip. All rights reserved.