Class SoapFaultHttpStatusCodeMapping

  • All Implemented Interfaces:

    
    public class SoapFaultHttpStatusCodeMapping
    
                        

    Mapping class to convert from SOAP faults to HTTP status codes.

    The conversion is based on the mapping table SOAP Version 1.2 Part 2: Adjuncts specification.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      static int get(FaultĀ fault) Converts Fault to an HTTP status code.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SoapFaultHttpStatusCodeMapping

        SoapFaultHttpStatusCodeMapping()
    • Method Detail

      • get

         static int get(FaultĀ fault)

        Converts Fault to an HTTP status code.

        Sender fault causes the mapper to return 400 (bad request), all other fault QNames return 500 (internal server error).

        Parameters:
        fault - the fault to convert.
        Returns:

        an HTTP status code number.