Package com.vonage.client
Class DynamicEndpoint.Builder<T,R>
java.lang.Object
com.vonage.client.DynamicEndpoint.Builder<T,R>
- Enclosing class:
DynamicEndpoint<T,R>
-
Method Summary
Modifier and TypeMethodDescriptionacceptHeader(String accept) authMethod(Class<? extends AuthMethod> primary, Class<? extends AuthMethod>... others) build()contentTypeHeader(String contentType) pathGetter(BiFunction<DynamicEndpoint<T, R>, T, String> pathGetter) requestMethod(HttpMethod requestMethod) responseExceptionType(Class<? extends RuntimeException> responseExceptionType) urlFormEncodedContentType(boolean formEncoded) wrapper(HttpWrapper wrapper)
-
Method Details
-
wrapper
-
requestMethod
-
pathGetter
public DynamicEndpoint.Builder<T,R> pathGetter(BiFunction<DynamicEndpoint<T, R>, T, String> pathGetter) -
authMethod
public DynamicEndpoint.Builder<T,R> authMethod(Class<? extends AuthMethod> primary, Class<? extends AuthMethod>... others) -
responseExceptionType
public DynamicEndpoint.Builder<T,R> responseExceptionType(Class<? extends RuntimeException> responseExceptionType) -
urlFormEncodedContentType
-
contentTypeHeader
-
acceptHeader
-
build
-