Before

1/*
2 * Copyright (c) 2011, 2019 Oracle and/or its affiliates. All rights reserved.
3 *
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v. 2.0, which is available at
6 * http://www.eclipse.org/legal/epl-2.0.
7 *
8 * This Source Code may also be made available under the following Secondary
…lines 9–15 unchanged (7 lines)
16
17package jakarta.ws.rs.client;
18
19import javax.net.ssl.HostnameVerifier;
20import javax.net.ssl.SSLContext;
21import java.net.URL;
22import java.security.AccessController;
23import java.security.KeyStore;
24import java.security.PrivilegedAction;
25import java.util.concurrent.ExecutorService;
26import java.util.concurrent.ScheduledExecutorService;
27import java.util.concurrent.TimeUnit;
28import java.util.concurrent.TimeoutException;
29
30import jakarta.ws.rs.ProcessingException;
…lines 31–57 unchanged (27 lines)
58 * @return new client builder instance.
59 */
60 public static ClientBuilder newBuilder() {
61 try {
62 Object delegate = FactoryFinder.find(JAXRS_DEFAULT_CLIENT_BUILDER_PROPERTY, ClientBuilder.class);
63 if (!(delegate instanceof ClientBuilder)) {
64 final CreateErrorMessageAction action = new CreateErrorMessageAction(delegate);
65 final String errorMessage;
66 if (System.getSecurityManager() == null) {
67 errorMessage = action.run();
68 } else {
69 errorMessage = AccessController.doPrivileged(action);
70 }
71 throw new LinkageError(errorMessage);
72 }
73 return (ClientBuilder) delegate;
74 } catch (Exception ex) {
75 throw new RuntimeException(ex);
76 }
77 }
…lines 78–268 unchanged (191 lines)
269 * Build a new client instance using all the configuration previously specified in this client builder.
270 *
271 * @return a new client instance.
272 */
273 public abstract Client build();
274
275 private static final class CreateErrorMessageAction implements PrivilegedAction<String> {
276 private final Object delegate;
277
278 private CreateErrorMessageAction(final Object delegate) {
279 this.delegate = delegate;
280 }
281
282 @Override
283 public String run() {
284 Class<?> pClass = ClientBuilder.class;
285 String classnameAsResource = pClass.getName().replace('.', '/') + ".class";
286 ClassLoader loader = pClass.getClassLoader();
287 if (loader == null) {
288 loader = ClassLoader.getSystemClassLoader();
289 }
290 URL targetTypeURL = loader.getResource(classnameAsResource);
291 return "ClassCastException: attempting to cast"
292 + delegate.getClass().getClassLoader().getResource(classnameAsResource)
293 + " to " + targetTypeURL;
294 }
295 }
296}
297

After

1/*
2 * Copyright (c) 2011 Oracle and/or its affiliates. All rights reserved.
3 *
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v. 2.0, which is available at
6 * http://www.eclipse.org/legal/epl-2.0.
7 *
…lines 8–15 unchanged (8 lines)
16
17package jakarta.ws.rs.client;
18
19import javax.net.ssl.HostnameVerifier;
20import javax.net.ssl.SSLContext;
21import java.net.URL;
22import java.security.KeyStore;
23import java.util.concurrent.ExecutorService;
24import java.util.concurrent.ScheduledExecutorService;
25import java.util.concurrent.TimeUnit;
26import java.util.concurrent.TimeoutException;
27
28import jakarta.ws.rs.ProcessingException;
29import jakarta.ws.rs.core.Configurable;
…lines 30–55 unchanged (26 lines)
56 * @return new client builder instance.
57 */
58 public static ClientBuilder newBuilder() {
59 try {
60 Object delegate = FactoryFinder.find(JAXRS_DEFAULT_CLIENT_BUILDER_PROPERTY, ClientBuilder.class);
61 if (!(delegate instanceof ClientBuilder)) {
62 Class<?> pClass = ClientBuilder.class;
63 String classnameAsResource = pClass.getName().replace('.', '/') + ".class";
64 ClassLoader loader = pClass.getClassLoader();
65 if (loader == null) {
66 loader = ClassLoader.getSystemClassLoader();
67 }
68 URL targetTypeURL = loader.getResource(classnameAsResource);
69 final String errorMessage = "ClassCastException: attempting to cast"
70 + delegate.getClass().getClassLoader().getResource(classnameAsResource)
71 + " to " + targetTypeURL;
72 throw new LinkageError(errorMessage);
73 }
74 return (ClientBuilder) delegate;
75 } catch (Exception ex) {
76 throw new RuntimeException(ex);
77 }
78 }
…lines 79–268 unchanged (190 lines)
269 /**
270 * Build a new client instance using all the configuration previously specified in this client builder.
271 *
272 * @return a new client instance.
273 */
274 public abstract Client build();
275}
276

Before

program
block_comment "/*\n * Copyright (c) 2011, 2019 Oracle and/or its affiliates."...
package_declaration
package "package"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "jakarta"
. "."
identifier "ws"
. "."
identifier "rs"
. "."
identifier "client"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "javax"
. "."
identifier "net"
. "."
identifier "ssl"
. "."
identifier "HostnameVerifier"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "javax"
. "."
identifier "net"
. "."
identifier "ssl"
. "."
identifier "SSLContext"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "net"
. "."
identifier "URL"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "security"
. "."
identifier "AccessController"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "security"
. "."
identifier "KeyStore"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "security"
. "."
identifier "PrivilegedAction"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "concurrent"
. "."
identifier "ExecutorService"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "concurrent"
. "."
identifier "ScheduledExecutorService"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "concurrent"
. "."
identifier "TimeUnit"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "concurrent"
. "."
identifier "TimeoutException"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "jakarta"
. "."
identifier "ws"
. "."
identifier "rs"
. "."
identifier "ProcessingException"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "jakarta"
. "."
identifier "ws"
. "."
identifier "rs"
. "."
identifier "core"
. "."
identifier "Configurable"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "jakarta"
. "."
identifier "ws"
. "."
identifier "rs"
. "."
identifier "core"
. "."
identifier "Configuration"
; ";"
block_comment "/**\n * Main entry point to the client API used to bootstrap "...
class_declaration
modifiers
public "public"
abstract "abstract"
class "class"
identifier "ClientBuilder"
super_interfaces
implements "implements"
type_list
generic_type
type_identifier "Configurable"
type_arguments
< "<"
type_identifier "ClientBuilder"
> ">"
class_body
{ "{"
block_comment "/**\n * Name of the property identifying the {@link Clien"...
field_declaration
modifiers
public "public"
static "static"
final "final"
type_identifier "String"
variable_declarator
identifier "JAXRS_DEFAULT_CLIENT_BUILDER_PROPERTY"
= "="
string_literal
" "\""
string_fragment "jakarta.ws.rs.client.ClientBuilder"
" "\""
; ";"
block_comment "/**\n * Allows custom implementations to extend the {@cod"...
constructor_declaration
modifiers
protected "protected"
identifier "ClientBuilder"
formal_parameters
( "("
) ")"
constructor_body
{ "{"
} "}"
block_comment "/**\n * Create a new {@code ClientBuilder} instance using"...
method_declaration
modifiers
public "public"
static "static"
type_identifier "ClientBuilder"
identifier "newBuilder"
formal_parameters
( "("
) ")"
block
{ "{"
try_statement
try "try"
block
{ "{"
local_variable_declaration
type_identifier "Object"
variable_declarator
identifier "delegate"
= "="
method_invocation
identifier "FactoryFinder"
. "."
identifier "find"
argument_list
( "("
identifier "JAXRS_DEFAULT_CLIENT_BUILDER_PROPERTY"
, ","
class_literal
type_identifier "ClientBuilder"
. "."
class "class"
) ")"
; ";"
if_statement
if "if"
parenthesized_expression
( "("
unary_expression
! "!"
parenthesized_expression
( "("
instanceof_expression
identifier "delegate"
instanceof "instanceof"
type_identifier "ClientBuilder"
) ")"
) ")"
block
{ "{"
local_variable_declaration
modifiers
final "final"
type_identifier "CreateErrorMessageAction"
variable_declarator
identifier "action"
= "="
object_creation_expression
new "new"
type_identifier "CreateErrorMessageAction"
argument_list
( "("
identifier "delegate"
) ")"
; ";"
local_variable_declaration
modifiers
final "final"
type_identifier "String"
variable_declarator
identifier "errorMessage"
; ";"
if_statement
if "if"
parenthesized_expression
( "("
binary_expression
method_invocation
identifier "System"
. "."
identifier "getSecurityManager"
argument_list
( "("
) ")"
== "=="
null_literal "null"
) ")"
block
{ "{"
expression_statement
assignment_expression
identifier "errorMessage"
= "="
method_invocation
identifier "action"
. "."
identifier "run"
argument_list
( "("
) ")"
; ";"
} "}"
else "else"
block
{ "{"
expression_statement
assignment_expression
identifier "errorMessage"
= "="
method_invocation
identifier "AccessController"
. "."
identifier "doPrivileged"
argument_list
( "("
identifier "action"
) ")"
; ";"
} "}"
throw_statement
throw "throw"
object_creation_expression
new "new"
type_identifier "LinkageError"
argument_list
( "("
identifier "errorMessage"
) ")"
; ";"
} "}"
return_statement
return "return"
cast_expression
( "("
type_identifier "ClientBuilder"
) ")"
identifier "delegate"
; ";"
} "}"
catch_clause (+21 nodes collapsed)
} "}"
block_comment "/**\n * Create a new {@link Client} instance using the de"...
method_declaration (+26 nodes collapsed)
block_comment "/**\n * Create a new custom-configured {@link Client} ins"...
method_declaration (+38 nodes collapsed)
block_comment "/**\n * Set the internal configuration state to an extern"...
method_declaration
modifiers
public "public"
abstract "abstract"
type_identifier "ClientBuilder"
identifier "withConfig"
formal_parameters
( "("
formal_parameter
type_identifier "Configuration"
identifier "config"
) ")"
; ";"
block_comment "/**\n * Set the SSL context that will be used when creati"...
method_declaration
modifiers
public "public"
abstract "abstract"
type_identifier "ClientBuilder"
identifier "sslContext"
formal_parameters
( "("
formal_parameter
modifiers
final "final"
type_identifier "SSLContext"
identifier "sslContext"
) ")"
; ";"
block_comment "/**\n * Set the client-side key store. Key store contains"...
method_declaration (+26 nodes collapsed)
block_comment "/**\n * Set the client-side key store. Key store contains"...
method_declaration (+39 nodes collapsed)
block_comment "/**\n * Set the client-side trust store. Trust store is e"...
method_declaration
modifiers
public "public"
abstract "abstract"
type_identifier "ClientBuilder"
identifier "trustStore"
formal_parameters
( "("
formal_parameter
modifiers
final "final"
type_identifier "KeyStore"
identifier "trustStore"
) ")"
; ";"
block_comment "/**\n * Set the hostname verifier to be used by the clien"...
method_declaration
modifiers
public "public"
abstract "abstract"
type_identifier "ClientBuilder"
identifier "hostnameVerifier"
formal_parameters
( "("
formal_parameter
modifiers
final "final"
type_identifier "HostnameVerifier"
identifier "verifier"
) ")"
; ";"
block_comment "/**\n * Set the client-side {@link ExecutorService}.\n "...
method_declaration
modifiers
public "public"
abstract "abstract"
type_identifier "ClientBuilder"
identifier "executorService"
formal_parameters
( "("
formal_parameter
modifiers
final "final"
type_identifier "ExecutorService"
identifier "executorService"
) ")"
; ";"
block_comment "/**\n * Set the client-side {@link ScheduledExecutorServi"...
method_declaration
modifiers
public "public"
abstract "abstract"
type_identifier "ClientBuilder"
identifier "scheduledExecutorService"
formal_parameters
( "("
formal_parameter
modifiers
final "final"
type_identifier "ScheduledExecutorService"
identifier "scheduledExecutorService"
) ")"
; ";"
block_comment "/**\n * Set the connect timeout.\n * <p>\n * Value "...
method_declaration
modifiers
public "public"
abstract "abstract"
type_identifier "ClientBuilder"
identifier "connectTimeout"
formal_parameters
( "("
formal_parameter
integral_type
long "long"
identifier "timeout"
, ","
formal_parameter
type_identifier "TimeUnit"
identifier "unit"
) ")"
; ";"
block_comment "/**\n * Set the read timeout.\n * <p>\n * The value"...
method_declaration
modifiers
public "public"
abstract "abstract"
type_identifier "ClientBuilder"
identifier "readTimeout"
formal_parameters
( "("
formal_parameter
integral_type
long "long"
identifier "timeout"
, ","
formal_parameter
type_identifier "TimeUnit"
identifier "unit"
) ")"
; ";"
block_comment "/**\n * Build a new client instance using all the configu"...
method_declaration
modifiers
public "public"
abstract "abstract"
type_identifier "Client"
identifier "build"
formal_parameters
( "("
) ")"
; ";"
class_declaration
modifiers
private "private"
static "static"
final "final"
class "class"
identifier "CreateErrorMessageAction"
super_interfaces
implements "implements"
type_list
generic_type
type_identifier "PrivilegedAction"
type_arguments
< "<"
type_identifier "String"
> ">"
class_body
{ "{"
field_declaration
modifiers
private "private"
final "final"
type_identifier "Object"
variable_declarator
identifier "delegate"
; ";"
constructor_declaration
modifiers
private "private"
identifier "CreateErrorMessageAction"
formal_parameters
( "("
formal_parameter
modifiers
final "final"
type_identifier "Object"
identifier "delegate"
) ")"
constructor_body
{ "{"
expression_statement
assignment_expression
field_access
this "this"
. "."
identifier "delegate"
= "="
identifier "delegate"
; ";"
} "}"
method_declaration
modifiers
marker_annotation
@ "@"
identifier "Override"
public "public"
type_identifier "String"
identifier "run"
formal_parameters
( "("
) ")"
block
{ "{"
local_variable_declaration
generic_type
type_identifier "Class"
type_arguments
< "<"
wildcard
? "?"
> ">"
variable_declarator
identifier "pClass"
= "="
class_literal
type_identifier "ClientBuilder"
. "."
class "class"
; ";"
local_variable_declaration
type_identifier "String"
variable_declarator
identifier "classnameAsResource"
= "="
binary_expression
method_invocation
method_invocation
identifier "pClass"
. "."
identifier "getName"
argument_list
( "("
) ")"
. "."
identifier "replace"
argument_list
( "("
character_literal "'.'"
, ","
character_literal "'/'"
) ")"
+ "+"
string_literal
" "\""
string_fragment ".class"
" "\""
; ";"
local_variable_declaration
type_identifier "ClassLoader"
variable_declarator
identifier "loader"
= "="
method_invocation
identifier "pClass"
. "."
identifier "getClassLoader"
argument_list
( "("
) ")"
; ";"
if_statement
if "if"
parenthesized_expression
( "("
binary_expression
identifier "loader"
== "=="
null_literal "null"
) ")"
block
{ "{"
expression_statement
assignment_expression
identifier "loader"
= "="
method_invocation
identifier "ClassLoader"
. "."
identifier "getSystemClassLoader"
argument_list
( "("
) ")"
; ";"
} "}"
local_variable_declaration
type_identifier "URL"
variable_declarator
identifier "targetTypeURL"
= "="
method_invocation
identifier "loader"
. "."
identifier "getResource"
argument_list
( "("
identifier "classnameAsResource"
) ")"
; ";"
return_statement
return "return"
binary_expression
binary_expression
binary_expression
string_literal
" "\""
string_fragment "ClassCastException: attempting to cast"
" "\""
+ "+"
method_invocation
method_invocation
method_invocation
identifier "delegate"
. "."
identifier "getClass"
argument_list
( "("
) ")"
. "."
identifier "getClassLoader"
argument_list
( "("
) ")"
. "."
identifier "getResource"
argument_list
( "("
identifier "classnameAsResource"
) ")"
+ "+"
string_literal
" "\""
string_fragment " to "
" "\""
+ "+"
identifier "targetTypeURL"
; ";"
} "}"
} "}"
} "}"

After

program
block_comment "/*\n * Copyright (c) 2011 Oracle and/or its affiliates. All r"...
package_declaration
package "package"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "jakarta"
. "."
identifier "ws"
. "."
identifier "rs"
. "."
identifier "client"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "javax"
. "."
identifier "net"
. "."
identifier "ssl"
. "."
identifier "HostnameVerifier"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "javax"
. "."
identifier "net"
. "."
identifier "ssl"
. "."
identifier "SSLContext"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "net"
. "."
identifier "URL"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "security"
. "."
identifier "KeyStore"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "concurrent"
. "."
identifier "ExecutorService"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "concurrent"
. "."
identifier "ScheduledExecutorService"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "concurrent"
. "."
identifier "TimeUnit"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "concurrent"
. "."
identifier "TimeoutException"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "jakarta"
. "."
identifier "ws"
. "."
identifier "rs"
. "."
identifier "ProcessingException"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "jakarta"
. "."
identifier "ws"
. "."
identifier "rs"
. "."
identifier "core"
. "."
identifier "Configurable"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "jakarta"
. "."
identifier "ws"
. "."
identifier "rs"
. "."
identifier "core"
. "."
identifier "Configuration"
; ";"
block_comment "/**\n * Main entry point to the client API used to bootstrap "...
class_declaration
modifiers
public "public"
abstract "abstract"
class "class"
identifier "ClientBuilder"
super_interfaces
implements "implements"
type_list
generic_type
type_identifier "Configurable"
type_arguments
< "<"
type_identifier "ClientBuilder"
> ">"
class_body
{ "{"
block_comment "/**\n * Name of the property identifying the {@link Clien"...
field_declaration
modifiers
public "public"
static "static"
final "final"
type_identifier "String"
variable_declarator
identifier "JAXRS_DEFAULT_CLIENT_BUILDER_PROPERTY"
= "="
string_literal
" "\""
string_fragment "jakarta.ws.rs.client.ClientBuilder"
" "\""
; ";"
block_comment "/**\n * Allows custom implementations to extend the {@cod"...
constructor_declaration
modifiers
protected "protected"
identifier "ClientBuilder"
formal_parameters
( "("
) ")"
constructor_body
{ "{"
} "}"
block_comment "/**\n * Create a new {@code ClientBuilder} instance using"...
method_declaration
modifiers
public "public"
static "static"
type_identifier "ClientBuilder"
identifier "newBuilder"
formal_parameters
( "("
) ")"
block
{ "{"
try_statement
try "try"
block
{ "{"
local_variable_declaration
type_identifier "Object"
variable_declarator
identifier "delegate"
= "="
method_invocation
identifier "FactoryFinder"
. "."
identifier "find"
argument_list
( "("
identifier "JAXRS_DEFAULT_CLIENT_BUILDER_PROPERTY"
, ","
class_literal
type_identifier "ClientBuilder"
. "."
class "class"
) ")"
; ";"
if_statement
if "if"
parenthesized_expression
( "("
unary_expression
! "!"
parenthesized_expression
( "("
instanceof_expression
identifier "delegate"
instanceof "instanceof"
type_identifier "ClientBuilder"
) ")"
) ")"
block
{ "{"
local_variable_declaration
generic_type
type_identifier "Class"
type_arguments
< "<"
wildcard
? "?"
> ">"
variable_declarator
identifier "pClass"
= "="
class_literal
type_identifier "ClientBuilder"
. "."
class "class"
; ";"
local_variable_declaration
type_identifier "String"
variable_declarator
identifier "classnameAsResource"
= "="
binary_expression
method_invocation
method_invocation
identifier "pClass"
. "."
identifier "getName"
argument_list
( "("
) ")"
. "."
identifier "replace"
argument_list
( "("
character_literal "'.'"
, ","
character_literal "'/'"
) ")"
+ "+"
string_literal
" "\""
string_fragment ".class"
" "\""
; ";"
local_variable_declaration
type_identifier "ClassLoader"
variable_declarator
identifier "loader"
= "="
method_invocation
identifier "pClass"
. "."
identifier "getClassLoader"
argument_list
( "("
) ")"
; ";"
if_statement
if "if"
parenthesized_expression
( "("
binary_expression
identifier "loader"
== "=="
null_literal "null"
) ")"
block
{ "{"
expression_statement
assignment_expression
identifier "loader"
= "="
method_invocation
identifier "ClassLoader"
. "."
identifier "getSystemClassLoader"
argument_list
( "("
) ")"
; ";"
} "}"
local_variable_declaration
type_identifier "URL"
variable_declarator
identifier "targetTypeURL"
= "="
method_invocation
identifier "loader"
. "."
identifier "getResource"
argument_list
( "("
identifier "classnameAsResource"
) ")"
; ";"
local_variable_declaration
modifiers
final "final"
type_identifier "String"
variable_declarator
identifier "errorMessage"
= "="
binary_expression
binary_expression
binary_expression
string_literal
" "\""
string_fragment "ClassCastException: attempting to cast"
" "\""
+ "+"
method_invocation
method_invocation
method_invocation
identifier "delegate"
. "."
identifier "getClass"
argument_list
( "("
) ")"
. "."
identifier "getClassLoader"
argument_list
( "("
) ")"
. "."
identifier "getResource"
argument_list
( "("
identifier "classnameAsResource"
) ")"
+ "+"
string_literal
" "\""
string_fragment " to "
" "\""
+ "+"
identifier "targetTypeURL"
; ";"
throw_statement
throw "throw"
object_creation_expression
new "new"
type_identifier "LinkageError"
argument_list
( "("
identifier "errorMessage"
) ")"
; ";"
} "}"
return_statement
return "return"
cast_expression
( "("
type_identifier "ClientBuilder"
) ")"
identifier "delegate"
; ";"
} "}"
catch_clause (+21 nodes collapsed)
} "}"
block_comment "/**\n * Create a new {@link Client} instance using the de"...
method_declaration (+26 nodes collapsed)
block_comment "/**\n * Create a new custom-configured {@link Client} ins"...
method_declaration (+38 nodes collapsed)
block_comment "/**\n * Set the internal configuration state to an extern"...
method_declaration
modifiers
public "public"
abstract "abstract"
type_identifier "ClientBuilder"
identifier "withConfig"
formal_parameters
( "("
formal_parameter
type_identifier "Configuration"
identifier "config"
) ")"
; ";"
block_comment "/**\n * Set the SSL context that will be used when creati"...
method_declaration
modifiers
public "public"
abstract "abstract"
type_identifier "ClientBuilder"
identifier "sslContext"
formal_parameters
( "("
formal_parameter
modifiers
final "final"
type_identifier "SSLContext"
identifier "sslContext"
) ")"
; ";"
block_comment "/**\n * Set the client-side key store. Key store contains"...
method_declaration (+26 nodes collapsed)
block_comment "/**\n * Set the client-side key store. Key store contains"...
method_declaration (+39 nodes collapsed)
block_comment "/**\n * Set the client-side trust store. Trust store is e"...
method_declaration
modifiers
public "public"
abstract "abstract"
type_identifier "ClientBuilder"
identifier "trustStore"
formal_parameters
( "("
formal_parameter
modifiers
final "final"
type_identifier "KeyStore"
identifier "trustStore"
) ")"
; ";"
block_comment "/**\n * Set the hostname verifier to be used by the clien"...
method_declaration
modifiers
public "public"
abstract "abstract"
type_identifier "ClientBuilder"
identifier "hostnameVerifier"
formal_parameters
( "("
formal_parameter
modifiers
final "final"
type_identifier "HostnameVerifier"
identifier "verifier"
) ")"
; ";"
block_comment "/**\n * Set the client-side {@link ExecutorService}.\n "...
method_declaration
modifiers
public "public"
abstract "abstract"
type_identifier "ClientBuilder"
identifier "executorService"
formal_parameters
( "("
formal_parameter
modifiers
final "final"
type_identifier "ExecutorService"
identifier "executorService"
) ")"
; ";"
block_comment "/**\n * Set the client-side {@link ScheduledExecutorServi"...
method_declaration
modifiers
public "public"
abstract "abstract"
type_identifier "ClientBuilder"
identifier "scheduledExecutorService"
formal_parameters
( "("
formal_parameter
modifiers
final "final"
type_identifier "ScheduledExecutorService"
identifier "scheduledExecutorService"
) ")"
; ";"
block_comment "/**\n * Set the connect timeout.\n * <p>\n * Value "...
method_declaration
modifiers
public "public"
abstract "abstract"
type_identifier "ClientBuilder"
identifier "connectTimeout"
formal_parameters
( "("
formal_parameter
integral_type
long "long"
identifier "timeout"
, ","
formal_parameter
type_identifier "TimeUnit"
identifier "unit"
) ")"
; ";"
block_comment "/**\n * Set the read timeout.\n * <p>\n * The value"...
method_declaration
modifiers
public "public"
abstract "abstract"
type_identifier "ClientBuilder"
identifier "readTimeout"
formal_parameters
( "("
formal_parameter
integral_type
long "long"
identifier "timeout"
, ","
formal_parameter
type_identifier "TimeUnit"
identifier "unit"
) ")"
; ";"
block_comment "/**\n * Build a new client instance using all the configu"...
method_declaration
modifiers
public "public"
abstract "abstract"
type_identifier "Client"
identifier "build"
formal_parameters
( "("
) ")"
; ";"
} "}"