FileDocCategorySizeDatePackage
SOAPBodyElement.javaAPI DocApache Axis 1.43226Sat Apr 22 18:57:28 BST 2006org.apache.axis.message

SOAPBodyElement

public class SOAPBodyElement extends MessageElement implements SOAPBodyElement
A Body element.

Fields Summary
private static Log
log
Constructors Summary
public SOAPBodyElement(String namespace, String localPart, String prefix, Attributes attributes, org.apache.axis.encoding.DeserializationContext context)


      
                            
                            
                            
                            
          
    
        super(namespace, localPart, prefix, attributes, context);
    
public SOAPBodyElement(Name name)

        super(name);
    
public SOAPBodyElement(QName qname)

        super(qname);
    
public SOAPBodyElement(QName qname, Object value)

        super(qname, value);
    
public SOAPBodyElement(Element elem)

        super(elem);
    
public SOAPBodyElement()

    
public SOAPBodyElement(InputStream input)

        super( getDocumentElement(input) );
    
public SOAPBodyElement(String namespace, String localPart)

        super(namespace, localPart);
    
Methods Summary
private static org.w3c.dom.ElementgetDocumentElement(java.io.InputStream input)

        try {
            return XMLUtils.newDocument(input).getDocumentElement();
        } catch (Exception e) {
            throw new InternalException(e);
        }
    
public voidsetParentElement(javax.xml.soap.SOAPElement parent)

        if(parent == null) {
            throw new IllegalArgumentException(Messages.getMessage("nullParent00")); 
        }
        // migration aid
        if (parent instanceof SOAPEnvelope) {
            log.warn(Messages.getMessage("bodyElementParent"));
            parent = ((SOAPEnvelope)parent).getBody();
        }
        if (!(parent instanceof SOAPBody) && !(parent instanceof RPCElement)) {
            throw new IllegalArgumentException(Messages.getMessage("illegalArgumentException00"));
        }
        
        super.setParentElement(parent);