Class ResponseStatusFromPayloadHttpCommandExecutorService

  • All Implemented Interfaces:
    HttpCommandExecutorService

    @Singleton
    public class ResponseStatusFromPayloadHttpCommandExecutorService
    extends JavaUrlHttpCommandExecutorService
    Custom implementation of the HTTP driver to read actual http status and message from SOAP Fault.
    ProfitBricks API errors are always returned with 500 HTTP code. This class parses and reads the SOAP response to map the actual http code and message