KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > axis > message > SOAPEnvelopeImpl


1 /*
2  * Copyright 2001-2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package org.jboss.axis.message;
17
18 // $Id: SOAPEnvelopeImpl.java,v 1.1.2.1 2005/03/02 14:29:31 tdiesler Exp $
19

20 import org.jboss.axis.NotImplementedException;
21 import org.jboss.logging.Logger;
22
23 import javax.xml.soap.Name JavaDoc;
24 import javax.xml.soap.SOAPBody JavaDoc;
25 import javax.xml.soap.SOAPElement JavaDoc;
26 import javax.xml.soap.SOAPEnvelope JavaDoc;
27 import javax.xml.soap.SOAPException JavaDoc;
28 import javax.xml.soap.SOAPHeader JavaDoc;
29
30 /**
31  * An implemenation of the abstract SOAPEnvelope.
32  * <p/>
33  * This class should not expose functionality that is not part of
34  * {@link SOAPEnvelope}. Client code should use <code>SOAPEnvelope</code> whenever possible.
35  *
36  * @author Thomas Diesler (thomas.diesler@jboss.org)
37  */

38 public class SOAPEnvelopeImpl extends SOAPElementAxisImpl implements SOAPEnvelope JavaDoc
39 {
40    private static Logger log = Logger.getLogger(SOAPEnvelopeImpl.class.getName());
41
42    public SOAPEnvelopeImpl(String JavaDoc localPart, String JavaDoc prefix, String JavaDoc uri)
43    {
44       super(localPart, prefix, uri);
45    }
46
47    public SOAPBody JavaDoc addBody() throws SOAPException JavaDoc
48    {
49       throw new NotImplementedException();
50    }
51
52    public SOAPHeader JavaDoc addHeader() throws SOAPException JavaDoc
53    {
54       throw new NotImplementedException();
55    }
56
57    public Name JavaDoc createName(String JavaDoc localName) throws SOAPException JavaDoc
58    {
59       throw new NotImplementedException();
60    }
61
62    public Name JavaDoc createName(String JavaDoc localName, String JavaDoc prefix, String JavaDoc uri) throws SOAPException JavaDoc
63    {
64       throw new NotImplementedException();
65    }
66
67    public SOAPBody JavaDoc getBody() throws SOAPException JavaDoc
68    {
69       throw new NotImplementedException();
70    }
71
72    public SOAPHeader JavaDoc getHeader() throws SOAPException JavaDoc
73    {
74       throw new NotImplementedException();
75    }
76
77    /**
78     * Text nodes are not supported.
79     */

80    public SOAPElement JavaDoc addTextNode(String JavaDoc s) throws SOAPException JavaDoc
81    {
82       throw new SOAPException JavaDoc("Cannot add Text node to SOAPEnvelope");
83    }
84 }
85
Popular Tags