@Override public String getFaultReasonText(SOAPFault fault, Locale locale) throws SOAPException { return fault.getFaultReasonText(locale); }
@Override public String getFaultReasonText(Locale locale) { try { return getSaajFault().getFaultReasonText(locale); } catch (SOAPException ex) { throw new SaajSoapFaultException(ex); } }
@Override public String getFaultReasonText(Locale locale) { try { return getSaajFault().getFaultReasonText(locale); } catch (SOAPException ex) { throw new SaajSoapFaultException(ex); } }
@Override public String getFaultReasonText(Locale locale) { try { return getSaajFault().getFaultReasonText(locale); } catch (SOAPException ex) { throw new SaajSoapFaultException(ex); } }
/** * @param soapMessage the soap message to copy fault information from * @throws SOAPException if any */ public void copyFaultInfo(SOAPMessage soapMessage) throws SOAPException { SOAPFault fault = soapMessage.getSOAPBody().getFault(); setActor(fault.getFaultActor()); setCode(fault.getFaultCode()); setPrefix(fault.getFaultCodeAsName().getPrefix()); setCodeAsQName(fault.getFaultCodeAsQName()); setString(fault.getFaultString()); setStringLocale(fault.getFaultStringLocale()); if (fault.hasDetail()) { setDetail(fault.getDetail()); } // SOAP 1.2 specifics if (SOAPUtil.isSOAP12(soapMessage)) { setReasonLocales(fault.getFaultReasonLocales()); Iterator<Locale> locales = fault.getFaultReasonLocales(); while (locales.hasNext()) { Locale locale = locales.next(); addReasonText(locale, fault.getFaultReasonText(locale)); } setRole(fault.getFaultRole()); setSubcodes(fault.getFaultSubcodes()); } } }
/** * @param soapMessage the soap message to copy fault information from * @throws SOAPException if any */ public void copyFaultInfo(SOAPMessage soapMessage) throws SOAPException { SOAPFault fault = soapMessage.getSOAPBody().getFault(); setActor(fault.getFaultActor()); setCode(fault.getFaultCode()); setPrefix(fault.getFaultCodeAsName().getPrefix()); setCodeAsQName(fault.getFaultCodeAsQName()); setString(fault.getFaultString()); setStringLocale(fault.getFaultStringLocale()); if (fault.hasDetail()) { setDetail(fault.getDetail()); } // SOAP 1.2 specifics if (SOAPUtil.isSOAP12(soapMessage)) { setReasonLocales(fault.getFaultReasonLocales()); Iterator<Locale> locales = fault.getFaultReasonLocales(); while (locales.hasNext()) { Locale locale = locales.next(); addReasonText(locale, fault.getFaultReasonText(locale)); } setRole(fault.getFaultRole()); setSubcodes(fault.getFaultSubcodes()); } } }