src/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_1/Fault1_1Impl.java

changeset 45
31822b475baa
parent 1
0961a4a21176
child 50
42dfec6871f6
equal deleted inserted replaced
33:41a66a42791b 45:31822b475baa
1 /* 1 /*
2 * $Id: Fault1_1Impl.java,v 1.20 2006/01/27 12:49:41 vj135062 Exp $ 2 * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
3 */
4
5 /*
6 * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
8 * 4 *
9 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
10 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
11 * published by the Free Software Foundation. Sun designates this 7 * published by the Free Software Foundation. Sun designates this
24 * 20 *
25 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 21 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
26 * CA 95054 USA or visit www.sun.com if you need additional information or 22 * CA 95054 USA or visit www.sun.com if you need additional information or
27 * have any questions. 23 * have any questions.
28 */ 24 */
25 /*
26 * $Id: Fault1_1Impl.java,v 1.1.1.1 2006/01/27 13:10:57 kumarjayanti Exp $
27 */
28
29
29 30
30 /** 31 /**
31 * 32 *
32 * @author SAAJ RI Development Team 33 * @author SAAJ RI Development Team
33 */ 34 */
299 throw new SOAPExceptionImpl("Cannot add Detail, Detail already exists"); 300 throw new SOAPExceptionImpl("Cannot add Detail, Detail already exists");
300 } 301 }
301 } 302 }
302 return super.addChildElement(element); 303 return super.addChildElement(element);
303 } 304 }
305
306 protected FaultElementImpl createSOAPFaultElement(QName qname) {
307 return new FaultElement1_1Impl(
308 ((SOAPDocument) getOwnerDocument()).getDocument(),
309 qname);
310 }
311
312 protected FaultElementImpl createSOAPFaultElement(Name qname) {
313 return new FaultElement1_1Impl(
314 ((SOAPDocument) getOwnerDocument()).getDocument(),
315 (NameImpl)qname);
316 }
317
304 } 318 }

mercurial