Return-Path: Delivered-To: apmail-click-commits-archive@www.apache.org Received: (qmail 42977 invoked from network); 8 Jun 2010 22:55:05 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 8 Jun 2010 22:55:05 -0000 Received: (qmail 77661 invoked by uid 500); 8 Jun 2010 22:55:05 -0000 Delivered-To: apmail-click-commits-archive@click.apache.org Received: (qmail 77646 invoked by uid 500); 8 Jun 2010 22:55:05 -0000 Mailing-List: contact commits-help@click.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: click-dev@click.apache.org Delivered-To: mailing list commits@click.apache.org Received: (qmail 77638 invoked by uid 99); 8 Jun 2010 22:55:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Jun 2010 22:55:05 +0000 X-ASF-Spam-Status: No, hits=-1789.4 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Jun 2010 22:55:05 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id E907E23889E2; Tue, 8 Jun 2010 22:54:44 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r952854 - /click/trunk/click/framework/src/org/apache/click/Context.java Date: Tue, 08 Jun 2010 22:54:44 -0000 To: commits@click.apache.org From: sabob@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20100608225444.E907E23889E2@eris.apache.org> Author: sabob Date: Tue Jun 8 22:54:44 2010 New Revision: 952854 URL: http://svn.apache.org/viewvc?rev=952854&view=rev Log: refactor Context to use utility method Modified: click/trunk/click/framework/src/org/apache/click/Context.java Modified: click/trunk/click/framework/src/org/apache/click/Context.java URL: http://svn.apache.org/viewvc/click/trunk/click/framework/src/org/apache/click/Context.java?rev=952854&r1=952853&r2=952854&view=diff ============================================================================== --- click/trunk/click/framework/src/org/apache/click/Context.java (original) +++ click/trunk/click/framework/src/org/apache/click/Context.java Tue Jun 8 22:54:44 2010 @@ -308,8 +308,7 @@ public class Context { * @return true if this is an Ajax request, false otherwise */ public boolean isAjaxRequest() { - return getRequest().getHeader(X_REQUESTED_WITH) != null - || getRequest().getParameter(X_REQUESTED_WITH) != null; + return ClickUtils.isAjaxRequest(getRequest()); } /**