public final class HttpApiConversions
extends Object
StreamingHttpService.| Modifier and Type | Class and Description |
|---|---|
static interface |
HttpApiConversions.ServiceAdapterHolder
Deprecated.
this interface is not needed anymore and will be removed in a future version with no replacement.
|
@Deprecated public static ReservedHttpConnection toReservedConnection(ReservedStreamingHttpConnection original, HttpExecutionStrategyInfluencer influencer)
HttpExecutionStrategy rather than HttpExecutionStrategyInfluencerReservedStreamingHttpConnection to ReservedHttpConnection.original - ReservedStreamingHttpConnection to convert.influencer - HttpExecutionStrategyInfluencer to use to derive the strategy of the returned
ReservedHttpConnectionpublic static ReservedHttpConnection toReservedConnection(ReservedStreamingHttpConnection original, HttpExecutionStrategy strategy)
ReservedStreamingHttpConnection to ReservedHttpConnection.original - ReservedStreamingHttpConnection to convert.strategy - required strategy for the service when invoking the resulting ReservedHttpConnection@Deprecated public static ReservedBlockingHttpConnection toReservedBlockingConnection(ReservedStreamingHttpConnection original, HttpExecutionStrategyInfluencer influencer)
HttpExecutionStrategy rather than HttpExecutionStrategyInfluencerReservedStreamingHttpConnection to ReservedBlockingHttpConnection.original - ReservedStreamingHttpConnection to convert.influencer - HttpExecutionStrategyInfluencer to use to derive the strategy of the returned
ReservedBlockingHttpConnectionpublic static ReservedBlockingHttpConnection toReservedBlockingConnection(ReservedStreamingHttpConnection original, HttpExecutionStrategy strategy)
ReservedStreamingHttpConnection to ReservedBlockingHttpConnection.original - ReservedStreamingHttpConnection to convert.strategy - required strategy for the service when invoking the resulting
ReservedBlockingHttpConnection@Deprecated public static ReservedBlockingStreamingHttpConnection toReservedBlockingStreamingConnection(ReservedStreamingHttpConnection original, HttpExecutionStrategyInfluencer influencer)
HttpExecutionStrategy rather than HttpExecutionStrategyInfluencerReservedStreamingHttpConnection to ReservedBlockingStreamingHttpConnection.original - ReservedStreamingHttpConnection to convert.influencer - HttpExecutionStrategyInfluencer to use to derive the strategy of the returned
ReservedBlockingStreamingHttpConnectionpublic static ReservedBlockingStreamingHttpConnection toReservedBlockingStreamingConnection(ReservedStreamingHttpConnection original, HttpExecutionStrategy strategy)
ReservedStreamingHttpConnection to ReservedBlockingStreamingHttpConnection.original - ReservedStreamingHttpConnection to convert.strategy - required strategy for the service when invoking the resulting
ReservedBlockingStreamingHttpConnection@Deprecated public static HttpConnection toConnection(StreamingHttpConnection original, HttpExecutionStrategyInfluencer influencer)
HttpExecutionStrategy rather than HttpExecutionStrategyInfluencerStreamingHttpConnection to HttpConnection.original - StreamingHttpConnection to convert.influencer - HttpExecutionStrategyInfluencer to use to derive the strategy of the returned
HttpConnectionpublic static HttpConnection toConnection(StreamingHttpConnection original, HttpExecutionStrategy strategy)
StreamingHttpConnection to HttpConnection.original - StreamingHttpConnection to convert.strategy - required strategy for the service when invoking the resulting HttpConnection@Deprecated public static BlockingHttpConnection toBlockingConnection(StreamingHttpConnection original, HttpExecutionStrategyInfluencer influencer)
HttpExecutionStrategy rather than HttpExecutionStrategyInfluencerStreamingHttpConnection to BlockingHttpConnection.original - StreamingHttpConnection to convert.influencer - HttpExecutionStrategyInfluencer to use to derive the strategy of the returned
BlockingHttpConnectionpublic static BlockingHttpConnection toBlockingConnection(StreamingHttpConnection original, HttpExecutionStrategy strategy)
StreamingHttpConnection to BlockingHttpConnection.original - StreamingHttpConnection to convert.strategy - required strategy for the service when invoking the resulting BlockingHttpConnection@Deprecated public static BlockingStreamingHttpConnection toBlockingStreamingConnection(StreamingHttpConnection original, HttpExecutionStrategyInfluencer influencer)
HttpExecutionStrategy rather than HttpExecutionStrategyInfluencerStreamingHttpConnection to BlockingStreamingHttpConnection.original - StreamingHttpConnection to convert.influencer - HttpExecutionStrategyInfluencer to use to derive the strategy of the returned
BlockingStreamingHttpConnectionpublic static BlockingStreamingHttpConnection toBlockingStreamingConnection(StreamingHttpConnection original, HttpExecutionStrategy strategy)
StreamingHttpConnection to BlockingStreamingHttpConnection.original - StreamingHttpConnection to convert.strategy - required strategy for the service when invoking the resulting
BlockingStreamingHttpConnection@Deprecated public static HttpClient toClient(StreamingHttpClient original, HttpExecutionStrategyInfluencer influencer)
HttpExecutionStrategy rather than HttpExecutionStrategyInfluencerStreamingHttpClient to HttpClient.original - StreamingHttpClient to convert.influencer - HttpExecutionStrategyInfluencer to use to derive the strategy of the returned
HttpClientpublic static HttpClient toClient(StreamingHttpClient original, HttpExecutionStrategy strategy)
StreamingHttpClient to HttpClient.original - StreamingHttpClient to convert.strategy - required strategy for the service when invoking the resulting HttpClient@Deprecated public static BlockingHttpClient toBlockingClient(StreamingHttpClient original, HttpExecutionStrategyInfluencer influencer)
HttpExecutionStrategy rather than HttpExecutionStrategyInfluencerStreamingHttpClient to BlockingHttpClient.original - StreamingHttpClient to convert.influencer - HttpExecutionStrategyInfluencer to use to derive the strategy of the returned
BlockingHttpClientpublic static BlockingHttpClient toBlockingClient(StreamingHttpClient original, HttpExecutionStrategy strategy)
StreamingHttpClient to BlockingHttpClient.original - StreamingHttpClient to convert.strategy - required strategy for the service when invoking the resulting BlockingHttpClient@Deprecated public static BlockingStreamingHttpClient toBlockingStreamingClient(StreamingHttpClient original, HttpExecutionStrategyInfluencer influencer)
HttpExecutionStrategy rather than HttpExecutionStrategyInfluencerStreamingHttpClient to BlockingStreamingHttpClient.original - StreamingHttpClient to convert.influencer - HttpExecutionStrategyInfluencer to use to derive the strategy of the returned
BlockingStreamingHttpClientpublic static BlockingStreamingHttpClient toBlockingStreamingClient(StreamingHttpClient original, HttpExecutionStrategy strategy)
StreamingHttpClient to BlockingStreamingHttpClient.original - StreamingHttpClient to convert.strategy - required strategy for the service when invoking the resulting BlockingStreamingHttpClient@Deprecated public static HttpApiConversions.ServiceAdapterHolder toStreamingHttpService(HttpService service, HttpExecutionStrategyInfluencer influencer)
toStreamingHttpService(HttpExecutionStrategy, HttpService) instead.HttpService to a StreamingHttpService.service - The HttpService to convert.influencer - HttpExecutionStrategyInfluencer to influence the strategy for invoking the resulting
StreamingHttpService.HttpApiConversions.ServiceAdapterHolder containing the service adapted to the streaming programming model.@Deprecated public static HttpApiConversions.ServiceAdapterHolder toStreamingHttpService(HttpService service, HttpExecutionStrategy strategy)
toStreamingHttpService(HttpExecutionStrategy, HttpService) instead.HttpService to a StreamingHttpService.service - The HttpService to convert.strategy - required strategy for the service when invoking the resulting HttpApiConversions.ServiceAdapterHolder.HttpApiConversions.ServiceAdapterHolder containing the service adapted to the streaming programming model.public static StreamingHttpService toStreamingHttpService(HttpExecutionStrategy strategy, HttpService service)
HttpService to a StreamingHttpService.service - The HttpService to convert.strategy - required strategy for the service when invoking the resulting StreamingHttpService.StreamingHttpService to be used for the streaming programming model.@Deprecated public static HttpApiConversions.ServiceAdapterHolder toStreamingHttpService(BlockingStreamingHttpService service, HttpExecutionStrategyInfluencer influencer)
toStreamingHttpService(HttpExecutionStrategy, BlockingStreamingHttpService) instead.BlockingStreamingHttpService to a StreamingHttpService.service - The BlockingStreamingHttpService to convert.influencer - HttpExecutionStrategyInfluencer to influence the strategy for invoking the resulting
StreamingHttpService.HttpApiConversions.ServiceAdapterHolder containing the service adapted to the streaming programming model.@Deprecated public static HttpApiConversions.ServiceAdapterHolder toStreamingHttpService(BlockingStreamingHttpService service, HttpExecutionStrategy strategy)
toStreamingHttpService(HttpExecutionStrategy, BlockingStreamingHttpService) instead.BlockingStreamingHttpService to a StreamingHttpService.service - The BlockingStreamingHttpService to convert.strategy - required strategy for the service when invoking the resulting StreamingHttpService.HttpApiConversions.ServiceAdapterHolder containing the service adapted to the streaming programming model.public static StreamingHttpService toStreamingHttpService(HttpExecutionStrategy strategy, BlockingStreamingHttpService service)
BlockingStreamingHttpService to a StreamingHttpService.strategy - required strategy for the service when invoking the resulting StreamingHttpService.service - The BlockingStreamingHttpService to convert.StreamingHttpService to be used for the streaming programming model.@Deprecated public static HttpApiConversions.ServiceAdapterHolder toStreamingHttpService(BlockingHttpService service, HttpExecutionStrategyInfluencer influencer)
toStreamingHttpService(HttpExecutionStrategy, BlockingHttpService) instead.BlockingHttpService to a StreamingHttpService.service - The BlockingHttpService to convert.influencer - HttpExecutionStrategyInfluencer to influence the strategy for invoking the resulting
StreamingHttpService.HttpApiConversions.ServiceAdapterHolder containing the service adapted to the streaming programming model.@Deprecated public static HttpApiConversions.ServiceAdapterHolder toStreamingHttpService(BlockingHttpService service, HttpExecutionStrategy strategy)
toStreamingHttpService(HttpExecutionStrategy, BlockingHttpService) instead.BlockingHttpService to a StreamingHttpService.service - The BlockingHttpService to convert.strategy - required strategy for the service when invoking the resulting HttpApiConversions.ServiceAdapterHolder.HttpApiConversions.ServiceAdapterHolder containing the service adapted to the streaming programming model.public static StreamingHttpService toStreamingHttpService(HttpExecutionStrategy strategy, BlockingHttpService service)
BlockingHttpService to a StreamingHttpService.strategy - required strategy for the service when invoking the resulting StreamingHttpService.service - The BlockingHttpService to convert.StreamingHttpService to be used for the streaming programming model.public static boolean isPayloadEmpty(HttpMetaData metadata)
metadata - The request/response to check.true is the request/response payload body is empty, false otherwise.public static boolean isSafeToAggregate(HttpMetaData metadata)
metadata - The request/response to check.true is the request/response payload is safe to aggregate, false otherwise.public static boolean mayHaveTrailers(HttpMetaData metadata)
metadata - The request/response to check.true is the request/response payload may have trailers, false otherwise.public static BlockingHttpService toBlockingHttpService(StreamingHttpService service)
StreamingHttpService to a BlockingHttpService.service - The StreamingHttpService to convert.public static HttpService toHttpService(StreamingHttpService service)
StreamingHttpService to a HttpService.service - The StreamingHttpService to convert.public static BlockingStreamingHttpService toBlockingStreamingHttpService(StreamingHttpService service)
StreamingHttpService to a BlockingStreamingHttpService.service - The StreamingHttpService to convert.