Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 73286 invoked from network); 6 Nov 2007 01:18:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Nov 2007 01:18:56 -0000 Received: (qmail 57659 invoked by uid 500); 6 Nov 2007 01:18:44 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 57551 invoked by uid 500); 6 Nov 2007 01:18:44 -0000 Mailing-List: contact axis-cvs-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-cvs@ws.apache.org Received: (qmail 57540 invoked by uid 500); 6 Nov 2007 01:18:44 -0000 Delivered-To: apmail-ws-axis2-cvs@ws.apache.org Received: (qmail 57537 invoked by uid 99); 6 Nov 2007 01:18:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Nov 2007 17:18:43 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Nov 2007 01:18:55 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 3CE231A9832; Mon, 5 Nov 2007 17:18:35 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r592220 - /webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/message/impl/BlockImpl.java Date: Tue, 06 Nov 2007 01:18:34 -0000 To: axis2-cvs@ws.apache.org From: scheu@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20071106011835.3CE231A9832@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: scheu Date: Mon Nov 5 17:18:33 2007 New Revision: 592220 URL: http://svn.apache.org/viewvc?rev=592220&view=rev Log: AXIS2-267 Contributor:Rich Scheuerle Added new methods to OMDataSourceExt Modified: webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/message/impl/BlockImpl.java Modified: webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/message/impl/BlockImpl.java URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/message/impl/BlockImpl.java?rev=592220&r1=592219&r2=592220&view=diff ============================================================================== --- webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/message/impl/BlockImpl.java (original) +++ webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/message/impl/BlockImpl.java Mon Nov 5 17:18:33 2007 @@ -46,6 +46,7 @@ import java.io.StringReader; import java.io.UnsupportedEncodingException; import java.io.Writer; +import java.util.HashMap; /** * BlockImpl Abstract Base class for various Block Implementations. @@ -73,6 +74,8 @@ protected BlockFactory factory; protected boolean consumed = false; protected Message parent; + + private HashMap map = null; // OMDataSourceExt properties /** * A Block has the following components @@ -493,4 +496,24 @@ XMLStreamWriter writer) throws XMLStreamException, WebServiceException; + public Object getProperty(String key) { + if (map == null) { + return null; + } + return map.get(key); + } + + public Object setProperty(String key, Object value) { + if (map == null) { + map = new HashMap(); + } + return map.put(key, value); + } + + public boolean hasProperty(String key) { + if (map == null) { + return false; + } + return map.containsKey(key); + } } --------------------------------------------------------------------- To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org For additional commands, e-mail: axis-cvs-help@ws.apache.org