You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@juneau.apache.org by ja...@apache.org on 2019/03/16 14:25:14 UTC

[juneau] branch master updated: Add deprecated methods back in.

This is an automated email from the ASF dual-hosted git repository.

jamesbognar pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/juneau.git


The following commit(s) were added to refs/heads/master by this push:
     new 6e4d7c8  Add deprecated methods back in.
6e4d7c8 is described below

commit 6e4d7c845664ea86a1b604357b3da16518a70085
Author: JamesBognar <ja...@apache.org>
AuthorDate: Sat Mar 16 10:23:05 2019 -0400

    Add deprecated methods back in.
---
 .../java/org/apache/juneau/rest/widget/Widget.java | 27 ++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/juneau-rest/juneau-rest-server/src/main/java/org/apache/juneau/rest/widget/Widget.java b/juneau-rest/juneau-rest-server/src/main/java/org/apache/juneau/rest/widget/Widget.java
index 85bb1e1..0011d06 100644
--- a/juneau-rest/juneau-rest-server/src/main/java/org/apache/juneau/rest/widget/Widget.java
+++ b/juneau-rest/juneau-rest-server/src/main/java/org/apache/juneau/rest/widget/Widget.java
@@ -74,6 +74,15 @@ public abstract class Widget {
 	}
 
 	/**
+	 * Implement {@link #getHtml(RestRequest, RestResponse)}.
+	 */
+	@SuppressWarnings("javadoc")
+	@Deprecated
+	public String getHtml(RestRequest req) throws Exception {
+		return getHtml(req, null);
+	}
+
+	/**
 	 * Resolves any Javascript that should be added to the <xt>&lt;head&gt;/&lt;script&gt;</xt> element.
 	 *
 	 * <p>
@@ -89,6 +98,15 @@ public abstract class Widget {
 	}
 
 	/**
+	 * Implement {@link #getScript(RestRequest, RestResponse)}.
+	 */
+	@SuppressWarnings("javadoc")
+	@Deprecated
+	public String getScript(RestRequest req) throws Exception {
+		return getScript(req, null);
+	}
+
+	/**
 	 * Resolves any CSS styles that should be added to the <xt>&lt;head&gt;/&lt;style&gt;</xt> element.
 	 *
 	 * <p>
@@ -104,6 +122,15 @@ public abstract class Widget {
 	}
 
 	/**
+	 * Implement {@link #getStyle(RestRequest, RestResponse)}.
+	 */
+	@SuppressWarnings("javadoc")
+	@Deprecated
+	public String getStyle(RestRequest req) throws Exception {
+		return getStyle(req, null);
+	}
+
+	/**
 	 * Retrieves the specified classpath resource and returns the contents as a string.
 	 *
 	 * <p>