You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by di...@apache.org on 2005/09/15 21:07:03 UTC

svn commit: r289289 [84/134] - in /webservices/axis2/trunk/java: ./ etc/ modules/addressing/ modules/addressing/src/META-INF/ modules/addressing/src/org/apache/axis2/handlers/addressing/ modules/addressing/test-resources/ modules/addressing/test/org/ap...

Modified: webservices/axis2/trunk/java/modules/saaj/src/javax/xml/soap/MimeHeader.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/saaj/src/javax/xml/soap/MimeHeader.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/saaj/src/javax/xml/soap/MimeHeader.java (original)
+++ webservices/axis2/trunk/java/modules/saaj/src/javax/xml/soap/MimeHeader.java Thu Sep 15 11:52:11 2005
@@ -1,64 +1,64 @@
-/*
- * Copyright 2004,2005 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package javax.xml.soap;
-
-/**
- * An object that stores a MIME header name and its value. One
- * or more <CODE>MimeHeader</CODE> objects may be contained in a
- * <CODE>MimeHeaders</CODE> object.
- *
- * @see MimeHeaders MimeHeaders
- */
-public class MimeHeader {
-
-    /**
-     * Constructs a <CODE>MimeHeader</CODE> object initialized
-     * with the given name and value.
-     *
-     * @param name  a <CODE>String</CODE> giving the
-     *              name of the header
-     * @param value a <CODE>String</CODE> giving the
-     *              value of the header
-     */
-    public MimeHeader(String name, String value) {
-        this.name = name;
-        this.value = value;
-    }
-
-    /**
-     * Returns the name of this <CODE>MimeHeader</CODE>
-     * object.
-     *
-     * @return the name of the header as a <CODE>String</CODE>
-     */
-    public String getName() {
-        return name;
-    }
-
-    /**
-     * Returns the value of this <CODE>MimeHeader</CODE>
-     * object.
-     *
-     * @return the value of the header as a <CODE>String</CODE>
-     */
-    public String getValue() {
-        return value;
-    }
-
-    private String name;
-
-    private String value;
-}
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package javax.xml.soap;
+
+/**
+ * An object that stores a MIME header name and its value. One
+ * or more <CODE>MimeHeader</CODE> objects may be contained in a
+ * <CODE>MimeHeaders</CODE> object.
+ *
+ * @see MimeHeaders MimeHeaders
+ */
+public class MimeHeader {
+
+    /**
+     * Constructs a <CODE>MimeHeader</CODE> object initialized
+     * with the given name and value.
+     *
+     * @param name  a <CODE>String</CODE> giving the
+     *              name of the header
+     * @param value a <CODE>String</CODE> giving the
+     *              value of the header
+     */
+    public MimeHeader(String name, String value) {
+        this.name = name;
+        this.value = value;
+    }
+
+    /**
+     * Returns the name of this <CODE>MimeHeader</CODE>
+     * object.
+     *
+     * @return the name of the header as a <CODE>String</CODE>
+     */
+    public String getName() {
+        return name;
+    }
+
+    /**
+     * Returns the value of this <CODE>MimeHeader</CODE>
+     * object.
+     *
+     * @return the value of the header as a <CODE>String</CODE>
+     */
+    public String getValue() {
+        return value;
+    }
+
+    private String name;
+
+    private String value;
+}

Propchange: webservices/axis2/trunk/java/modules/saaj/src/javax/xml/soap/MimeHeader.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: webservices/axis2/trunk/java/modules/saaj/src/javax/xml/soap/MimeHeaders.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/saaj/src/javax/xml/soap/MimeHeaders.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/saaj/src/javax/xml/soap/MimeHeaders.java (original)
+++ webservices/axis2/trunk/java/modules/saaj/src/javax/xml/soap/MimeHeaders.java Thu Sep 15 11:52:11 2005
@@ -1,318 +1,318 @@
-/*
- * Copyright 2004,2005 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package javax.xml.soap;
-
-import java.util.Iterator;
-import java.util.Vector;
-
-/**
- * A container for <CODE>MimeHeader</CODE> objects, which
- * represent the MIME headers present in a MIME part of a
- * message.</P>
- * <p/>
- * <P>This class is used primarily when an application wants to
- * retrieve specific attachments based on certain MIME headers and
- * values. This class will most likely be used by implementations
- * of <CODE>AttachmentPart</CODE> and other MIME dependent parts
- * of the JAXM API.
- *
- * @see SOAPMessage#getAttachments() SOAPMessage.getAttachments()
- * @see AttachmentPart AttachmentPart
- */
-public class MimeHeaders {
-
-    class MatchingIterator implements Iterator {
-
-        private Object nextMatch() {
-
-            label0:
-            while (iterator.hasNext()) {
-                MimeHeader mimeheader = (MimeHeader) iterator.next();
-
-                if (names == null) {
-                    return match
-                            ? null
-                            : mimeheader;
-                }
-
-                for (int i = 0; i < names.length; i++) {
-                    if (!mimeheader.getName().equalsIgnoreCase(names[i])) {
-                        continue;
-                    }
-
-                    if (match) {
-                        return mimeheader;
-                    }
-
-                    continue label0;
-                }
-
-                if (!match) {
-                    return mimeheader;
-                }
-            }
-
-            return null;
-        }
-
-        public boolean hasNext() {
-
-            if (nextHeader == null) {
-                nextHeader = nextMatch();
-            }
-
-            return nextHeader != null;
-        }
-
-        public Object next() {
-
-            if (nextHeader != null) {
-                Object obj = nextHeader;
-
-                nextHeader = null;
-
-                return obj;
-            }
-
-            if (hasNext()) {
-                return nextHeader;
-            } else {
-                return null;
-            }
-        }
-
-        public void remove() {
-            iterator.remove();
-        }
-
-        private boolean match;
-
-        private Iterator iterator;
-
-        private String names[];
-
-        private Object nextHeader;
-
-        MatchingIterator(String as[], boolean flag) {
-
-            match = flag;
-            names = as;
-            iterator = headers.iterator();
-        }
-    }
-
-    /**
-     * Constructs
-     * a default <CODE>MimeHeaders</CODE> object initialized with
-     * an empty <CODE>Vector</CODE> object.
-     */
-    public MimeHeaders() {
-        headers = new Vector();
-    }
-
-    /**
-     * Returns all of the values for the specified header as an
-     * array of <CODE>String</CODE> objects.
-     *
-     * @param name the name of the header for which
-     *             values will be returned
-     * @return a <CODE>String</CODE> array with all of the values
-     *         for the specified header
-     * @see #setHeader(java.lang.String, java.lang.String) setHeader(java.lang.String, java.lang.String)
-     */
-    public String[] getHeader(String name) {
-
-        Vector vector = new Vector();
-
-        for (int i = 0; i < headers.size(); i++) {
-            MimeHeader mimeheader = (MimeHeader) headers.elementAt(i);
-
-            if (mimeheader.getName().equalsIgnoreCase(name)
-                    && (mimeheader.getValue() != null)) {
-                vector.addElement(mimeheader.getValue());
-            }
-        }
-
-        if (vector.size() == 0) {
-            return null;
-        } else {
-            String as[] = new String[vector.size()];
-
-            vector.copyInto(as);
-
-            return as;
-        }
-    }
-
-    /**
-     * Replaces the current value of the first header entry whose
-     * name matches the given name with the given value, adding a
-     * new header if no existing header name matches. This method
-     * also removes all matching headers after the first one.
-     * <p/>
-     * <P>Note that RFC822 headers can contain only US-ASCII
-     * characters.</P>
-     *
-     * @param name  a <CODE>String</CODE> with the
-     *              name of the header for which to search
-     * @param value a <CODE>String</CODE> with the
-     *              value that will replace the current value of the
-     *              specified header
-     * @throws java.lang.IllegalArgumentException
-     *          if there was a
-     *          problem in the mime header name or the value being set
-     * @see #getHeader(java.lang.String) getHeader(java.lang.String)
-     */
-    public void setHeader(String name, String value) {
-
-        boolean flag = false;
-
-        if ((name == null) || name.equals("")) {
-            throw new IllegalArgumentException("Illegal MimeHeader name");
-        }
-
-        for (int i = 0; i < headers.size(); i++) {
-            MimeHeader mimeheader = (MimeHeader) headers.elementAt(i);
-
-            if (mimeheader.getName().equalsIgnoreCase(name)) {
-                if (!flag) {
-                    headers.setElementAt(new MimeHeader(mimeheader
-                            .getName(), value), i);
-
-                    flag = true;
-                } else {
-                    headers.removeElementAt(i--);
-                }
-            }
-        }
-
-        if (!flag) {
-            addHeader(name, value);
-        }
-    }
-
-    /**
-     * Adds a <CODE>MimeHeader</CODE> object with the specified
-     * name and value to this <CODE>MimeHeaders</CODE> object's
-     * list of headers.
-     * <p/>
-     * <P>Note that RFC822 headers can contain only US-ASCII
-     * characters.</P>
-     *
-     * @param name  a <CODE>String</CODE> with the
-     *              name of the header to be added
-     * @param value a <CODE>String</CODE> with the
-     *              value of the header to be added
-     * @throws java.lang.IllegalArgumentException
-     *          if
-     *          there was a problem in the mime header name or value
-     *          being added
-     */
-    public void addHeader(String name, String value) {
-
-        if ((name == null) || name.equals("")) {
-            throw new IllegalArgumentException("Illegal MimeHeader name");
-        }
-
-        int i = headers.size();
-
-        for (int j = i - 1; j >= 0; j--) {
-            MimeHeader mimeheader = (MimeHeader) headers.elementAt(j);
-
-            if (mimeheader.getName().equalsIgnoreCase(name)) {
-                headers.insertElementAt(new MimeHeader(name, value), j + 1);
-
-                return;
-            }
-        }
-
-        headers.addElement(new MimeHeader(name, value));
-    }
-
-    /**
-     * Remove all <CODE>MimeHeader</CODE> objects whose name
-     * matches the the given name.
-     *
-     * @param name a <CODE>String</CODE> with the
-     *             name of the header for which to search
-     */
-    public void removeHeader(String name) {
-
-        for (int i = 0; i < headers.size(); i++) {
-            MimeHeader mimeheader = (MimeHeader) headers.elementAt(i);
-
-            if (mimeheader.getName().equalsIgnoreCase(name)) {
-                headers.removeElementAt(i--);
-            }
-        }
-    }
-
-    /**
-     * Removes all the header entries from this <CODE>
-     * MimeHeaders</CODE> object.
-     */
-    public void removeAllHeaders() {
-        headers.removeAllElements();
-    }
-
-    /**
-     * Returns all the headers in this <CODE>MimeHeaders</CODE>
-     * object.
-     *
-     * @return an <CODE>Iterator</CODE> object over this <CODE>
-     *         MimeHeaders</CODE> object's list of <CODE>
-     *         MimeHeader</CODE> objects
-     */
-    public Iterator getAllHeaders() {
-        return headers.iterator();
-    }
-
-    /**
-     * Returns all the <CODE>MimeHeader</CODE> objects whose
-     * name matches a name in the given array of names.
-     *
-     * @param names an array of <CODE>String</CODE>
-     *              objects with the names for which to search
-     * @return an <CODE>Iterator</CODE> object over the <CODE>
-     *         MimeHeader</CODE> objects whose name matches one of the
-     *         names in the given list
-     */
-    public Iterator getMatchingHeaders(String names[]) {
-        return new MatchingIterator(names, true);
-    }
-
-    /**
-     * Returns all of the <CODE>MimeHeader</CODE> objects whose
-     * name does not match a name in the given array of names.
-     *
-     * @param names an array of <CODE>String</CODE>
-     *              objects with the names for which to search
-     * @return an <CODE>Iterator</CODE> object over the <CODE>
-     *         MimeHeader</CODE> objects whose name does not match one
-     *         of the names in the given list
-     */
-    public Iterator getNonMatchingHeaders(String names[]) {
-        return new MatchingIterator(names, false);
-    }
-
-    // fixme: does this need to be a Vector? Will a non-synchronized impl of
-    // List do?
-    /**
-     * A <code>Vector</code> containing the headers as <code>MimeHeader</code>
-     * instances.
-     */
-    private Vector headers;
-}
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package javax.xml.soap;
+
+import java.util.Iterator;
+import java.util.Vector;
+
+/**
+ * A container for <CODE>MimeHeader</CODE> objects, which
+ * represent the MIME headers present in a MIME part of a
+ * message.</P>
+ * <p/>
+ * <P>This class is used primarily when an application wants to
+ * retrieve specific attachments based on certain MIME headers and
+ * values. This class will most likely be used by implementations
+ * of <CODE>AttachmentPart</CODE> and other MIME dependent parts
+ * of the JAXM API.
+ *
+ * @see SOAPMessage#getAttachments() SOAPMessage.getAttachments()
+ * @see AttachmentPart AttachmentPart
+ */
+public class MimeHeaders {
+
+    class MatchingIterator implements Iterator {
+
+        private Object nextMatch() {
+
+            label0:
+            while (iterator.hasNext()) {
+                MimeHeader mimeheader = (MimeHeader) iterator.next();
+
+                if (names == null) {
+                    return match
+                            ? null
+                            : mimeheader;
+                }
+
+                for (int i = 0; i < names.length; i++) {
+                    if (!mimeheader.getName().equalsIgnoreCase(names[i])) {
+                        continue;
+                    }
+
+                    if (match) {
+                        return mimeheader;
+                    }
+
+                    continue label0;
+                }
+
+                if (!match) {
+                    return mimeheader;
+                }
+            }
+
+            return null;
+        }
+
+        public boolean hasNext() {
+
+            if (nextHeader == null) {
+                nextHeader = nextMatch();
+            }
+
+            return nextHeader != null;
+        }
+
+        public Object next() {
+
+            if (nextHeader != null) {
+                Object obj = nextHeader;
+
+                nextHeader = null;
+
+                return obj;
+            }
+
+            if (hasNext()) {
+                return nextHeader;
+            } else {
+                return null;
+            }
+        }
+
+        public void remove() {
+            iterator.remove();
+        }
+
+        private boolean match;
+
+        private Iterator iterator;
+
+        private String names[];
+
+        private Object nextHeader;
+
+        MatchingIterator(String as[], boolean flag) {
+
+            match = flag;
+            names = as;
+            iterator = headers.iterator();
+        }
+    }
+
+    /**
+     * Constructs
+     * a default <CODE>MimeHeaders</CODE> object initialized with
+     * an empty <CODE>Vector</CODE> object.
+     */
+    public MimeHeaders() {
+        headers = new Vector();
+    }
+
+    /**
+     * Returns all of the values for the specified header as an
+     * array of <CODE>String</CODE> objects.
+     *
+     * @param name the name of the header for which
+     *             values will be returned
+     * @return a <CODE>String</CODE> array with all of the values
+     *         for the specified header
+     * @see #setHeader(java.lang.String, java.lang.String) setHeader(java.lang.String, java.lang.String)
+     */
+    public String[] getHeader(String name) {
+
+        Vector vector = new Vector();
+
+        for (int i = 0; i < headers.size(); i++) {
+            MimeHeader mimeheader = (MimeHeader) headers.elementAt(i);
+
+            if (mimeheader.getName().equalsIgnoreCase(name)
+                    && (mimeheader.getValue() != null)) {
+                vector.addElement(mimeheader.getValue());
+            }
+        }
+
+        if (vector.size() == 0) {
+            return null;
+        } else {
+            String as[] = new String[vector.size()];
+
+            vector.copyInto(as);
+
+            return as;
+        }
+    }
+
+    /**
+     * Replaces the current value of the first header entry whose
+     * name matches the given name with the given value, adding a
+     * new header if no existing header name matches. This method
+     * also removes all matching headers after the first one.
+     * <p/>
+     * <P>Note that RFC822 headers can contain only US-ASCII
+     * characters.</P>
+     *
+     * @param name  a <CODE>String</CODE> with the
+     *              name of the header for which to search
+     * @param value a <CODE>String</CODE> with the
+     *              value that will replace the current value of the
+     *              specified header
+     * @throws java.lang.IllegalArgumentException
+     *          if there was a
+     *          problem in the mime header name or the value being set
+     * @see #getHeader(java.lang.String) getHeader(java.lang.String)
+     */
+    public void setHeader(String name, String value) {
+
+        boolean flag = false;
+
+        if ((name == null) || name.equals("")) {
+            throw new IllegalArgumentException("Illegal MimeHeader name");
+        }
+
+        for (int i = 0; i < headers.size(); i++) {
+            MimeHeader mimeheader = (MimeHeader) headers.elementAt(i);
+
+            if (mimeheader.getName().equalsIgnoreCase(name)) {
+                if (!flag) {
+                    headers.setElementAt(new MimeHeader(mimeheader
+                            .getName(), value), i);
+
+                    flag = true;
+                } else {
+                    headers.removeElementAt(i--);
+                }
+            }
+        }
+
+        if (!flag) {
+            addHeader(name, value);
+        }
+    }
+
+    /**
+     * Adds a <CODE>MimeHeader</CODE> object with the specified
+     * name and value to this <CODE>MimeHeaders</CODE> object's
+     * list of headers.
+     * <p/>
+     * <P>Note that RFC822 headers can contain only US-ASCII
+     * characters.</P>
+     *
+     * @param name  a <CODE>String</CODE> with the
+     *              name of the header to be added
+     * @param value a <CODE>String</CODE> with the
+     *              value of the header to be added
+     * @throws java.lang.IllegalArgumentException
+     *          if
+     *          there was a problem in the mime header name or value
+     *          being added
+     */
+    public void addHeader(String name, String value) {
+
+        if ((name == null) || name.equals("")) {
+            throw new IllegalArgumentException("Illegal MimeHeader name");
+        }
+
+        int i = headers.size();
+
+        for (int j = i - 1; j >= 0; j--) {
+            MimeHeader mimeheader = (MimeHeader) headers.elementAt(j);
+
+            if (mimeheader.getName().equalsIgnoreCase(name)) {
+                headers.insertElementAt(new MimeHeader(name, value), j + 1);
+
+                return;
+            }
+        }
+
+        headers.addElement(new MimeHeader(name, value));
+    }
+
+    /**
+     * Remove all <CODE>MimeHeader</CODE> objects whose name
+     * matches the the given name.
+     *
+     * @param name a <CODE>String</CODE> with the
+     *             name of the header for which to search
+     */
+    public void removeHeader(String name) {
+
+        for (int i = 0; i < headers.size(); i++) {
+            MimeHeader mimeheader = (MimeHeader) headers.elementAt(i);
+
+            if (mimeheader.getName().equalsIgnoreCase(name)) {
+                headers.removeElementAt(i--);
+            }
+        }
+    }
+
+    /**
+     * Removes all the header entries from this <CODE>
+     * MimeHeaders</CODE> object.
+     */
+    public void removeAllHeaders() {
+        headers.removeAllElements();
+    }
+
+    /**
+     * Returns all the headers in this <CODE>MimeHeaders</CODE>
+     * object.
+     *
+     * @return an <CODE>Iterator</CODE> object over this <CODE>
+     *         MimeHeaders</CODE> object's list of <CODE>
+     *         MimeHeader</CODE> objects
+     */
+    public Iterator getAllHeaders() {
+        return headers.iterator();
+    }
+
+    /**
+     * Returns all the <CODE>MimeHeader</CODE> objects whose
+     * name matches a name in the given array of names.
+     *
+     * @param names an array of <CODE>String</CODE>
+     *              objects with the names for which to search
+     * @return an <CODE>Iterator</CODE> object over the <CODE>
+     *         MimeHeader</CODE> objects whose name matches one of the
+     *         names in the given list
+     */
+    public Iterator getMatchingHeaders(String names[]) {
+        return new MatchingIterator(names, true);
+    }
+
+    /**
+     * Returns all of the <CODE>MimeHeader</CODE> objects whose
+     * name does not match a name in the given array of names.
+     *
+     * @param names an array of <CODE>String</CODE>
+     *              objects with the names for which to search
+     * @return an <CODE>Iterator</CODE> object over the <CODE>
+     *         MimeHeader</CODE> objects whose name does not match one
+     *         of the names in the given list
+     */
+    public Iterator getNonMatchingHeaders(String names[]) {
+        return new MatchingIterator(names, false);
+    }
+
+    // fixme: does this need to be a Vector? Will a non-synchronized impl of
+    // List do?
+    /**
+     * A <code>Vector</code> containing the headers as <code>MimeHeader</code>
+     * instances.
+     */
+    private Vector headers;
+}

Propchange: webservices/axis2/trunk/java/modules/saaj/src/javax/xml/soap/MimeHeaders.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: webservices/axis2/trunk/java/modules/saaj/src/javax/xml/soap/Name.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/saaj/src/javax/xml/soap/Name.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/saaj/src/javax/xml/soap/Name.java (original)
+++ webservices/axis2/trunk/java/modules/saaj/src/javax/xml/soap/Name.java Thu Sep 15 11:52:11 2005
@@ -1,95 +1,95 @@
-/*
- * Copyright 2001-2004 The Apache Software Foundation.
- * 
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * 
- *      http://www.apache.org/licenses/LICENSE-2.0
- * 
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package javax.xml.soap;
-
-/**
- * A representation of an XML name.  This interface provides methods for
- * getting the local and namespace-qualified names and also for getting the
- * prefix associated with the namespace for the name. It is also possible
- * to get the URI of the namespace.
- * <P>
- * The following is an example of a namespace declaration in an element.
- * <PRE>
- * &lt;wombat:GetLastTradePrice xmlns:wombat="http://www.wombat.org/trader"&gt;
- * </PRE>
- * ("xmlns" stands for "XML namespace".)
- * The following
- * shows what the methods in the <code>Name</code> interface will return.
- * <UL>
- * <LI><code>getQualifiedName</code> will return "prefix:LocalName" =
- * "WOMBAT:GetLastTradePrice"
- * <LI><code>getURI</code> will return "http://www.wombat.org/trader"
- * <LI><code>getLocalName</code> will return "GetLastTracePrice"
- * <LI><code>getPrefix</code> will return "WOMBAT"
- * </UL>
- * <P>
- * XML namespaces are used to disambiguate SOAP identifiers from
- * application-specific identifiers.
- * <P>
- * <code>Name</code> objects are created using the method
- * <code>SOAPEnvelope.createName</code>, which has two versions.
- * One method creates <code>Name</code> objects with
- * a local name, a namespace prefix, and a namespace URI.
- * and the second creates <code>Name</code> objects with just a local name.
- * The following line of
- * code, in which <i>se</i> is a <code>SOAPEnvelope</code> object, creates a new
- * <code>Name</code> object with all three.
- * <PRE>
- * Name name = se.createName("GetLastTradePrice", "WOMBAT",
- * "http://www.wombat.org/trader");
- * </PRE>
- * The following line of code gives an example of how a <code>Name</code> object
- * can be used. The variable <i>element</i> is a <code>SOAPElement</code> object.
- * This code creates a new <code>SOAPElement</code> object with the given name and
- * adds it to <i>element</i>.
- * <PRE>
- * element.addChildElement(name);
- * </PRE>
- */
-public interface Name {
-
-    /**
-     * Gets the local name part of the XML name that this <code>Name</code>
-     * object represents.
-     *
-     * @return a string giving the local name
-     */
-    public abstract String getLocalName();
-
-    /**
-     * Gets the namespace-qualified name of the XML name that this
-     * <code>Name</code> object represents.
-     *
-     * @return the namespace-qualified name as a string
-     */
-    public abstract String getQualifiedName();
-
-    /**
-     * Returns the prefix associated with the namespace for the XML
-     * name that this <code>Name</code> object represents.
-     *
-     * @return the prefix as a string
-     */
-    public abstract String getPrefix();
-
-    /**
-     * Returns the URI of the namespace for the XML
-     * name that this <code>Name</code> object represents.
-     *
-     * @return the URI as a string
-     */
-    public abstract String getURI();
-}
+/*
+ * Copyright 2001-2004 The Apache Software Foundation.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package javax.xml.soap;
+
+/**
+ * A representation of an XML name.  This interface provides methods for
+ * getting the local and namespace-qualified names and also for getting the
+ * prefix associated with the namespace for the name. It is also possible
+ * to get the URI of the namespace.
+ * <P>
+ * The following is an example of a namespace declaration in an element.
+ * <PRE>
+ * &lt;wombat:GetLastTradePrice xmlns:wombat="http://www.wombat.org/trader"&gt;
+ * </PRE>
+ * ("xmlns" stands for "XML namespace".)
+ * The following
+ * shows what the methods in the <code>Name</code> interface will return.
+ * <UL>
+ * <LI><code>getQualifiedName</code> will return "prefix:LocalName" =
+ * "WOMBAT:GetLastTradePrice"
+ * <LI><code>getURI</code> will return "http://www.wombat.org/trader"
+ * <LI><code>getLocalName</code> will return "GetLastTracePrice"
+ * <LI><code>getPrefix</code> will return "WOMBAT"
+ * </UL>
+ * <P>
+ * XML namespaces are used to disambiguate SOAP identifiers from
+ * application-specific identifiers.
+ * <P>
+ * <code>Name</code> objects are created using the method
+ * <code>SOAPEnvelope.createName</code>, which has two versions.
+ * One method creates <code>Name</code> objects with
+ * a local name, a namespace prefix, and a namespace URI.
+ * and the second creates <code>Name</code> objects with just a local name.
+ * The following line of
+ * code, in which <i>se</i> is a <code>SOAPEnvelope</code> object, creates a new
+ * <code>Name</code> object with all three.
+ * <PRE>
+ * Name name = se.createName("GetLastTradePrice", "WOMBAT",
+ * "http://www.wombat.org/trader");
+ * </PRE>
+ * The following line of code gives an example of how a <code>Name</code> object
+ * can be used. The variable <i>element</i> is a <code>SOAPElement</code> object.
+ * This code creates a new <code>SOAPElement</code> object with the given name and
+ * adds it to <i>element</i>.
+ * <PRE>
+ * element.addChildElement(name);
+ * </PRE>
+ */
+public interface Name {
+
+    /**
+     * Gets the local name part of the XML name that this <code>Name</code>
+     * object represents.
+     *
+     * @return a string giving the local name
+     */
+    public abstract String getLocalName();
+
+    /**
+     * Gets the namespace-qualified name of the XML name that this
+     * <code>Name</code> object represents.
+     *
+     * @return the namespace-qualified name as a string
+     */
+    public abstract String getQualifiedName();
+
+    /**
+     * Returns the prefix associated with the namespace for the XML
+     * name that this <code>Name</code> object represents.
+     *
+     * @return the prefix as a string
+     */
+    public abstract String getPrefix();
+
+    /**
+     * Returns the URI of the namespace for the XML
+     * name that this <code>Name</code> object represents.
+     *
+     * @return the URI as a string
+     */
+    public abstract String getURI();
+}

Propchange: webservices/axis2/trunk/java/modules/saaj/src/javax/xml/soap/Name.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: webservices/axis2/trunk/java/modules/saaj/src/javax/xml/soap/Node.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/saaj/src/javax/xml/soap/Node.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/saaj/src/javax/xml/soap/Node.java (original)
+++ webservices/axis2/trunk/java/modules/saaj/src/javax/xml/soap/Node.java Thu Sep 15 11:52:11 2005
@@ -1,96 +1,96 @@
-/*
- * Copyright 2004,2005 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package javax.xml.soap;
-
-/**
- * A representation of a node (element) in a DOM representation of an XML document
- * that provides some tree manipulation methods.
- * This interface provides methods for getting the value of a node, for
- * getting and setting the parent of a node, and for removing a node.
- */
-public interface Node extends org.w3c.dom.Node {
-
-    /**
-     * Returns the the value of the immediate child of this <code>Node</code>
-     * object if a child exists and its value is text.
-     *
-     * @return a <code>String</code> with the text of the immediate child of
-     *         this <code>Node</code> object if (1) there is a child and
-     *         (2) the child is a <code>Text</code> object;
-     *         <code>null</code> otherwise
-     */
-    public abstract String getValue();
-
-    /**
-     * Sets the parent of this <code>Node</code> object to the given
-     * <code>SOAPElement</code> object.
-     *
-     * @param parent the <code>SOAPElement</code> object to be set as
-     *               the parent of this <code>Node</code> object
-     * @throws SOAPException if there is a problem in setting the
-     *                       parent to the given element
-     * @see #getParentElement() getParentElement()
-     */
-    public abstract void setParentElement(SOAPElement parent)
-            throws SOAPException;
-
-    /**
-     * Returns the parent element of this <code>Node</code> object.
-     * This method can throw an <code>UnsupportedOperationException</code>
-     * if the tree is not kept in memory.
-     *
-     * @return the <code>SOAPElement</code> object that is the parent of
-     *         this <code>Node</code> object or <code>null</code> if this
-     *         <code>Node</code> object is root
-     * @throws java.lang.UnsupportedOperationException
-     *          if the whole tree is not kept in memory
-     * @see #setParentElement(javax.xml.soap.SOAPElement) setParentElement(javax.xml.soap.SOAPElement)
-     */
-    public abstract SOAPElement getParentElement();
-
-    /**
-     * Removes this <code>Node</code> object from the tree. Once
-     * removed, this node can be garbage collected if there are no
-     * application references to it.
-     */
-    public abstract void detachNode();
-
-    /**
-     * Notifies the implementation that this <code>Node</code>
-     * object is no longer being used by the application and that the
-     * implementation is free to reuse this object for nodes that may
-     * be created later.
-     * <P>
-     * Calling the method <code>recycleNode</code> implies that the method
-     * <code>detachNode</code> has been called previously.
-     */
-    public abstract void recycleNode();
-
-    /**
-     * If this is a Text node then this method will set its value, otherwise it
-     * sets the value of the immediate (Text) child of this node. The value of
-     * the immediate child of this node can be set only if, there is one child
-     * node and that node is a Text node, or if there are no children in which
-     * case a child Text node will be created.
-     *
-     * @param value the text to set
-     * @throws IllegalStateException if the node is not a Text  node and
-     *                               either has more than one child node or has a child node that
-     *                               is not a Text node
-     */
-
-    public abstract void setValue(String value);
-}
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package javax.xml.soap;
+
+/**
+ * A representation of a node (element) in a DOM representation of an XML document
+ * that provides some tree manipulation methods.
+ * This interface provides methods for getting the value of a node, for
+ * getting and setting the parent of a node, and for removing a node.
+ */
+public interface Node extends org.w3c.dom.Node {
+
+    /**
+     * Returns the the value of the immediate child of this <code>Node</code>
+     * object if a child exists and its value is text.
+     *
+     * @return a <code>String</code> with the text of the immediate child of
+     *         this <code>Node</code> object if (1) there is a child and
+     *         (2) the child is a <code>Text</code> object;
+     *         <code>null</code> otherwise
+     */
+    public abstract String getValue();
+
+    /**
+     * Sets the parent of this <code>Node</code> object to the given
+     * <code>SOAPElement</code> object.
+     *
+     * @param parent the <code>SOAPElement</code> object to be set as
+     *               the parent of this <code>Node</code> object
+     * @throws SOAPException if there is a problem in setting the
+     *                       parent to the given element
+     * @see #getParentElement() getParentElement()
+     */
+    public abstract void setParentElement(SOAPElement parent)
+            throws SOAPException;
+
+    /**
+     * Returns the parent element of this <code>Node</code> object.
+     * This method can throw an <code>UnsupportedOperationException</code>
+     * if the tree is not kept in memory.
+     *
+     * @return the <code>SOAPElement</code> object that is the parent of
+     *         this <code>Node</code> object or <code>null</code> if this
+     *         <code>Node</code> object is root
+     * @throws java.lang.UnsupportedOperationException
+     *          if the whole tree is not kept in memory
+     * @see #setParentElement(javax.xml.soap.SOAPElement) setParentElement(javax.xml.soap.SOAPElement)
+     */
+    public abstract SOAPElement getParentElement();
+
+    /**
+     * Removes this <code>Node</code> object from the tree. Once
+     * removed, this node can be garbage collected if there are no
+     * application references to it.
+     */
+    public abstract void detachNode();
+
+    /**
+     * Notifies the implementation that this <code>Node</code>
+     * object is no longer being used by the application and that the
+     * implementation is free to reuse this object for nodes that may
+     * be created later.
+     * <P>
+     * Calling the method <code>recycleNode</code> implies that the method
+     * <code>detachNode</code> has been called previously.
+     */
+    public abstract void recycleNode();
+
+    /**
+     * If this is a Text node then this method will set its value, otherwise it
+     * sets the value of the immediate (Text) child of this node. The value of
+     * the immediate child of this node can be set only if, there is one child
+     * node and that node is a Text node, or if there are no children in which
+     * case a child Text node will be created.
+     *
+     * @param value the text to set
+     * @throws IllegalStateException if the node is not a Text  node and
+     *                               either has more than one child node or has a child node that
+     *                               is not a Text node
+     */
+
+    public abstract void setValue(String value);
+}

Propchange: webservices/axis2/trunk/java/modules/saaj/src/javax/xml/soap/Node.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: webservices/axis2/trunk/java/modules/saaj/src/javax/xml/soap/SOAPBody.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/saaj/src/javax/xml/soap/SOAPBody.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/saaj/src/javax/xml/soap/SOAPBody.java (original)
+++ webservices/axis2/trunk/java/modules/saaj/src/javax/xml/soap/SOAPBody.java Thu Sep 15 11:52:11 2005
@@ -1,130 +1,130 @@
-/*
- * Copyright 2004,2005 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package javax.xml.soap;
-
-import org.w3c.dom.Document;
-
-import java.util.Locale;
-
-/**
- * An object that represents the contents of the SOAP body
- * element in a SOAP message. A SOAP body element consists of XML data
- * that affects the way the application-specific content is processed.
- * <P>
- * A <code>SOAPBody</code> object contains <code>SOAPBodyElement</code>
- * objects, which have the content for the SOAP body.
- * A <code>SOAPFault</code> object, which carries status and/or
- * error information, is an example of a <code>SOAPBodyElement</code> object.
- *
- * @see SOAPFault SOAPFault
- */
-public interface SOAPBody extends SOAPElement {
-
-    /**
-     * Creates a new <code>SOAPFault</code> object and adds it to
-     * this <code>SOAPBody</code> object.
-     *
-     * @return the new <code>SOAPFault</code> object
-     * @throws SOAPException if there is a SOAP error
-     */
-    public abstract SOAPFault addFault() throws SOAPException;
-
-    /**
-     * Indicates whether a <code>SOAPFault</code> object exists in
-     * this <code>SOAPBody</code> object.
-     *
-     * @return <code>true</code> if a <code>SOAPFault</code> object exists in
-     *         this <code>SOAPBody</code> object; <code>false</code>
-     *         otherwise
-     */
-    public abstract boolean hasFault();
-
-    /**
-     * Returns the <code>SOAPFault</code> object in this <code>SOAPBody</code>
-     * object.
-     *
-     * @return the <code>SOAPFault</code> object in this <code>SOAPBody</code>
-     *         object
-     */
-    public abstract SOAPFault getFault();
-
-    /**
-     * Creates a new <code>SOAPBodyElement</code> object with the
-     * specified name and adds it to this <code>SOAPBody</code> object.
-     *
-     * @param name a <code>Name</code> object with the name for the new
-     *             <code>SOAPBodyElement</code> object
-     * @return the new <code>SOAPBodyElement</code> object
-     * @throws SOAPException if a SOAP error occurs
-     */
-    public abstract SOAPBodyElement addBodyElement(Name name)
-            throws SOAPException;
-
-    /**
-     * Creates a new <code>SOAPFault</code> object and adds it to this
-     * <code>SOAPBody</code> object. The new <code>SOAPFault</code> will have a
-     * <code>faultcode</code> element that is set to the <code>faultCode</code>
-     * parameter and a <code>faultstring</code> set to <code>faultstring</code>
-     * and localized to <code>locale</code>.
-     *
-     * @param faultCode   a <code>Name</code> object giving the fault code to be
-     *                    set; must be one of the fault codes defined in the SOAP 1.1
-     *                    specification and of type QName
-     * @param faultString a <code>String</code> giving an explanation of the
-     *                    fault
-     * @param locale      a <code>Locale</code> object indicating the native language
-     *                    of the <ocde>faultString</code>
-     * @return the new <code>SOAPFault</code> object
-     * @throws SOAPException if there is a SOAP error
-     */
-    public abstract SOAPFault addFault(Name faultCode,
-                                       String faultString,
-                                       Locale locale) throws SOAPException;
-
-    /**
-     * Creates a new <code>SOAPFault</code> object and adds it to this
-     * <code>SOAPBody</code> object. The new <code>SOAPFault</code> will have a
-     * <code>faultcode</code> element that is set to the <code>faultCode</code>
-     * parameter and a <code>faultstring</code> set to <code>faultstring</code>.
-     *
-     * @param faultCode   a <code>Name</code> object giving the fault code to be
-     *                    set; must be one of the fault codes defined in the SOAP 1.1
-     *                    specification and of type QName
-     * @param faultString a <code>String</code> giving an explanation of the
-     *                    fault
-     * @return the new <code>SOAPFault</code> object
-     * @throws SOAPException if there is a SOAP error
-     */
-    public abstract SOAPFault addFault(Name faultCode, String faultString) throws SOAPException;
-
-    /**
-     * Adds the root node of the DOM <code>Document</code> to this
-     * <code>SOAPBody</code> object.
-     * <p/>
-     * Calling this method invalidates the <code>document</code> parameter. The
-     * client application should discard all references to this
-     * <code>Document</code> and its contents upon calling
-     * <code>addDocument</code>. The behavior of an application that continues
-     * to use such references is undefined.
-     *
-     * @param document the <code>Document</code> object whose root node will be
-     *                 added to this <code>SOAPBody</code>
-     * @return the <code>SOAPBodyElement</code> that represents the root node
-     *         that was added
-     * @throws SOAPException if the <code>Document</code> cannot be added
-     */
-    public abstract SOAPBodyElement addDocument(Document document) throws SOAPException;
-}
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package javax.xml.soap;
+
+import org.w3c.dom.Document;
+
+import java.util.Locale;
+
+/**
+ * An object that represents the contents of the SOAP body
+ * element in a SOAP message. A SOAP body element consists of XML data
+ * that affects the way the application-specific content is processed.
+ * <P>
+ * A <code>SOAPBody</code> object contains <code>SOAPBodyElement</code>
+ * objects, which have the content for the SOAP body.
+ * A <code>SOAPFault</code> object, which carries status and/or
+ * error information, is an example of a <code>SOAPBodyElement</code> object.
+ *
+ * @see SOAPFault SOAPFault
+ */
+public interface SOAPBody extends SOAPElement {
+
+    /**
+     * Creates a new <code>SOAPFault</code> object and adds it to
+     * this <code>SOAPBody</code> object.
+     *
+     * @return the new <code>SOAPFault</code> object
+     * @throws SOAPException if there is a SOAP error
+     */
+    public abstract SOAPFault addFault() throws SOAPException;
+
+    /**
+     * Indicates whether a <code>SOAPFault</code> object exists in
+     * this <code>SOAPBody</code> object.
+     *
+     * @return <code>true</code> if a <code>SOAPFault</code> object exists in
+     *         this <code>SOAPBody</code> object; <code>false</code>
+     *         otherwise
+     */
+    public abstract boolean hasFault();
+
+    /**
+     * Returns the <code>SOAPFault</code> object in this <code>SOAPBody</code>
+     * object.
+     *
+     * @return the <code>SOAPFault</code> object in this <code>SOAPBody</code>
+     *         object
+     */
+    public abstract SOAPFault getFault();
+
+    /**
+     * Creates a new <code>SOAPBodyElement</code> object with the
+     * specified name and adds it to this <code>SOAPBody</code> object.
+     *
+     * @param name a <code>Name</code> object with the name for the new
+     *             <code>SOAPBodyElement</code> object
+     * @return the new <code>SOAPBodyElement</code> object
+     * @throws SOAPException if a SOAP error occurs
+     */
+    public abstract SOAPBodyElement addBodyElement(Name name)
+            throws SOAPException;
+
+    /**
+     * Creates a new <code>SOAPFault</code> object and adds it to this
+     * <code>SOAPBody</code> object. The new <code>SOAPFault</code> will have a
+     * <code>faultcode</code> element that is set to the <code>faultCode</code>
+     * parameter and a <code>faultstring</code> set to <code>faultstring</code>
+     * and localized to <code>locale</code>.
+     *
+     * @param faultCode   a <code>Name</code> object giving the fault code to be
+     *                    set; must be one of the fault codes defined in the SOAP 1.1
+     *                    specification and of type QName
+     * @param faultString a <code>String</code> giving an explanation of the
+     *                    fault
+     * @param locale      a <code>Locale</code> object indicating the native language
+     *                    of the <ocde>faultString</code>
+     * @return the new <code>SOAPFault</code> object
+     * @throws SOAPException if there is a SOAP error
+     */
+    public abstract SOAPFault addFault(Name faultCode,
+                                       String faultString,
+                                       Locale locale) throws SOAPException;
+
+    /**
+     * Creates a new <code>SOAPFault</code> object and adds it to this
+     * <code>SOAPBody</code> object. The new <code>SOAPFault</code> will have a
+     * <code>faultcode</code> element that is set to the <code>faultCode</code>
+     * parameter and a <code>faultstring</code> set to <code>faultstring</code>.
+     *
+     * @param faultCode   a <code>Name</code> object giving the fault code to be
+     *                    set; must be one of the fault codes defined in the SOAP 1.1
+     *                    specification and of type QName
+     * @param faultString a <code>String</code> giving an explanation of the
+     *                    fault
+     * @return the new <code>SOAPFault</code> object
+     * @throws SOAPException if there is a SOAP error
+     */
+    public abstract SOAPFault addFault(Name faultCode, String faultString) throws SOAPException;
+
+    /**
+     * Adds the root node of the DOM <code>Document</code> to this
+     * <code>SOAPBody</code> object.
+     * <p/>
+     * Calling this method invalidates the <code>document</code> parameter. The
+     * client application should discard all references to this
+     * <code>Document</code> and its contents upon calling
+     * <code>addDocument</code>. The behavior of an application that continues
+     * to use such references is undefined.
+     *
+     * @param document the <code>Document</code> object whose root node will be
+     *                 added to this <code>SOAPBody</code>
+     * @return the <code>SOAPBodyElement</code> that represents the root node
+     *         that was added
+     * @throws SOAPException if the <code>Document</code> cannot be added
+     */
+    public abstract SOAPBodyElement addDocument(Document document) throws SOAPException;
+}

Propchange: webservices/axis2/trunk/java/modules/saaj/src/javax/xml/soap/SOAPBody.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: webservices/axis2/trunk/java/modules/saaj/src/javax/xml/soap/SOAPBodyElement.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/saaj/src/javax/xml/soap/SOAPBodyElement.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/saaj/src/javax/xml/soap/SOAPBodyElement.java (original)
+++ webservices/axis2/trunk/java/modules/saaj/src/javax/xml/soap/SOAPBodyElement.java Thu Sep 15 11:52:11 2005
@@ -1,33 +1,33 @@
-/*
- * Copyright 2004,2005 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package javax.xml.soap;
-
-/**
- * A <code>SOAPBodyElement</code> object represents the contents in
- * a <code>SOAPBody</code> object.  The <code>SOAPFault</code> interface
- * is a <code>SOAPBodyElement</code> object that has been defined.
- * <P>
- * A new <code>SOAPBodyElement</code> object can be created and added
- * to a <code>SOAPBody</code> object with the <code>SOAPBody</code>
- * method <code>addBodyElement</code>. In the following line of code,
- * <code>sb</code> is a <code>SOAPBody</code> object, and
- * <code>myName</code> is a <code>Name</code> object.
- * <PRE>
- * SOAPBodyElement sbe = sb.addBodyElement(myName);
- * </PRE>
- */
-public interface SOAPBodyElement extends SOAPElement {
-}
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package javax.xml.soap;
+
+/**
+ * A <code>SOAPBodyElement</code> object represents the contents in
+ * a <code>SOAPBody</code> object.  The <code>SOAPFault</code> interface
+ * is a <code>SOAPBodyElement</code> object that has been defined.
+ * <P>
+ * A new <code>SOAPBodyElement</code> object can be created and added
+ * to a <code>SOAPBody</code> object with the <code>SOAPBody</code>
+ * method <code>addBodyElement</code>. In the following line of code,
+ * <code>sb</code> is a <code>SOAPBody</code> object, and
+ * <code>myName</code> is a <code>Name</code> object.
+ * <PRE>
+ * SOAPBodyElement sbe = sb.addBodyElement(myName);
+ * </PRE>
+ */
+public interface SOAPBodyElement extends SOAPElement {
+}

Propchange: webservices/axis2/trunk/java/modules/saaj/src/javax/xml/soap/SOAPBodyElement.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: webservices/axis2/trunk/java/modules/saaj/src/javax/xml/soap/SOAPConnection.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/saaj/src/javax/xml/soap/SOAPConnection.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/saaj/src/javax/xml/soap/SOAPConnection.java (original)
+++ webservices/axis2/trunk/java/modules/saaj/src/javax/xml/soap/SOAPConnection.java Thu Sep 15 11:52:11 2005
@@ -1,63 +1,63 @@
-/*
- * Copyright 2004,2005 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package javax.xml.soap;
-
-/**
- * A point-to-point connection that a client can use for sending messages
- * directly to a remote party (represented by a URL, for instance).
- * <p/>
- * A client can obtain a <code>SOAPConnection</code> object simply by
- * calling the following static method.
- * <pre>
- * <p/>
- *      SOAPConnection con = SOAPConnection.newInstance();
- * </pre>
- * A <code>SOAPConnection</code> object can be used to send messages
- * directly to a URL following the request/response paradigm.  That is,
- * messages are sent using the method <code>call</code>, which sends the
- * message and then waits until it gets a reply.
- */
-public abstract class SOAPConnection {
-
-    public SOAPConnection() {
-    }
-
-    /**
-     * Sends the given message to the specified endpoint and
-     * blocks until it has returned the response.
-     *
-     * @param request  the <CODE>SOAPMessage</CODE>
-     *                 object to be sent
-     * @param endpoint an <code>Object</code> that identifies
-     *                 where the message should be sent. It is required to
-     *                 support Objects of type
-     *                 <code>java.lang.String</code>,
-     *                 <code>java.net.URL</code>, and when JAXM is present
-     *                 <code>javax.xml.messaging.URLEndpoint</code>
-     * @return the <CODE>SOAPMessage</CODE> object that is the
-     *         response to the message that was sent
-     * @throws SOAPException if there is a SOAP error
-     */
-    public abstract SOAPMessage call(SOAPMessage request, Object endpoint)
-            throws SOAPException;
-
-    /**
-     * Closes this <CODE>SOAPConnection</CODE> object.
-     *
-     * @throws SOAPException if there is a SOAP error
-     */
-    public abstract void close() throws SOAPException;
-}
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package javax.xml.soap;
+
+/**
+ * A point-to-point connection that a client can use for sending messages
+ * directly to a remote party (represented by a URL, for instance).
+ * <p/>
+ * A client can obtain a <code>SOAPConnection</code> object simply by
+ * calling the following static method.
+ * <pre>
+ * <p/>
+ *      SOAPConnection con = SOAPConnection.newInstance();
+ * </pre>
+ * A <code>SOAPConnection</code> object can be used to send messages
+ * directly to a URL following the request/response paradigm.  That is,
+ * messages are sent using the method <code>call</code>, which sends the
+ * message and then waits until it gets a reply.
+ */
+public abstract class SOAPConnection {
+
+    public SOAPConnection() {
+    }
+
+    /**
+     * Sends the given message to the specified endpoint and
+     * blocks until it has returned the response.
+     *
+     * @param request  the <CODE>SOAPMessage</CODE>
+     *                 object to be sent
+     * @param endpoint an <code>Object</code> that identifies
+     *                 where the message should be sent. It is required to
+     *                 support Objects of type
+     *                 <code>java.lang.String</code>,
+     *                 <code>java.net.URL</code>, and when JAXM is present
+     *                 <code>javax.xml.messaging.URLEndpoint</code>
+     * @return the <CODE>SOAPMessage</CODE> object that is the
+     *         response to the message that was sent
+     * @throws SOAPException if there is a SOAP error
+     */
+    public abstract SOAPMessage call(SOAPMessage request, Object endpoint)
+            throws SOAPException;
+
+    /**
+     * Closes this <CODE>SOAPConnection</CODE> object.
+     *
+     * @throws SOAPException if there is a SOAP error
+     */
+    public abstract void close() throws SOAPException;
+}

Propchange: webservices/axis2/trunk/java/modules/saaj/src/javax/xml/soap/SOAPConnection.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: webservices/axis2/trunk/java/modules/saaj/src/javax/xml/soap/SOAPConnectionFactory.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/saaj/src/javax/xml/soap/SOAPConnectionFactory.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/saaj/src/javax/xml/soap/SOAPConnectionFactory.java (original)
+++ webservices/axis2/trunk/java/modules/saaj/src/javax/xml/soap/SOAPConnectionFactory.java Thu Sep 15 11:52:11 2005
@@ -1,68 +1,68 @@
-/*
- * Copyright 2004,2005 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package javax.xml.soap;
-
-/**
- * A factory for creating <code>SOAPConnection</code> objects. Implementation of
- * this class is optional. If <code>SOAPConnectionFactory.newInstance()</code>
- * throws an <code>UnsupportedOperationException</code> then the implementation
- * does not support the SAAJ communication infrastructure. Otherwise
- * <code>SOAPConnection</code> objects can be created by calling
- * <code>createConnection()</code> on the newly created
- * <code>SOAPConnectionFactory</code> object.
- */
-public abstract class SOAPConnectionFactory {
-
-    public SOAPConnectionFactory() {
-    }
-
-    /**
-     * Creates an instance of the default <CODE>
-     * SOAPConnectionFactory</CODE> object.
-     *
-     * @return a new instance of a default <CODE>
-     *         SOAPConnectionFactory</CODE> object
-     * @throws SOAPException                 if there was an error creating
-     *                                       the <CODE>SOAPConnectionFactory
-     * @throws UnsupportedOperationException if newInstance is not supported.
-     */
-    public static SOAPConnectionFactory newInstance()
-            throws SOAPException, UnsupportedOperationException {
-
-        try {
-            return (SOAPConnectionFactory) FactoryFinder.find(SF_PROPERTY,
-                    DEFAULT_SOAP_CONNECTION_FACTORY);
-        } catch (Exception exception) {
-            throw new SOAPException("Unable to create SOAP connection factory: "
-                    + exception.getMessage());
-        }
-    }
-
-    /**
-     * Create a new <CODE>SOAPConnection</CODE>.
-     *
-     * @return the new <CODE>SOAPConnection</CODE> object.
-     * @throws SOAPException if there was an exception
-     *                       creating the <CODE>SOAPConnection</CODE> object.
-     */
-    public abstract SOAPConnection createConnection() throws SOAPException;
-
-    private static final String DEFAULT_SOAP_CONNECTION_FACTORY =
-            "org.apache.axis2.saaj.SOAPConnectionFactoryImpl";
-
-    private static final String SF_PROPERTY =
-            "javax.xml.soap.SOAPConnectionFactory";
-}
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package javax.xml.soap;
+
+/**
+ * A factory for creating <code>SOAPConnection</code> objects. Implementation of
+ * this class is optional. If <code>SOAPConnectionFactory.newInstance()</code>
+ * throws an <code>UnsupportedOperationException</code> then the implementation
+ * does not support the SAAJ communication infrastructure. Otherwise
+ * <code>SOAPConnection</code> objects can be created by calling
+ * <code>createConnection()</code> on the newly created
+ * <code>SOAPConnectionFactory</code> object.
+ */
+public abstract class SOAPConnectionFactory {
+
+    public SOAPConnectionFactory() {
+    }
+
+    /**
+     * Creates an instance of the default <CODE>
+     * SOAPConnectionFactory</CODE> object.
+     *
+     * @return a new instance of a default <CODE>
+     *         SOAPConnectionFactory</CODE> object
+     * @throws SOAPException                 if there was an error creating
+     *                                       the <CODE>SOAPConnectionFactory
+     * @throws UnsupportedOperationException if newInstance is not supported.
+     */
+    public static SOAPConnectionFactory newInstance()
+            throws SOAPException, UnsupportedOperationException {
+
+        try {
+            return (SOAPConnectionFactory) FactoryFinder.find(SF_PROPERTY,
+                    DEFAULT_SOAP_CONNECTION_FACTORY);
+        } catch (Exception exception) {
+            throw new SOAPException("Unable to create SOAP connection factory: "
+                    + exception.getMessage());
+        }
+    }
+
+    /**
+     * Create a new <CODE>SOAPConnection</CODE>.
+     *
+     * @return the new <CODE>SOAPConnection</CODE> object.
+     * @throws SOAPException if there was an exception
+     *                       creating the <CODE>SOAPConnection</CODE> object.
+     */
+    public abstract SOAPConnection createConnection() throws SOAPException;
+
+    private static final String DEFAULT_SOAP_CONNECTION_FACTORY =
+            "org.apache.axis2.saaj.SOAPConnectionFactoryImpl";
+
+    private static final String SF_PROPERTY =
+            "javax.xml.soap.SOAPConnectionFactory";
+}

Propchange: webservices/axis2/trunk/java/modules/saaj/src/javax/xml/soap/SOAPConnectionFactory.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: webservices/axis2/trunk/java/modules/saaj/src/javax/xml/soap/SOAPConstants.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/saaj/src/javax/xml/soap/SOAPConstants.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/saaj/src/javax/xml/soap/SOAPConstants.java (original)
+++ webservices/axis2/trunk/java/modules/saaj/src/javax/xml/soap/SOAPConstants.java Thu Sep 15 11:52:11 2005
@@ -1,42 +1,42 @@
-/*
- * Copyright 2004,2005 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package javax.xml.soap;
-
-/**
- * The definition of constants pertaining to the SOAP 1.1 protocol.
- */
-public interface SOAPConstants {
-
-    /**
-     * The namespace identifier for the SOAP envelope.
-     */
-    public static final String URI_NS_SOAP_ENVELOPE =
-            "http://schemas.xmlsoap.org/soap/envelope/";
-
-    /**
-     * The namespace identifier for the SOAP encoding (see section 5 of
-     * the SOAP 1.1 specification).
-     */
-    public static final String URI_NS_SOAP_ENCODING =
-            "http://schemas.xmlsoap.org/soap/encoding/";
-
-    /**
-     * The URI identifying the first application processing a SOAP request as the intended
-     * actor for a SOAP header entry (see section 4.2.2 of the SOAP 1.1 specification).
-     */
-    public static final String URI_SOAP_ACTOR_NEXT =
-            "http://schemas.xmlsoap.org/soap/actor/next";
-}
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package javax.xml.soap;
+
+/**
+ * The definition of constants pertaining to the SOAP 1.1 protocol.
+ */
+public interface SOAPConstants {
+
+    /**
+     * The namespace identifier for the SOAP envelope.
+     */
+    public static final String URI_NS_SOAP_ENVELOPE =
+            "http://schemas.xmlsoap.org/soap/envelope/";
+
+    /**
+     * The namespace identifier for the SOAP encoding (see section 5 of
+     * the SOAP 1.1 specification).
+     */
+    public static final String URI_NS_SOAP_ENCODING =
+            "http://schemas.xmlsoap.org/soap/encoding/";
+
+    /**
+     * The URI identifying the first application processing a SOAP request as the intended
+     * actor for a SOAP header entry (see section 4.2.2 of the SOAP 1.1 specification).
+     */
+    public static final String URI_SOAP_ACTOR_NEXT =
+            "http://schemas.xmlsoap.org/soap/actor/next";
+}

Propchange: webservices/axis2/trunk/java/modules/saaj/src/javax/xml/soap/SOAPConstants.java
------------------------------------------------------------------------------
    svn:eol-style = native