Package com.envimate.httpmate.client
Class HttpMateClientBuilder
- java.lang.Object
-
- com.envimate.httpmate.client.HttpMateClientBuilder
-
public final class HttpMateClientBuilder extends Object
-
-
Constructor Summary
Constructors Constructor Description HttpMateClientBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpMateClientbuild()HttpMateClientBuilderwithBasePath(String basePath)HttpMateClientBuilderwithDefaultResponseMapping(ClientResponseMapper<?> mapper)<T> HttpMateClientBuilderwithResponseMapping(Class<T> type, ClientResponseMapper<T> mapper)<T> HttpMateClientBuilderwithResponseMapping(Predicate<Class<T>> filter, ClientResponseMapper<T> mapper)
-
-
-
Method Detail
-
withBasePath
public HttpMateClientBuilder withBasePath(String basePath)
-
withDefaultResponseMapping
public HttpMateClientBuilder withDefaultResponseMapping(ClientResponseMapper<?> mapper)
-
withResponseMapping
public <T> HttpMateClientBuilder withResponseMapping(Class<T> type, ClientResponseMapper<T> mapper)
-
withResponseMapping
public <T> HttpMateClientBuilder withResponseMapping(Predicate<Class<T>> filter, ClientResponseMapper<T> mapper)
-
build
public HttpMateClient build()
-
-