Class UpstreamRestPort<CTX>

    • Constructor Detail

      • UpstreamRestPort

        public UpstreamRestPort​(String upstreamId,
                                UpstreamRequestCounter requestCounter,
                                com.fasterxml.jackson.databind.ObjectMapper objectMapper,
                                org.apache.http.conn.ssl.SSLConnectionSocketFactory socketFactory,
                                int connectionTimeoutInMillis,
                                List<UpstreamInterceptor<CTX>> interceptors)
    • Method Detail

      • exchange

        public <T> org.springframework.http.ResponseEntity<T> exchange​(CTX context,
                                                                       String endpointId,
                                                                       org.springframework.http.RequestEntity<?> requestEntity,
                                                                       Class<T> responseType)
        Specified by:
        exchange in interface UpstreamPort<CTX>
      • exchange

        public <T> org.springframework.http.ResponseEntity<T> exchange​(CTX context,
                                                                       String endpointId,
                                                                       org.springframework.http.RequestEntity<?> requestEntity,
                                                                       org.springframework.core.ParameterizedTypeReference<T> responseType)
        Specified by:
        exchange in interface UpstreamPort<CTX>