You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2013/10/28 09:04:42 UTC
svn commit: r1536279 -
/myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/ajax/AjaxUtils.java
Author: lofwyr
Date: Mon Oct 28 08:04:41 2013
New Revision: 1536279
URL: http://svn.apache.org/r1536279
Log:
mark deprecated code
Modified:
myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/ajax/AjaxUtils.java
Modified: myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/ajax/AjaxUtils.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/ajax/AjaxUtils.java?rev=1536279&r1=1536278&r2=1536279&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/ajax/AjaxUtils.java (original)
+++ myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/ajax/AjaxUtils.java Mon Oct 28 08:04:41 2013
@@ -116,6 +116,9 @@ public class AjaxUtils {
return added;
}
+ /**
+ * @deprecated since 2.0.0. Is no longer needed
+ */
public static boolean redirect(FacesContext facesContext, String url) throws IOException {
if (!isAjaxRequest(facesContext)) {
return false;
@@ -132,6 +135,9 @@ public class AjaxUtils {
return true;
}
+ /**
+ * @deprecated since 2.0.0. Is no longer needed
+ */
private static void redirectInternal(Writer writer, String url) throws IOException {
writer.flush(); // is needed in some cases, e. g. TOBAGO-1094
writer.write("{\n \"tobagoAjaxResponse\": true,\n");
@@ -142,6 +148,9 @@ public class AjaxUtils {
writer.flush();
}
+ /**
+ * @deprecated since 2.0.0. Is no longer needed
+ */
public static void redirect(HttpServletResponse response, String url) throws IOException {
PrintWriter writer = response.getWriter();
String contentType = "application/json; charset=UTF-8";