Class UpstreamRestPort<CTX>
- java.lang.Object
-
- net.optionfactory.spring.upstream.rest.UpstreamRestPort<CTX>
-
- All Implemented Interfaces:
UpstreamPort<CTX>
public class UpstreamRestPort<CTX> extends Object implements UpstreamPort<CTX>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUpstreamRestPort.RestInterceptors<CTX>
-
Constructor Summary
Constructors Constructor Description 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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> org.springframework.http.ResponseEntity<T>exchange(CTX context, String endpointId, org.springframework.http.RequestEntity<?> requestEntity, Class<T> responseType)<T> org.springframework.http.ResponseEntity<T>exchange(CTX context, String endpointId, org.springframework.http.RequestEntity<?> requestEntity, org.springframework.core.ParameterizedTypeReference<T> responseType)
-
-
-
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:
exchangein interfaceUpstreamPort<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:
exchangein interfaceUpstreamPort<CTX>
-
-