/** * Return the enumeration for the specified value. * @param value The value. * @return The enumeration. * @throws InvalidEnumerationException if the value is not valid. */ public static SoapFaultType toState(final String value) throws InvalidEnumerationException { final Object state = ENUM_MAP.get(value) ; if (state == null) { throw new InvalidEnumerationException(WSCLogger.i18NLogger.get_webservices_SoapFaultType_1(value)) ; } return (SoapFaultType)state ; } }
/** * Make sure the stream is at the start of the next element. * @param streamReader The current stream reader. * @throws XMLStreamException For parsing errors. */ public static void skipToNextStartElement(final XMLStreamReader streamReader) throws XMLStreamException { if (streamReader.hasNext()) { streamReader.nextTag() ; if (streamReader.isEndElement()) { throw new XMLStreamException(WSCLogger.i18NLogger.get_webservices_util_StreamHelper_1(streamReader.getName())) ; } } else { throw new XMLStreamException(WSCLogger.i18NLogger.get_webservices_util_StreamHelper_2()) ; } }
/** * Compare the element tag with the expected qualified name. * @param streamReader The current stream reader. * @param expected The expected qualified name. * @throws XMLStreamException For errors during parsing. */ public static void checkTag(final XMLStreamReader streamReader, final QName expected) throws XMLStreamException { final QName elementName = streamReader.getName() ; if (!expected.equals(elementName)) { throw new XMLStreamException(WSCLogger.i18NLogger.get_webservices_util_StreamHelper_3(elementName)) ; } }
WSCLogger.i18NLogger.get_wsc11_messaging_RegistrationCoordinatorProcessorImpl_1(), protocolIdentifier, arjunaContext.getInstanceIdentifier()); soapFault.addDetail().addDetailEntry(CoordinationConstants.WSCOOR_ERROR_CODE_CANNOT_REGISTER_QNAME).addTextNode(WSCLogger.i18NLogger.get_wsc11_messaging_RegistrationCoordinatorProcessorImpl_1()); throw new SOAPFaultException(soapFault); WSCLogger.i18NLogger.get_wsc11_messaging_RegistrationCoordinatorProcessorImpl_2(), protocolIdentifier, arjunaContext.getInstanceIdentifier()); soapFault.addDetail().addDetailEntry(CoordinationConstants.WSCOOR_ERROR_CODE_INVALID_PARAMETERS_QNAME).addTextNode(WSCLogger.i18NLogger.get_wsc11_messaging_RegistrationCoordinatorProcessorImpl_2()); throw new SOAPFaultException(soapFault); WSCLogger.i18NLogger.get_wsc11_messaging_RegistrationCoordinatorProcessorImpl_3(), protocolIdentifier, arjunaContext.getInstanceIdentifier()); soapFault.addDetail().addDetailEntry(CoordinationConstants.WSCOOR_ERROR_CODE_INVALID_STATE_QNAME).addTextNode(WSCLogger.i18NLogger.get_wsc11_messaging_RegistrationCoordinatorProcessorImpl_3()); throw new SOAPFaultException(soapFault); WSCLogger.i18NLogger.get_wsc11_messaging_RegistrationCoordinatorProcessorImpl_4(), protocolIdentifier, arjunaContext.getInstanceIdentifier()); soapFault.addDetail().addDetailEntry(CoordinationConstants.WSCOOR_ERROR_CODE_CANNOT_REGISTER_QNAME).addTextNode(WSCLogger.i18NLogger.get_wsc11_messaging_RegistrationCoordinatorProcessorImpl_4()); throw new SOAPFaultException(soapFault); protocolIdentifier, WSCLogger.i18NLogger.get_wsc11_messaging_RegistrationCoordinatorProcessorImpl_2()) ; soapFault.addDetail().addDetailEntry(CoordinationConstants.WSCOOR_ERROR_CODE_INVALID_PARAMETERS_QNAME).addTextNode(WSCLogger.i18NLogger.get_wsc11_messaging_RegistrationCoordinatorProcessorImpl_2()); throw new SOAPFaultException(soapFault); WSCLogger.i18NLogger.error_failure_to_register_protocol(register == null ? null : register.getProtocolIdentifier(), arjunaContext == null ? null : arjunaContext.getInstanceIdentifier(), se); throw new ProtocolException(se);
/** * Make sure the stream is at the start of an element. * @param streamReader The current stream reader. * @throws XMLStreamException For parsing errors. */ public static void skipToStartElement(final XMLStreamReader streamReader) throws XMLStreamException { while (!streamReader.isStartElement()) { if (streamReader.hasNext()) { streamReader.next() ; } else { throw new XMLStreamException(WSCLogger.i18NLogger.get_webservices_util_StreamHelper_2()) ; } } }
/** * Execute the tasks. */ public void run() { while(true) { final Task task = taskManager.getTask() ; if (task == null) { break ; } try { task.executeTask() ; } catch (final Throwable th) { WSCLogger.i18NLogger.error_services_framework_task_TaskWorker_run_1(th); } } } }
WSCLogger.i18NLogger.get_wsc11_messaging_ActivationCoordinatorProcessorImpl_1(), coordinationType, contextFactory); soapFault.addDetail().addDetailEntry(CoordinationConstants.WSCOOR_ERROR_CODE_INVALID_PARAMETERS_QNAME).addTextNode(WSCLogger.i18NLogger.get_wsc11_messaging_ActivationCoordinatorProcessorImpl_1()); throw new SOAPFaultException(soapFault); coordinationType, WSCLogger.i18NLogger.get_wsc11_messaging_ActivationCoordinatorProcessorImpl_1()); soapFault.addDetail().addDetailEntry(CoordinationConstants.WSCOOR_ERROR_CODE_INVALID_PARAMETERS_QNAME).addTextNode(WSCLogger.i18NLogger.get_wsc11_messaging_ActivationCoordinatorProcessorImpl_1()); throw new SOAPFaultException(soapFault); WSCLogger.i18NLogger.error_failure_to_create_coordination_context( createCoordinationContext == null ? null : createCoordinationContext.getCoordinationType(),se); throw new ProtocolException(se);
soapFault.addDetail().addDetailEntry(CoordinationConstants.WSCOOR_ERROR_CODE_INVALID_PARAMETERS_QNAME).addTextNode(WSCLogger.i18NLogger.get_wsc11_messaging_ActivationCoordinatorProcessorImpl_1()); throw new SOAPFaultException(soapFault); soapFault.addDetail().addDetailEntry(CoordinationConstants.WSCOOR_ERROR_CODE_INVALID_PARAMETERS_QNAME).addTextNode(WSCLogger.i18NLogger.get_wsc11_messaging_ActivationCoordinatorProcessorImpl_1()); throw new SOAPFaultException(soapFault);
soapFault.addDetail().addDetailEntry(CoordinationConstants.WSCOOR_ERROR_CODE_CANNOT_REGISTER_QNAME).addTextNode(WSCLogger.i18NLogger.get_wsc11_messaging_RegistrationCoordinatorProcessorImpl_1()); throw new SOAPFaultException(soapFault); soapFault.addDetail().addDetailEntry(CoordinationConstants.WSCOOR_ERROR_CODE_INVALID_PARAMETERS_QNAME).addTextNode(WSCLogger.i18NLogger.get_wsc11_messaging_RegistrationCoordinatorProcessorImpl_2()); throw new SOAPFaultException(soapFault); soapFault.addDetail().addDetailEntry(CoordinationConstants.WSCOOR_ERROR_CODE_INVALID_STATE_QNAME).addTextNode(WSCLogger.i18NLogger.get_wsc11_messaging_RegistrationCoordinatorProcessorImpl_3()); throw new SOAPFaultException(soapFault); soapFault.addDetail().addDetailEntry(CoordinationConstants.WSCOOR_ERROR_CODE_CANNOT_REGISTER_QNAME).addTextNode(WSCLogger.i18NLogger.get_wsc11_messaging_RegistrationCoordinatorProcessorImpl_4()); throw new SOAPFaultException(soapFault); soapFault.addDetail().addDetailEntry(CoordinationConstants.WSCOOR_ERROR_CODE_INVALID_PARAMETERS_QNAME).addTextNode(WSCLogger.i18NLogger.get_wsc11_messaging_RegistrationCoordinatorProcessorImpl_2()); throw new SOAPFaultException(soapFault);
/** * Make sure the stream is at the start of an element. * @param streamReader The current stream reader. * @throws XMLStreamException For parsing errors. */ public static void skipToStartElement(final XMLStreamReader streamReader) throws XMLStreamException { while (!streamReader.isStartElement()) { if (streamReader.hasNext()) { streamReader.next() ; } else { throw new XMLStreamException(WSCLogger.i18NLogger.get_webservices_util_StreamHelper_2()) ; } } }
/** * Execute the tasks. */ public void run() { while(true) { final Task task = taskManager.getTask() ; if (task == null) { break ; } try { task.executeTask() ; } catch (final Throwable th) { WSCLogger.i18NLogger.error_services_framework_task_TaskWorker_run_1(th); } } } }
soapFault.addDetail().addDetailEntry(CoordinationConstants.WSCOOR_ERROR_CODE_INVALID_PARAMETERS_QNAME).addTextNode(WSCLogger.i18NLogger.get_wsc11_messaging_ActivationCoordinatorProcessorImpl_1()); throw new SOAPFaultException(soapFault); soapFault.addDetail().addDetailEntry(CoordinationConstants.WSCOOR_ERROR_CODE_INVALID_PARAMETERS_QNAME).addTextNode(WSCLogger.i18NLogger.get_wsc11_messaging_ActivationCoordinatorProcessorImpl_1()); throw new SOAPFaultException(soapFault);
soapFault.addDetail().addDetailEntry(CoordinationConstants.WSCOOR_ERROR_CODE_CANNOT_REGISTER_QNAME).addTextNode(WSCLogger.i18NLogger.get_wsc11_messaging_RegistrationCoordinatorProcessorImpl_1()); throw new SOAPFaultException(soapFault); soapFault.addDetail().addDetailEntry(CoordinationConstants.WSCOOR_ERROR_CODE_INVALID_PARAMETERS_QNAME).addTextNode(WSCLogger.i18NLogger.get_wsc11_messaging_RegistrationCoordinatorProcessorImpl_2()); throw new SOAPFaultException(soapFault); soapFault.addDetail().addDetailEntry(CoordinationConstants.WSCOOR_ERROR_CODE_INVALID_STATE_QNAME).addTextNode(WSCLogger.i18NLogger.get_wsc11_messaging_RegistrationCoordinatorProcessorImpl_3()); throw new SOAPFaultException(soapFault); soapFault.addDetail().addDetailEntry(CoordinationConstants.WSCOOR_ERROR_CODE_CANNOT_REGISTER_QNAME).addTextNode(WSCLogger.i18NLogger.get_wsc11_messaging_RegistrationCoordinatorProcessorImpl_4()); throw new SOAPFaultException(soapFault); soapFault.addDetail().addDetailEntry(CoordinationConstants.WSCOOR_ERROR_CODE_INVALID_PARAMETERS_QNAME).addTextNode(WSCLogger.i18NLogger.get_wsc11_messaging_RegistrationCoordinatorProcessorImpl_2()); throw new SOAPFaultException(soapFault);
/** * Make sure the stream is at the start of the next element. * @param streamReader The current stream reader. * @throws XMLStreamException For parsing errors. */ public static void skipToNextStartElement(final XMLStreamReader streamReader) throws XMLStreamException { if (streamReader.hasNext()) { streamReader.nextTag() ; if (streamReader.isEndElement()) { throw new XMLStreamException(WSCLogger.i18NLogger.get_webservices_util_StreamHelper_1(streamReader.getName())) ; } } else { throw new XMLStreamException(WSCLogger.i18NLogger.get_webservices_util_StreamHelper_2()) ; } }
/** * Compare the element tag with the expected qualified name. * @param streamReader The current stream reader. * @param expected The expected qualified name. * @throws XMLStreamException For errors during parsing. */ public static void checkTag(final XMLStreamReader streamReader, final QName expected) throws XMLStreamException { final QName elementName = streamReader.getName() ; if (!expected.equals(elementName)) { throw new XMLStreamException(WSCLogger.i18NLogger.get_webservices_util_StreamHelper_3(elementName)) ; } }
/** * Return the enumeration for the specified value. * @param value The value. * @return The enumeration. * @throws InvalidEnumerationException if the value is not valid. */ public static SoapFaultType toState(final String value) throws InvalidEnumerationException { final Object state = ENUM_MAP.get(value) ; if (state == null) { throw new InvalidEnumerationException(WSCLogger.i18NLogger.get_webservices_SoapFaultType_1(value)) ; } return (SoapFaultType)state ; } }
/** * Make sure the stream is at the start of an element. * @param streamReader The current stream reader. * @throws XMLStreamException For parsing errors. */ public static void skipToStartElement(final XMLStreamReader streamReader) throws XMLStreamException { while (!streamReader.isStartElement()) { if (streamReader.hasNext()) { streamReader.next() ; } else { throw new XMLStreamException(WSCLogger.i18NLogger.get_webservices_util_StreamHelper_2()) ; } } }
/** * Execute the tasks. */ public void run() { while(true) { final Task task = taskManager.getTask() ; if (task == null) { break ; } try { task.executeTask() ; } catch (final Throwable th) { WSCLogger.i18NLogger.error_services_framework_task_TaskWorker_run_1(th); } } } }
soapFault.addDetail().addDetailEntry(CoordinationConstants.WSCOOR_ERROR_CODE_INVALID_PARAMETERS_QNAME).addTextNode(WSCLogger.i18NLogger.get_wsc11_messaging_ActivationCoordinatorProcessorImpl_1()); throw new SOAPFaultException(soapFault); soapFault.addDetail().addDetailEntry(CoordinationConstants.WSCOOR_ERROR_CODE_INVALID_PARAMETERS_QNAME).addTextNode(WSCLogger.i18NLogger.get_wsc11_messaging_ActivationCoordinatorProcessorImpl_1()); throw new SOAPFaultException(soapFault);
soapFault.addDetail().addDetailEntry(CoordinationConstants.WSCOOR_ERROR_CODE_CANNOT_REGISTER_QNAME).addTextNode(WSCLogger.i18NLogger.get_wsc11_messaging_RegistrationCoordinatorProcessorImpl_1()); throw new SOAPFaultException(soapFault); soapFault.addDetail().addDetailEntry(CoordinationConstants.WSCOOR_ERROR_CODE_INVALID_PARAMETERS_QNAME).addTextNode(WSCLogger.i18NLogger.get_wsc11_messaging_RegistrationCoordinatorProcessorImpl_2()); throw new SOAPFaultException(soapFault); soapFault.addDetail().addDetailEntry(CoordinationConstants.WSCOOR_ERROR_CODE_INVALID_STATE_QNAME).addTextNode(WSCLogger.i18NLogger.get_wsc11_messaging_RegistrationCoordinatorProcessorImpl_3()); throw new SOAPFaultException(soapFault); soapFault.addDetail().addDetailEntry(CoordinationConstants.WSCOOR_ERROR_CODE_CANNOT_REGISTER_QNAME).addTextNode(WSCLogger.i18NLogger.get_wsc11_messaging_RegistrationCoordinatorProcessorImpl_4()); throw new SOAPFaultException(soapFault); soapFault.addDetail().addDetailEntry(CoordinationConstants.WSCOOR_ERROR_CODE_INVALID_PARAMETERS_QNAME).addTextNode(WSCLogger.i18NLogger.get_wsc11_messaging_RegistrationCoordinatorProcessorImpl_2()); throw new SOAPFaultException(soapFault);