Class InputHandler
- java.lang.Object
-
- org.jboss.resteasy.reactive.server.handlers.InputHandler
-
- All Implemented Interfaces:
ServerRestHandler
,RestHandler<ResteasyReactiveRequestContext>
public class InputHandler extends Object implements ServerRestHandler
Handler that reads data and sets up the input streamBy default this will attempt to buffer and use a fully in memory stream, to allow the request to stay on the IO thread. If the request is too large it will be delegated to an executor and a blocking stream used instead.
TODO: the stream implementation here could be a lot more efficient.
-
-
Constructor Summary
Constructors Constructor Description InputHandler(long maxBufferSize, Supplier<Executor> supplier)
-
-
-
Method Detail
-
handle
public void handle(ResteasyReactiveRequestContext context) throws Exception
- Specified by:
handle
in interfaceRestHandler<ResteasyReactiveRequestContext>
- Specified by:
handle
in interfaceServerRestHandler
- Throws:
Exception
-
-