1 55 56 package org.jboss.axis.message; 57 58 import org.jboss.axis.AxisFault; 59 import org.jboss.axis.encoding.DeserializationContext; 60 import org.xml.sax.Attributes ; 61 62 import javax.xml.soap.Detail ; 63 import javax.xml.soap.DetailEntry ; 64 import javax.xml.soap.Name ; 65 import javax.xml.soap.SOAPException ; 66 import java.util.Iterator ; 67 68 73 public class DetailImpl extends SOAPFaultImpl implements Detail 74 { 75 76 public DetailImpl(String namespace, String localName, String prefix, 77 Attributes attrs, DeserializationContext context) 78 throws AxisFault 79 { 80 super(namespace, localName, prefix, attrs, context); 81 } 82 83 public DetailImpl() 84 { 85 super(new AxisFault()); 86 } 87 88 public DetailImpl(AxisFault fault) 89 { 90 super(fault); 91 } 92 93 101 public DetailEntry addDetailEntry(Name name) throws SOAPException 102 { 103 org.jboss.axis.message.DetailEntryImpl entry = new org.jboss.axis.message.DetailEntryImpl(name); 104 addChildElement(entry); 105 if (fault != null) 106 { 107 try 108 { 109 fault.addFaultDetail(entry.getAsDOM()); 110 } 111 catch (Exception e) 112 { 113 throw new SOAPException (e); 114 } 115 } 116 return entry; 117 } 118 119 125 public Iterator getDetailEntries() 126 { 127 return this.getChildElements(); 128 } 129 } 130 | Popular Tags |