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_INVOKEphase 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 interfacePublisherResponseHandler.StreamingResponseCustomizer
-
Constructor Summary
Constructors Constructor Description PublisherResponseHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandle(ResteasyReactiveRequestContext requestContext)voidsetStreamingResponseCustomizers(List<PublisherResponseHandler.StreamingResponseCustomizer> streamingResponseCustomizers)
-
-
-
Method Detail
-
setStreamingResponseCustomizers
public void setStreamingResponseCustomizers(List<PublisherResponseHandler.StreamingResponseCustomizer> streamingResponseCustomizers)
-
handle
public void handle(ResteasyReactiveRequestContext requestContext) throws Exception
- Specified by:
handlein interfaceRestHandler<ResteasyReactiveRequestContext>- Specified by:
handlein interfaceServerRestHandler- Throws:
Exception
-
-