Author: thilina
Date: Tue Feb 20 04:56:59 2007
New Revision: 509539

URL: http://svn.apache.org/viewvc?view=rev&rev=509539
Log:
Changing the method signature of the init() in the following mail..
"As requested in the AXIS2-2213 I would like to change the method
signature of the  init method in the OMBuilder  as follows.

public void init(InputStream inputStream, String charSetEncoding,
String url, String contentType)

URL will be useful when building an OM from query parameters. Also the
content-type will be useful to find the boundary value when handling a
boundary delimited message... This will be useful for
multipart/form-data as well as for the MIME..

With the above change we'll be able to move the MIME builder creation
logic in to builders.. In order to make it possible I would like to
add a getAttachments() method to the OMBuilder."

Modified:
    
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/impl/builder/OMBuilder.java
    
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/impl/builder/StAXBuilder.java

Modified: 
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/impl/builder/OMBuilder.java
URL: 
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/impl/builder/OMBuilder.java?view=diff&rev=509539&r1=509538&r2=509539
==============================================================================
--- 
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/impl/builder/OMBuilder.java
 (original)
+++ 
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/impl/builder/OMBuilder.java
 Tue Feb 20 04:56:59 2007
@@ -7,7 +7,7 @@
 
 public interface OMBuilder {
        
-       public void init(InputStream inputStream, String charSetEncoding) 
throws OMException;
+       public void init(InputStream inputStream, String charSetEncoding, 
String url, String contentType) throws OMException;
     /**
      * @return Returns the document element.
      */

Modified: 
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/impl/builder/StAXBuilder.java
URL: 
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/impl/builder/StAXBuilder.java?view=diff&rev=509539&r1=509538&r2=509539
==============================================================================
--- 
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/impl/builder/StAXBuilder.java
 (original)
+++ 
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/impl/builder/StAXBuilder.java
 Tue Feb 20 04:56:59 2007
@@ -103,7 +103,8 @@
     protected StAXBuilder()
     {
     }
-    public void init (InputStream inputStream, String charSetEncoding) throws 
OMException
+    
+    public void init (InputStream inputStream, String charSetEncoding, String 
url, String contentType) throws OMException
     {
         try {
                        this.parser = 
StAXUtils.createXMLStreamReader(inputStream);



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to