Package org.somda.sdc.dpws.soap
Class SoapFaultHttpStatusCodeMapping
-
- All Implemented Interfaces:
public class SoapFaultHttpStatusCodeMappingMapping 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.
-
-
Constructor Summary
Constructors Constructor Description SoapFaultHttpStatusCodeMapping()
-
Method Summary
Modifier and Type Method Description static intget(FaultĀ fault)Converts Fault to an HTTP status code. -
-
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.
-
-
-
-