Class AddressingFaultsHelper


  • public class AddressingFaultsHelper
    extends Object
    • Constructor Detail

      • AddressingFaultsHelper

        public AddressingFaultsHelper()
    • Method Detail

      • getMessageForAxisFault

        public static String getMessageForAxisFault​(String faultCodeLocalName,
                                                    String faultDetail)
        Build an understanndable fault string for the given faultCode and wsa:FaultDetail info. Should really use a message bundle.
        Parameters:
        faultCodeLocalName -
        faultDetail -
        Returns:
      • triggerOnlyAnonymousAddressSupportedFault

        public static void triggerOnlyAnonymousAddressSupportedFault​(MessageContext messageContext,
                                                                     String incorrectHeaderName)
                                                              throws AxisFault
        Throws:
        AxisFault
      • triggerOnlyNonAnonymousAddressSupportedFault

        public static void triggerOnlyNonAnonymousAddressSupportedFault​(MessageContext messageContext,
                                                                        String incorrectHeaderName)
                                                                 throws AxisFault
        Throws:
        AxisFault
      • triggerMessageAddressingRequiredFault

        public static void triggerMessageAddressingRequiredFault​(MessageContext messageContext,
                                                                 String missingHeaderName)
                                                          throws AxisFault
        Throws:
        AxisFault
      • getDetailElementForAddressingFault

        public static OMElement getDetailElementForAddressingFault​(MessageContext messageContext,
                                                                   OMNamespace addressingNamespaceObject)