Class PublisherResponseHandler
- java.lang.Object
-
- org.jboss.resteasy.reactive.server.handlers.PublisherResponseHandler
-
- All Implemented Interfaces:
ServerRestHandler
,RestHandler<ResteasyReactiveRequestContext>
public class PublisherResponseHandler extends Object implements ServerRestHandler
This handler is used to push streams of data to the client. This handler is added to the chain in theHandlerChainCustomizer.Phase.AFTER_METHOD_INVOKE
phase and is essentially the terminal phase of the handler chain, as no other handlers will be called after this one.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
PublisherResponseHandler.StreamingResponseCustomizer
-
Constructor Summary
Constructors Constructor Description PublisherResponseHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handle(ResteasyReactiveRequestContext requestContext)
void
setStreamingResponseCustomizers(List<PublisherResponseHandler.StreamingResponseCustomizer> streamingResponseCustomizers)
-
-
-
Method Detail
-
setStreamingResponseCustomizers
public void setStreamingResponseCustomizers(List<PublisherResponseHandler.StreamingResponseCustomizer> streamingResponseCustomizers)
-
handle
public void handle(ResteasyReactiveRequestContext requestContext) throws Exception
- Specified by:
handle
in interfaceRestHandler<ResteasyReactiveRequestContext>
- Specified by:
handle
in interfaceServerRestHandler
- Throws:
Exception
-
-