Package com.mrivanplays.jdoa2
Class JDOA2Builder
java.lang.Object
com.mrivanplays.jdoa2.JDOA2Builder
Represents a
JDOA2
builder.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns theApplicationInfo
set.applicationInfo
(ApplicationInfo applicationInfo) Sets a new application info.build()
Builds this builder's parameters into aJDOA2
instance.okhttp3.OkHttpClient
Returns theOkHttpClient
set.httpClient
(okhttp3.OkHttpClient httpClient) Sets a new http clientcom.fasterxml.jackson.databind.ObjectMapper
Returns theObjectMapper
set.jsonMapper
(com.fasterxml.jackson.databind.ObjectMapper jsonMapper) Sets a new json mapper.
-
Constructor Details
-
JDOA2Builder
public JDOA2Builder() -
JDOA2Builder
-
-
Method Details
-
applicationInfo
Returns theApplicationInfo
set.- Returns:
- application info
-
applicationInfo
Sets a new application info.- Parameters:
applicationInfo
- application info- Returns:
- this instance for chaining
-
jsonMapper
public com.fasterxml.jackson.databind.ObjectMapper jsonMapper()Returns theObjectMapper
set.- Returns:
- json mapper
-
jsonMapper
Sets a new json mapper.- Parameters:
jsonMapper
- json mapper- Returns:
- this instance for chaining
-
httpClient
public okhttp3.OkHttpClient httpClient()Returns theOkHttpClient
set.- Returns:
- http client
-
httpClient
Sets a new http client- Parameters:
httpClient
- http client- Returns:
- this instance for chaining
-
build
Builds this builder's parameters into aJDOA2
instance.- Returns:
- jdoa2 instance
-