From: David ‘Bombe’ Roden Date: Wed, 28 May 2008 07:01:20 +0000 (+0200) Subject: add method to restore content type X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=bd4e8ef0e1693046d57b8562e734e6dacf3381d1;p=jSite2.git add method to restore content type --- diff --git a/src/net/pterodactylus/jsite/project/AbstractEntry.java b/src/net/pterodactylus/jsite/project/AbstractEntry.java index 6e0c9d4..ff04760 100644 --- a/src/net/pterodactylus/jsite/project/AbstractEntry.java +++ b/src/net/pterodactylus/jsite/project/AbstractEntry.java @@ -160,4 +160,11 @@ public abstract class AbstractEntry extends AbstractBean implements Entry { this.defaultContentType = defaultContentType; } + /** + * {@inheritDoc} + */ + public void restoreDefaultContentType() { + this.contentType = defaultContentType; + } + } diff --git a/src/net/pterodactylus/jsite/project/Entry.java b/src/net/pterodactylus/jsite/project/Entry.java index 86b5904..52643be 100644 --- a/src/net/pterodactylus/jsite/project/Entry.java +++ b/src/net/pterodactylus/jsite/project/Entry.java @@ -105,4 +105,9 @@ public interface Entry { */ public void setContentType(String contentType); + /** + * Restores the default content type. + */ + public void restoreDefaultContentType(); + }