@ProviderType public interface SseEventSourceFactory
SseEventSource
instances.
Bundles may obtain an instance of a SseEventSourceFactory
using the
service registry. This service may then be used to construct
SseEventSource
instances for the supplied WebTarget
.
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.sse.SseEventSource.Builder |
newBuilder(javax.ws.rs.client.WebTarget target)
Create a new
SseEventSource.Builder |
javax.ws.rs.sse.SseEventSource |
newSource(javax.ws.rs.client.WebTarget target)
Create a new
SseEventSource |
javax.ws.rs.sse.SseEventSource.Builder newBuilder(javax.ws.rs.client.WebTarget target)
SseEventSource.Builder
target
- The web target to consume events fromjavax.ws.rs.sse.SseEventSource newSource(javax.ws.rs.client.WebTarget target)
SseEventSource
target
- The web target to consume events fromCopyright © OSGi Alliance (2000, 2018). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0