Skip to content

Commit

Permalink
Added webmention link type
Browse files Browse the repository at this point in the history
  • Loading branch information
benfortuna committed Feb 6, 2024
1 parent 6957949 commit 3071ec8
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/main/java/net/fortuna/ical4j/extensions/link/Webmention.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package net.fortuna.ical4j.extensions.link;

import net.fortuna.ical4j.model.LinkRelationType;
import net.fortuna.ical4j.model.parameter.LinkRel;
import net.fortuna.ical4j.model.property.Link;

import java.net.URI;

/**
* Identifies a target URI that supports the Webmention protocol. This allows clients that mention a resource in some
* form of publishing process to contact that endpoint and inform it that this resource has been mentioned.
* <p>
* See also <a href="https://www.iana.org/assignments/link-relations/link-relations.xhtml">Link Relations</a>
*/
public class Webmention extends Link {

public Webmention(URI uri) {
super(uri);
add(new LinkRel(LinkRelationType.webmention));
}
}

0 comments on commit 3071ec8

Please sign in to comment.