@Internal public class NettyHttpClientFactory extends Object implements HttpClientFactory, SseClientFactory, ProxyHttpClientFactory, StreamingHttpClientFactory, WebSocketClientFactory
Constructor and Description |
---|
NettyHttpClientFactory() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createWebSocketClient, createWebSocketClient
@NonNull public HttpClient createClient(URL url)
HttpClientFactory
HttpClient
. Note that this method should only be used outside of the context of an application. Within Micronaut use
Inject
to inject a client insteadcreateClient
in interface HttpClientFactory
url
- The base URL@NonNull public HttpClient createClient(URL url, @NonNull HttpClientConfiguration configuration)
HttpClientFactory
HttpClient
with the specified configuration. Note that this method should only be used
outside of the context of an application. Within Micronaut use Inject
to inject a client insteadcreateClient
in interface HttpClientFactory
url
- The base URLconfiguration
- the client configuration@NonNull public ProxyHttpClient createProxyClient(URL url)
ProxyHttpClientFactory
ProxyHttpClient
. Note that this method should only be used outside of the context of an application. Within Micronaut use
Inject
to inject a client insteadcreateProxyClient
in interface ProxyHttpClientFactory
url
- The base URL@NonNull public ProxyHttpClient createProxyClient(URL url, @NonNull HttpClientConfiguration configuration)
ProxyHttpClientFactory
ProxyHttpClient
with the specified configuration. Note that this method should only be used
outside of the context of an application. Within Micronaut use Inject
to inject a client insteadcreateProxyClient
in interface ProxyHttpClientFactory
url
- The base URLconfiguration
- the client configuration@NonNull public SseClient createSseClient(@Nullable URL url)
SseClientFactory
SseClient
. Note that this method should only be used outside of the context of an application. Within Micronaut use
Inject
to inject a client insteadcreateSseClient
in interface SseClientFactory
url
- The base URL@NonNull public SseClient createSseClient(@Nullable URL url, @NonNull HttpClientConfiguration configuration)
SseClientFactory
SseClient
with the specified configuration. Note that this method should only be used
outside of the context of an application. Within Micronaut use Inject
to inject a client insteadcreateSseClient
in interface SseClientFactory
url
- The base URLconfiguration
- the client configuration@NonNull public StreamingHttpClient createStreamingClient(URL url)
StreamingHttpClientFactory
StreamingHttpClient
. Note that this method should only be used outside of the context of an application. Within Micronaut use
Inject
to inject a client insteadcreateStreamingClient
in interface StreamingHttpClientFactory
url
- The base URL@NonNull public StreamingHttpClient createStreamingClient(URL url, @NonNull HttpClientConfiguration configuration)
StreamingHttpClientFactory
StreamingHttpClient
with the specified configuration. Note that this method should only be used
outside of the context of an application. Within Micronaut use Inject
to inject a client insteadcreateStreamingClient
in interface StreamingHttpClientFactory
url
- The base URLconfiguration
- The client configuration@NonNull public WebSocketClient createWebSocketClient(URI uri)
WebSocketClientFactory
WebSocketClient
. Note that this method should only be used outside of the context of an application. Within Micronaut use
Inject
to inject a client insteadcreateWebSocketClient
in interface WebSocketClientFactory
uri
- The base URI@NonNull public WebSocketClient createWebSocketClient(URI uri, @NonNull HttpClientConfiguration configuration)
WebSocketClientFactory
WebSocketClient
with the specified configuration. Note that this method should only be used outside of the context of an application. Within Micronaut use
Inject
to inject a client insteadcreateWebSocketClient
in interface WebSocketClientFactory
uri
- The base URIconfiguration
- The client configuration