Package io.sentry.transport.apache
Class ApacheHttpClientTransportFactory
java.lang.Object
io.sentry.transport.apache.ApacheHttpClientTransportFactory
- All Implemented Interfaces:
ITransportFactory
Creates
ApacheHttpClientTransport
.-
Constructor Summary
ConstructorDescriptionApacheHttpClientTransportFactory
(@NotNull org.apache.hc.core5.util.TimeValue connectionTimeToLive) -
Method Summary
Modifier and TypeMethodDescription@NotNull ITransport
create
(@NotNull SentryOptions options, @NotNull RequestDetails requestDetails) Creates an instance ofITransport
.
-
Constructor Details
-
ApacheHttpClientTransportFactory
public ApacheHttpClientTransportFactory() -
ApacheHttpClientTransportFactory
public ApacheHttpClientTransportFactory(@NotNull @NotNull org.apache.hc.core5.util.TimeValue connectionTimeToLive)
-
-
Method Details
-
create
@NotNull public @NotNull ITransport create(@NotNull @NotNull SentryOptions options, @NotNull @NotNull RequestDetails requestDetails) Description copied from interface:ITransportFactory
Creates an instance ofITransport
.- Specified by:
create
in interfaceITransportFactory
- Parameters:
options
- sentry configuration that can be used to create transportrequestDetails
- http request properties that must be applied to http request invoked by the transport- Returns:
- the transport
-