public class Url extends Property
4.8.4.6 Uniform Resource Locator Property Name: URL Purpose: This property defines a Uniform Resource Locator (URL) associated with the iCalendar object. Value Type: URI Property Parameters: Non-standard property parameters can be specified on this property. Conformance: This property can be specified once in the "VEVENT", "VTODO", "VJOURNAL" or "VFREEBUSY" calendar components. Description: This property may be used in a calendar component to convey a location where a more dynamic rendition of the calendar information associated with the calendar component can be found. This memo does not attempt to standardize the form of the URI, nor the format of the resource pointed to by the property value. If the URL property and Content-Location MIME header are both specified, they MUST point to the same resource. Format Definition: The property is defined by the following notation: url = "URL" urlparam ":" uri CRLF urlparam = *(";" xparam) Example: The following is an example of this property: URL:http://abc.com/pub/calendars/jsmith/mytime.ics
Modifier and Type | Class and Description |
---|---|
static class |
Url.Factory |
ACKNOWLEDGED, ACTION, ATTACH, ATTENDEE, BUSYTYPE, CALSCALE, CATEGORIES, CLASS, COMMENT, COMPLETED, CONTACT, COUNTRY, CREATED, DESCRIPTION, DTEND, DTSTAMP, DTSTART, DUE, DURATION, EXDATE, EXPERIMENTAL_PREFIX, EXRULE, EXTENDED_ADDRESS, FREEBUSY, GEO, LAST_MODIFIED, LOCALITY, LOCATION, LOCATION_TYPE, METHOD, NAME, ORGANIZER, PERCENT_COMPLETE, POSTALCODE, PRIORITY, PRODID, RDATE, RECURRENCE_ID, REGION, RELATED_TO, REPEAT, REQUEST_STATUS, RESOURCES, RRULE, SEQUENCE, STATUS, STREET_ADDRESS, SUMMARY, TEL, TRANSP, TRIGGER, TZID, TZNAME, TZOFFSETFROM, TZOFFSETTO, TZURL, UID, URL, VERSION
Constructor and Description |
---|
Url()
Default constructor.
|
Url(ParameterList aList,
java.lang.String aValue) |
Url(ParameterList aList,
java.net.URI aUri) |
Url(java.net.URI aUri) |
Modifier and Type | Method and Description |
---|---|
java.net.URI |
getUri() |
java.lang.String |
getValue() |
void |
setUri(java.net.URI uri) |
void |
setValue(java.lang.String aValue)
Sets the current value of the property.
|
void |
validate()
Perform validation on a property.
|
copy, equals, getName, getParameter, getParameters, getParameters, hashCode, toString
public Url()
public Url(ParameterList aList, java.lang.String aValue) throws java.net.URISyntaxException
aList
- a list of parameters for this componentaValue
- a value string for this componentjava.net.URISyntaxException
- where the specified value string is not a valid uripublic Url(java.net.URI aUri)
aUri
- a URIpublic Url(ParameterList aList, java.net.URI aUri)
aList
- a list of parameters for this componentaUri
- a URIpublic final java.net.URI getUri()
public final void setValue(java.lang.String aValue) throws java.net.URISyntaxException
public final java.lang.String getValue()
public final void setUri(java.net.URI uri)
uri
- The uri to set.public void validate() throws ValidationException
Property
validate
in class Property
ValidationException
- where the property is not in a valid state