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>-
Nested classes/interfaces inherited from interface net.optionfactory.spring.upstream.UpstreamPort
UpstreamPort.Hints<CTX extends Object>, UpstreamPort.UpstreamBodyToString<CTX extends Object>, UpstreamPort.UpstreamErrorHandler<CTX extends Object>, UpstreamPort.UpstreamErrorStrategy<CTX extends Object>, UpstreamPort.UpstreamFaultPredicate<CTX extends Object>
-
-
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)UpstreamRestPort(String upstreamId, UpstreamRequestCounter requestCounter, com.fasterxml.jackson.databind.ObjectMapper objectMapper, org.apache.http.conn.ssl.SSLConnectionSocketFactory socketFactory, int connectionTimeoutInMillis, List<UpstreamInterceptor<CTX>> interceptors, List<org.springframework.http.converter.HttpMessageConverter<?>> converters)
-
Method Summary
All Methods Static 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, UpstreamPort.Hints<CTX> hints)<T> org.springframework.http.ResponseEntity<T>exchange(CTX context, String endpointId, org.springframework.http.RequestEntity<?> requestEntity, org.springframework.core.ParameterizedTypeReference<T> responseType, UpstreamPort.Hints<CTX> hints)static List<org.springframework.http.converter.HttpMessageConverter<?>>makeDefaultConverters(com.fasterxml.jackson.databind.ObjectMapper objectMapper)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.optionfactory.spring.upstream.UpstreamPort
exchange, exchange
-
-
-
-
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)
-
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, List<org.springframework.http.converter.HttpMessageConverter<?>> converters)
-
-
Method Detail
-
makeDefaultConverters
public static List<org.springframework.http.converter.HttpMessageConverter<?>> makeDefaultConverters(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
exchange
public <T> org.springframework.http.ResponseEntity<T> exchange(CTX context, String endpointId, org.springframework.http.RequestEntity<?> requestEntity, Class<T> responseType, UpstreamPort.Hints<CTX> hints)
- 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, UpstreamPort.Hints<CTX> hints)
- Specified by:
exchangein interfaceUpstreamPort<CTX>
-
-