Send feedback
Class InstantiatingHttpJsonChannelProvider.Builder (2.41.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.41.0 keyboard_arrow_down
public static final class InstantiatingHttpJsonChannelProvider . Builder
Methods
build()
public InstantiatingHttpJsonChannelProvider build ()
getEndpoint()
public String getEndpoint ()
setEndpoint(String endpoint)
public InstantiatingHttpJsonChannelProvider . Builder setEndpoint ( String endpoint )
Sets the endpoint used to reach the service, eg "localhost:8080".
Parameter Name Description endpoint
String
setExecutor(Executor executor)
public InstantiatingHttpJsonChannelProvider . Builder setExecutor ( Executor executor )
Sets the Executor for this TransportChannelProvider.
This is optional; if it is not provided, needsExecutor() will return true, meaning that an
Executor must be provided when getChannel is called on the constructed
TransportChannelProvider instance. Note: InstantiatingHttpJsonChannelProvider will
automatically provide its own Executor in this circumstance when it calls getChannel.
Parameter Name Description executor
Executor
setExecutorProvider(ExecutorProvider executorProvider) (deprecated)
public InstantiatingHttpJsonChannelProvider . Builder setExecutorProvider ( ExecutorProvider executorProvider )
public InstantiatingHttpJsonChannelProvider . Builder setHeaderProvider ( HeaderProvider headerProvider )
Sets the HeaderProvider for this TransportChannelProvider.
This is optional; if it is not provided, needsHeaders() will return true, meaning that
headers must be provided when getChannel is called on the constructed
TransportChannelProvider instance.
setHttpTransport(HttpTransport httpTransport)
public InstantiatingHttpJsonChannelProvider . Builder setHttpTransport ( HttpTransport httpTransport )
Sets the HTTP transport to be used.
Parameter Name Description httpTransport
com.google.api.client.http.HttpTransport
setInterceptorProvider(HttpJsonInterceptorProvider interceptorProvider)
public InstantiatingHttpJsonChannelProvider . Builder setInterceptorProvider ( HttpJsonInterceptorProvider interceptorProvider )
Sets the GrpcInterceptorProvider for this TransportChannelProvider.
The provider will be called once for each underlying gRPC ManagedChannel that is created.
It is recommended to return a new list of new interceptors on each call so that interceptors
are not shared among channels, but this is not required.
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-01 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
Need to tell us more?
{"lastModified": "Last updated 2024-10-01 UTC."}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-01 UTC."]]