public abstract static class AbstractApplicationBase.Builder<T extends AbstractApplicationBase.Builder<T>> extends Object
Modifier and Type | Method and Description |
---|---|
T |
connectTimeoutForDefaultHttpClient(Integer val)
Sets the connect timeout value used in HttpsURLConnection connections made by
DefaultHttpClient ,
and is not needed if using a custom HTTP client |
T |
correlationId(String val)
Set optional correlation id to be used by the API.
|
T |
executorService(ExecutorService val)
Sets ExecutorService to be used to execute the requests.
|
T |
httpClient(IHttpClient val)
Sets HTTP client to be used by the client application for all HTTP requests.
|
T |
logPii(boolean val)
Set logPii - boolean value, which determines
whether Pii (personally identifiable information) will be logged in.
|
T |
proxy(Proxy val)
Sets Proxy configuration to be used by the client application (MSAL4J by default uses
HttpsURLConnection ) for all network communication. |
T |
readTimeoutForDefaultHttpClient(Integer val)
Sets the read timeout value used in HttpsURLConnection connections made by
DefaultHttpClient ,
and is not needed if using a custom HTTP client |
T |
sslSocketFactory(SSLSocketFactory val)
Sets SSLSocketFactory to be used by the client application for all network communication.
|
public Builder()
public Builder(String clientId)
public T correlationId(String val)
val
- a string value of correlation idpublic T logPii(boolean val)
val
- a boolean value for logPiipublic T executorService(ExecutorService val)
val
- an instance of ExecutorServicepublic T proxy(Proxy val)
HttpsURLConnection
) for all network communication.
If no proxy value is passed in, system defined properties are used. If HTTP client is set on
the client application (via ClientApplication.builder().httpClient()),
proxy configuration should be done on the HTTP client object being passed in,
and not through this method.val
- an instance of Proxypublic T httpClient(IHttpClient val)
val
- Implementation of IHttpClient
public T sslSocketFactory(SSLSocketFactory val)
val
- an instance of SSLSocketFactorypublic T connectTimeoutForDefaultHttpClient(Integer val)
DefaultHttpClient
,
and is not needed if using a custom HTTP clientval
- timeout value in millisecondspublic T readTimeoutForDefaultHttpClient(Integer val)
DefaultHttpClient
,
and is not needed if using a custom HTTP clientval
- timeout value in millisecondsCopyright © 2013–2024. All rights reserved.