public class GoogleHttpClientHandler extends Object implements net.morimekta.providence.PServiceCallHandler
| Constructor and Description |
|---|
GoogleHttpClientHandler(Supplier<com.google.api.client.http.GenericUrl> urlSupplier)
Create a HTTP client with default transport, serialization and no instrumentation.
|
GoogleHttpClientHandler(Supplier<com.google.api.client.http.GenericUrl> urlSupplier,
com.google.api.client.http.HttpRequestFactory factory)
Create a HTTP client with default serialization and no instrumentation.
|
GoogleHttpClientHandler(Supplier<com.google.api.client.http.GenericUrl> urlSupplier,
com.google.api.client.http.HttpRequestFactory factory,
net.morimekta.providence.serializer.SerializerProvider serializerProvider)
Create a HTTP client with no instrumentation.
|
GoogleHttpClientHandler(Supplier<com.google.api.client.http.GenericUrl> urlSupplier,
com.google.api.client.http.HttpRequestFactory factory,
net.morimekta.providence.serializer.SerializerProvider serializerProvider,
net.morimekta.providence.PServiceCallInstrumentation instrumentation)
Create a HTTP client.
|
| Modifier and Type | Method and Description |
|---|---|
<Request extends net.morimekta.providence.PMessage<Request>,Response extends net.morimekta.providence.PMessage<Response>> |
handleCall(net.morimekta.providence.PServiceCall<Request> call,
net.morimekta.providence.descriptor.PService service) |
public GoogleHttpClientHandler(@Nonnull Supplier<com.google.api.client.http.GenericUrl> urlSupplier)
urlSupplier - The HTTP url supplier.public GoogleHttpClientHandler(@Nonnull Supplier<com.google.api.client.http.GenericUrl> urlSupplier, @Nonnull com.google.api.client.http.HttpRequestFactory factory)
urlSupplier - The HTTP url supplier.factory - The HTTP request factory.public GoogleHttpClientHandler(@Nonnull Supplier<com.google.api.client.http.GenericUrl> urlSupplier, @Nonnull com.google.api.client.http.HttpRequestFactory factory, @Nonnull net.morimekta.providence.serializer.SerializerProvider serializerProvider)
urlSupplier - The HTTP url supplier.factory - The HTTP request factory.serializerProvider - The serializer provider.public GoogleHttpClientHandler(@Nonnull Supplier<com.google.api.client.http.GenericUrl> urlSupplier, @Nonnull com.google.api.client.http.HttpRequestFactory factory, @Nonnull net.morimekta.providence.serializer.SerializerProvider serializerProvider, @Nonnull net.morimekta.providence.PServiceCallInstrumentation instrumentation)
urlSupplier - The HTTP url supplier.factory - The HTTP request factory.serializerProvider - The serializer provider.instrumentation - The service call instrumentation.public <Request extends net.morimekta.providence.PMessage<Request>,Response extends net.morimekta.providence.PMessage<Response>> net.morimekta.providence.PServiceCall<Response> handleCall(net.morimekta.providence.PServiceCall<Request> call,
net.morimekta.providence.descriptor.PService service)
throws IOException
handleCall in interface net.morimekta.providence.PServiceCallHandlerIOExceptionCopyright © 2015–2020 morimekta.net. All rights reserved.