@Override public Scheme scheme() { ensureAvailability(SCHEME); return Scheme.of(serializationFormat, sessionProtocol); }
private Client<HttpRequest, HttpResponse> newHttpClient(URI uri, Scheme scheme, ClientOptions options) { try { @SuppressWarnings("unchecked") final Client<HttpRequest, HttpResponse> client = delegate().newClient( new URI(Scheme.of(SerializationFormat.NONE, scheme.sessionProtocol()).uriText(), uri.getAuthority(), null, null, null), Client.class, options); return client; } catch (URISyntaxException e) { throw new Error(e); // Should never happen. } } }
private Client<HttpRequest, HttpResponse> newHttpClient(URI uri, Scheme scheme, ClientOptions options) { try { @SuppressWarnings("unchecked") final Client<HttpRequest, HttpResponse> client = delegate().newClient( new URI(Scheme.of(SerializationFormat.NONE, scheme.sessionProtocol()).uriText(), uri.getRawAuthority(), null, null, null), Client.class, options); return client; } catch (URISyntaxException e) { throw new Error(e); // Should never happen. } }
private Client<HttpRequest, HttpResponse> newHttpClient(URI uri, Scheme scheme, ClientOptions options) { try { @SuppressWarnings("unchecked") final Client<HttpRequest, HttpResponse> client = delegate().newClient( new URI(Scheme.of(SerializationFormat.NONE, scheme.sessionProtocol()).uriText(), uri.getAuthority(), null, null, null), Client.class, options); return client; } catch (URISyntaxException e) { throw new Error(e); // Should never happen. } } }
private Client<HttpRequest, HttpResponse> newHttpClient(URI uri, Scheme scheme, ClientOptions options) { try { @SuppressWarnings("unchecked") final Client<HttpRequest, HttpResponse> client = delegate().newClient( new URI(Scheme.of(SerializationFormat.NONE, scheme.sessionProtocol()).uriText(), uri.getRawAuthority(), null, null, null), Client.class, options); return client; } catch (URISyntaxException e) { throw new Error(e); // Should never happen. } }
private Client<HttpRequest, HttpResponse> newHttpClient(URI uri, Scheme scheme, ClientOptions options) { try { @SuppressWarnings("unchecked") final Client<HttpRequest, HttpResponse> client = delegate().newClient( new URI(Scheme.of(SerializationFormat.NONE, scheme.sessionProtocol()).uriText(), uri.getRawAuthority(), null, null, null), Client.class, options); return client; } catch (URISyntaxException e) { throw new Error(e); // Should never happen. } }
private Client<HttpRequest, HttpResponse> newHttpClient(URI uri, Scheme scheme, ClientOptions options) { try { @SuppressWarnings("unchecked") final Client<HttpRequest, HttpResponse> client = delegate().newClient( new URI(Scheme.of(SerializationFormat.NONE, scheme.sessionProtocol()).uriText(), uri.getRawAuthority(), null, null, null), Client.class, options); return client; } catch (URISyntaxException e) { throw new Error(e); // Should never happen. } }