public RestTemplateTransport()

in transports/transport-resttemplate/src/main/java/org/apache/servicecomb/saga/transports/resttemplate/RestTemplateTransport.java [54:72]


  public RestTemplateTransport(RestTemplate restTemplate, String protocol) {
    this.protocol = protocol;
    this.restTemplate = restTemplate;
    this.restTemplate.setErrorHandler(new ResponseErrorHandler() {
      @Override
      public boolean hasError(ClientHttpResponse clientHttpResponse) throws IOException {
        return false;
      }

      @Override
      public void handleError(ClientHttpResponse clientHttpResponse) throws IOException {
      }
    });

    methodMapping.put(GET.name(), exchange(GET));
    methodMapping.put(PUT.name(), exchange(PUT));
    methodMapping.put(POST.name(), exchange(POST));
    methodMapping.put(DELETE.name(), exchange(DELETE));
  }