Return-Path: Delivered-To: apmail-cxf-commits-archive@www.apache.org Received: (qmail 65228 invoked from network); 4 Nov 2009 22:02:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 Nov 2009 22:02:29 -0000 Received: (qmail 37342 invoked by uid 500); 4 Nov 2009 22:02:29 -0000 Delivered-To: apmail-cxf-commits-archive@cxf.apache.org Received: (qmail 37271 invoked by uid 500); 4 Nov 2009 22:02:29 -0000 Mailing-List: contact commits-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list commits@cxf.apache.org Received: (qmail 37262 invoked by uid 99); 4 Nov 2009 22:02:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Nov 2009 22:02:28 +0000 X-ASF-Spam-Status: No, hits=-2.7 required=5.0 tests=AWL,BAYES_00 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; Wed, 04 Nov 2009 22:02:26 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 6FD102388905; Wed, 4 Nov 2009 22:02:06 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r832882 - /cxf/branches/2.1.x-fixes/api/src/main/java/org/apache/cxf/message/MessageUtils.java Date: Wed, 04 Nov 2009 22:02:06 -0000 To: commits@cxf.apache.org From: dkulp@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20091104220206.6FD102388905@eris.apache.org> Author: dkulp Date: Wed Nov 4 22:02:05 2009 New Revision: 832882 URL: http://svn.apache.org/viewvc?rev=832882&view=rev Log: add required method Modified: cxf/branches/2.1.x-fixes/api/src/main/java/org/apache/cxf/message/MessageUtils.java Modified: cxf/branches/2.1.x-fixes/api/src/main/java/org/apache/cxf/message/MessageUtils.java URL: http://svn.apache.org/viewvc/cxf/branches/2.1.x-fixes/api/src/main/java/org/apache/cxf/message/MessageUtils.java?rev=832882&r1=832881&r2=832882&view=diff ============================================================================== --- cxf/branches/2.1.x-fixes/api/src/main/java/org/apache/cxf/message/MessageUtils.java (original) +++ cxf/branches/2.1.x-fixes/api/src/main/java/org/apache/cxf/message/MessageUtils.java Wed Nov 4 22:02:05 2009 @@ -117,6 +117,15 @@ return false; } + + public static boolean getContextualBoolean(Message m, String key, boolean defaultValue) { + Object o = m.getContextualProperty(key); + if (o != null) { + return isTrue(o); + } + return defaultValue; + } + /** * Returns true if the underlying content format is a W3C DOM or a SAAJ message. */