Package | Description |
---|---|
org.glassfish.jersey.media.sse |
Support for Server Sent events in Jersey.
|
org.glassfish.jersey.server |
Jersey server-side classes.
|
Modifier and Type | Class and Description |
---|---|
class |
EventOutput
Outbound Server-Sent Events channel.
|
Modifier and Type | Method and Description |
---|---|
<OUT extends ChunkedOutput<T>> |
Broadcaster.add(OUT chunkedOutput)
Register
ChunkedOutput to this Broadcaster instance. |
<OUT extends ChunkedOutput<T>> |
Broadcaster.remove(OUT chunkedOutput)
Un-register
ChunkedOutput from this Broadcaster instance. |
Modifier and Type | Method and Description |
---|---|
ChunkedOutput<Y> |
ChunkedOutput.Builder.build()
Build the ChunkedOutput based on the given configuration.
|
ChunkedOutput<Y> |
ChunkedOutput.TypedBuilder.build()
Build the ChunkedOutput based on the given configuration.
|
Modifier and Type | Method and Description |
---|---|
long |
ChunkedResponseWriter.getSize(ChunkedOutput<?> chunkedOutput,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType) |
void |
Broadcaster.onClose(ChunkedOutput<T> chunkedOutput)
Called when the chunkedOutput has been closed (either by client closing the connection or by calling
close() on the server side. |
void |
BroadcasterListener.onClose(ChunkedOutput<T> chunkedOutput)
Called when the chunkedOutput has been closed (either by client closing the connection or by calling
close() on the server side. |
void |
Broadcaster.onException(ChunkedOutput<T> chunkedOutput,
Exception exception)
Called when exception was thrown by a given chunked response when trying to write to it or close it.
|
void |
BroadcasterListener.onException(ChunkedOutput<T> chunkedOutput,
Exception exception)
Called when exception was thrown by a given chunked response when trying to write to it or close it.
|
void |
ChunkedResponseWriter.writeTo(ChunkedOutput<?> chunkedOutput,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream) |
Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.