Package org.osgi.service.jaxrs.client
Interface SseEventSourceFactory
-
@ProviderType public interface SseEventSourceFactory
A factory forSseEventSource
instances.Bundles may obtain an instance of a
SseEventSourceFactory
using the service registry. This service may then be used to constructSseEventSource
instances for the suppliedWebTarget
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description javax.ws.rs.sse.SseEventSource.Builder
newBuilder(javax.ws.rs.client.WebTarget target)
Create a newSseEventSource.Builder
javax.ws.rs.sse.SseEventSource
newSource(javax.ws.rs.client.WebTarget target)
Create a newSseEventSource
-
-
-
Method Detail
-
newBuilder
javax.ws.rs.sse.SseEventSource.Builder newBuilder(javax.ws.rs.client.WebTarget target)
Create a newSseEventSource.Builder
- Parameters:
target
- The web target to consume events from- Returns:
- a builder which can be used to further configure the event source
-
newSource
javax.ws.rs.sse.SseEventSource newSource(javax.ws.rs.client.WebTarget target)
Create a newSseEventSource
- Parameters:
target
- The web target to consume events from- Returns:
- a configured event source
-
-